-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy patharchive.php
34 lines (31 loc) · 822 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
<?php
/**
* The template for displaying Archive pages.
*
* @package WordPress
* @subpackage Typical
*/
get_header(); ?>
<?php
if ( have_posts() )
the_post();
?>
<section role="main">
<h1>
<?php if ( is_day() ) : ?>
<?php printf( __( '<span aria-hidden="true">❏</span> %s', 'typical' ), get_the_date() ); ?>
<?php elseif ( is_month() ) : ?>
<?php printf( __( '<span aria-hidden="true">❏</span> %s', 'typical' ), get_the_date('F Y') ); ?>
<?php elseif ( is_year() ) : ?>
<?php printf( __( '<span aria-hidden="true">❏</span> %s', 'typical' ), get_the_date('Y') ); ?>
<?php else : ?>
<?php _e( 'Archives', 'typical' ); ?>
<?php endif; ?>
</h1>
<?php
rewind_posts();
get_template_part( 'loop', 'archive' );
?>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>