forked from bhadaway/blankslate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharchive.php
22 lines (22 loc) · 938 Bytes
/
archive.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php get_header(); ?>
<section id="content" role="main">
<header class="header">
<h1 class="entry-title"><?php
if (is_day()) {
printf(__('Daily Archives: %s', 'blankslate'), get_the_time(get_option('date_format')));
} elseif (is_month()) {
printf(__('Monthly Archives: %s', 'blankslate'), get_the_time('F Y'));
} elseif (is_year()) {
printf(__('Yearly Archives: %s', 'blankslate'), get_the_time('Y'));
} else {
_e('Archives', 'blankslate');
}
?></h1>
</header>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php get_template_part('entry'); ?>
<?php endwhile; endif; ?>
<?php get_template_part('nav', 'below'); ?>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>