-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
28 lines (22 loc) · 911 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
<?php get_header(); ?>
<section id="main-content">
<?php if ( is_category() ) : ?>
<h1 class="archive-title"><?php single_cat_title(); ?></h1>
<?php elseif( is_tag() ) : ?>
<h1 class="archive-title">Posts Tagged “<?php single_tag_title(); ?>”</h1>
<?php elseif (is_day()) : ?>
<h1 class="archive-title">Archive for <?php the_time('F jS, Y'); ?></h1>
<?php elseif (is_month()) : ?>
<h1 class="archive-title">Archive for <?php the_time('F, Y'); ?></h1>
<?php elseif (is_year()) : ?>
<h1 class="archive-title">Archive for <?php the_time('Y'); ?></h1>
<?php elseif (is_author()) : ?>
<h1 class="archive-title">Author Archive</h1>
<?php elseif (isset($_GET['paged']) && !empty($_GET['paged'])) : ?>
<h1 class="archive-title">Blog Archives</h1>
<?php endif; ?>
<?php get_template_part('loop'); ?>
</section>
</div><!-- END Main -->
<?php get_sidebar_blog(); ?>
<?php get_footer(); ?>