forked from eddiemachado-zz/bones
-
Notifications
You must be signed in to change notification settings - Fork 1
/
archive.php
44 lines (32 loc) · 1.68 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
<?php get_header(); ?>
<div id="content">
<section role="main">
<?php if (is_category()) { ?>
<h2 class="archive-title"><span><?php _e("Posts Categorized:", "bonestheme"); ?></span> <?php single_cat_title(); ?></h2>
<?php } elseif (is_tag()) { ?>
<h2 class="archive-title"><span><?php _e("Posts Tagged:", "bonestheme"); ?></span> <?php single_tag_title(); ?></h2>
<?php } elseif (is_author()) { ?>
<h2 class="archive-title"><span><?php _e("Posts By:", "bonestheme"); ?></span> <?php get_the_author_meta('display_name'); ?></h2>
<?php } elseif (is_day()) { ?>
<h2 class="archive-title"><span><?php _e("Daily Archives:", "bonestheme"); ?></span> <?php the_time('l, F j, Y'); ?></h2>
<?php } elseif (is_month()) { ?>
<h2 class="archive-title"><span><?php _e("Monthly Archives:", "bonestheme"); ?>:</span> <?php the_time('F Y'); ?></h2>
<?php } elseif (is_year()) { ?>
<h2 class="archive-title"><span><?php _e("Yearly Archives:", "bonestheme"); ?>:</span> <?php the_time('Y'); ?></h2>
<?php } ?>
<?php
global $contentlength; $contentlength = 'archive';
if (have_posts()) : while (have_posts()) : the_post();
include (TEMPLATEPATH . "/single_post-content.php");
endwhile; ?>
<nav class="wp-prev-next">
<ul>
<li class="prev-link"><?php next_posts_link(_e('« Older Entries', "bonestheme")) ?></li>
<li class="next-link"><?php previous_posts_link(_e('Newer Entries »', "bonestheme")) ?></li>
</ul>
</nav>
<?php endif; ?>
</section><!-- end #main -->
<?php get_sidebar(); // sidebar 1 ?>
</div><!-- end #content -->
<?php get_footer(); ?>