forked from jouach/Protean
/
archive.php
38 lines (28 loc) · 1.44 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
<?php get_header(); ?>
<div id="page_main" role="main">
<div class="full_content">
<?php if(have_posts())the_post(); ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2><?php _e('Archive for the','protean')?> ‘<?php single_cat_title(); ?>’ <?php _e('Category','protean')?></h2>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h2><?php _e('Posts Tagged','protean')?> ‘<?php single_tag_title(); ?>’</h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2><?php _e('Archive for','protean')?> <?php the_time('F jS, Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2><?php _e('Archive for','protean')?> <?php the_time('F, Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="pagetitle"><?php _e('Archive for','protean')?> <?php the_time('Y'); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="pagetitle"><?php _e('Author Archive for','protean')?> ‘<?php the_author() ?>’</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="pagetitle"><?php _e('Blog Archives','protean')?></h2>
<?php } ?>
</div><!-- full_content -->
<?php
rewind_posts();
get_template_part( 'loop' );
?>
</div><!-- page_main -->
<hr/>
<?php get_sidebar(); ?>
<?php get_footer(); ?>