-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
37 lines (32 loc) · 1.26 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
<?php get_header(); ?>
<div id="post-wrap">
<div id="post-content">
<div id="post-header">
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; ?>
<?php if (is_category()) { ?>
<h1 id="archive-title"><?php single_cat_title(); ?></h1>
<?php } elseif( is_tag() ) { ?>
<h1 id="archive-title">Posts Tagged "<?php single_tag_title(); ?>"</h1>
<?php } elseif (is_day()) { ?>
<h1 id="archive-title">Archive for <?php the_time('F jS, Y'); ?></h1>
<?php } elseif (is_month()) { ?>
<h1 id="archive-title">Archive for <?php the_time('F, Y'); ?></h1>
<?php } elseif (is_year()) { ?>
<h1 id="archive-title">Archive for <?php the_time('Y'); ?></h1>
<?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h1 id="archive-title">Blog Archives</h1>
<?php } ?>
<?php echo category_description( $category ); ?>
</div>
<!-- END blog-header -->
<?php get_template_part( 'post' , 'entry') ?>
<?php endif; ?>
<?php if (function_exists("pagination")) { pagination($additional_loop->max_num_pages); } ?>
</div>
<!-- END post-content -->
<?php get_sidebar(' '); ?>
<div class="clear"></div>
</div>
<!-- END post-wrap -->
<?php get_footer(' '); ?>