-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy patharchive.php
33 lines (31 loc) · 1002 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
<?php
if(is_category()) {
include_once(STYLESHEETPATH . '/category.php');
die();
}
get_header();
?>
<div class="section-title">
<div class="container">
<div class="twelve columns">
<h1 class="archive-title"><?php
if( is_tag() || is_category() || is_tax() ) :
printf( __( '%s', 'jeo' ), single_term_title() );
elseif ( is_day() ) :
printf( __( 'Daily Archives: %s', 'jeo' ), get_the_date() );
elseif ( is_month() ) :
printf( __( 'Monthly Archives: %s', 'jeo' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'jeo' ) ) );
elseif ( is_year() ) :
printf( __( 'Yearly Archives: %s', 'jeo' ), get_the_date( _x( 'Y', 'yearly archives date format', 'jeo' ) ) );
elseif ( is_post_type_archive() ) :
post_type_archive_title();
else :
_e( 'Archives', 'jeo' );
endif;
?></h1>
<?php get_template_part('section', 'query-actions'); ?>
</div>
</div>
</div>
<?php get_template_part('loop'); ?>
<?php get_footer(); ?>