-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patharchive.php
29 lines (24 loc) · 1.34 KB
/
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
<?php get_header(); ?>
<h1 class="archive-title">
<?php if ( is_day() ) { ?>
<?php printf( __( 'Daily Archives: %s', 'origami' ), '<span>' . get_the_date() . '</span>' ); ?>
<?php } elseif ( is_month() ) { ?>
<?php printf( __( 'Monthly Archives: %s', 'origami' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'origami' ) ) . '</span>' ); ?>
<?php } elseif ( is_year() ) { ?>
<?php printf( __( 'Yearly Archives: %s', 'origami' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'origami' ) ) . '</span>' ); ?>
<?php } elseif ( is_tag() ) { ?>
<?php printf( __( 'Posts Tagged: %s', 'origami' ), '<span>' . single_tag_title( '', false ) . '</span>' ); ?>
<?php } elseif ( is_category() ) { ?>
<?php printf( __( 'Posts in Category: %s', 'origami' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?>
<?php } elseif ( is_search() ) { ?>
<?php printf( __( 'Search Results for: %s', 'origami' ), '<span>' . get_search_query() . '</span>' ); ?>
<?php } else { ?>
<?php _e( 'Blog Archives', 'origami' ); ?>
<?php } ?>
</h1>
<?php the_archive_description( '<div class="archive-description">', '</div>' ); ?>
<?php get_template_part( 'loop', 'index' ); ?>
<div id="posts-nav">
<?php posts_nav_link( '', __( 'Newer Entries', 'origami' ), __( 'Older Entries', 'origami' ) ); ?>
</div>
<?php get_footer(); ?>