forked from hukl/wwworld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
36 lines (28 loc) · 937 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* @package WordPress
* @subpackage Toolbox
*/
get_header(); ?>
<section id="primary">
<div id="content">
<?php the_post(); ?>
<header class="page-header">
<h1 class="page-title">
<?php if ( is_day() ) : ?>
<?php printf( __( 'Daily Archives: <span>%s</span>', 'themename' ), get_the_date() ); ?>
<?php elseif ( is_month() ) : ?>
<?php printf( __( 'Monthly Archives: <span>%s</span>', 'themename' ), get_the_date( 'F Y' ) ); ?>
<?php elseif ( is_year() ) : ?>
<?php printf( __( 'Yearly Archives: <span>%s</span>', 'themename' ), get_the_date( 'Y' ) ); ?>
<?php else : ?>
<?php _e( 'Blog Archives', 'themename' ); ?>
<?php endif; ?>
</h1>
</header>
<?php rewind_posts(); ?>
<?php get_template_part( 'loop', 'archive' ); ?>
</div><!-- #content -->
</section><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>