forked from OpenDevelopmentMekong/wp-odm_theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
30 lines (27 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
<?php
if(is_category()) {
include_once(get_stylesheet_directory() . '/category.php');
die();
}
get_header(); ?>
<div class="container section-title main-title">
<div class="sixteen columns">
<h1 class="archive-title"><?php
if( is_tag() || is_category() || is_tax() ) :
printf( __( '%s', 'odm' ), single_term_title() );
elseif ( is_day() ) :
printf( __( 'Daily Archives: %s', 'odm' ), get_the_date() );
elseif ( is_month() ) :
printf( __( 'Monthly Archives: %s', 'odm' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'odm' ) ) );
elseif ( is_year() ) :
printf( __( 'Yearly Archives: %s', 'odm' ), get_the_date( _x( 'Y', 'yearly archives date format', 'odm' ) ) );
elseif ( is_post_type_archive() ) :
_e(post_type_archive_title('', 0));
else :
_e( 'Archives', 'odm' );
endif;
?></h1>
</div>
</div>
<?php get_template_part('loop'); ?>
<?php get_footer(); ?>