-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patharchive.php
More file actions
executable file
·42 lines (42 loc) · 1.87 KB
/
archive.php
File metadata and controls
executable file
·42 lines (42 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php get_header(); ?>
<?php wpbp_content_before(); ?>
<section id="content">
<div class="<?php wpbp_container_class(); ?>">
<div class="<?php wpbp_option( 'main_class' ); ?>">
<?php wpbp_main_before(); ?>
<section id="main" role="main">
<?php wpbp_main_inside_before(); ?>
<h1 class="page-title">
<?php if ( is_day() ) : ?>
<?php printf( __( 'Daily Archives: %s', 'wpbp' ), get_the_date() ); ?>
<?php elseif ( is_month() ) : ?>
<?php printf( __( 'Monthly Archives: %s', 'wpbp' ), get_the_date( 'F Y' ) ); ?>
<?php elseif ( is_year() ) : ?>
<?php printf( __( 'Yearly Archives: %s', 'wpbp'), get_the_date( 'Y' ) ); ?>
<?php elseif ( $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ) ) : ?>
<?php echo $term->name; ?>
<?php endif; ?>
</h1>
<?php if ( term_description() ) : ?>
<p class="term-description"><?php echo term_description(); ?></p>
<?php endif; ?>
<?php wpbp_loop_before(); ?>
<?php get_template_part( 'loop', 'archive' ); ?>
<?php wpbp_loop_after(); ?>
<?php wpbp_main_inside_after(); ?>
</section>
<?php wpbp_main_after(); ?>
</div>
<div class="<?php wpbp_option( 'sidebar_class' ); ?>">
<?php wpbp_sidebar_before(); ?>
<aside id="sidebar" role="complementary">
<?php wpbp_sidebar_inside_before(); ?>
<?php get_sidebar(); ?>
<?php wpbp_sidebar_inside_after(); ?>
</aside>
<?php wpbp_sidebar_after(); ?>
</div>
</div>
</section>
<?php wpbp_content_after(); ?>
<?php get_footer(); ?>