-
Notifications
You must be signed in to change notification settings - Fork 14
/
archive.php
55 lines (41 loc) · 1.9 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* The template for displaying archive pages
*
* @package Reactor
* @subpackge Templates
* @since 1.0.0
*/
?>
<?php get_header(); ?>
<div id="primary" class="site-content">
<?php reactor_content_before(); ?>
<div id="content" role="main">
<div class="row">
<div class="<?php reactor_columns(); ?>">
<?php reactor_inner_content_before(); ?>
<?php if ( have_posts() ) : ?>
<header class="archive-header">
<h1 class="archive-title"><?php
if ( is_day() ) :
printf( __('Daily Archives: %s', 'reactor'), '<span>' . get_the_date() . '</span>');
elseif ( is_month() ) :
printf( __('Monthly Archives: %s', 'reactor'), '<span>' . get_the_date( _x('F Y', 'monthly archives date format', 'reactor') ) . '</span>');
elseif ( is_year() ) :
printf( __('Yearly Archives: %s', 'reactor'), '<span>' . get_the_date( _x('Y', 'yearly archives date format', 'reactor') ) . '</span>');
else :
_e('Archives', 'reactor');
endif;
?></h1>
</header><!-- .archive-header -->
<?php endif; // end have_posts() check ?>
<?php // get the loop
get_template_part('loops/loop', 'index'); ?>
<?php reactor_inner_content_after(); ?>
</div><!-- .columns -->
<?php get_sidebar(); ?>
</div><!-- .row -->
</div><!-- #content -->
<?php reactor_content_after(); ?>
</div><!-- #primary -->
<?php get_footer(); ?>