1
|
1 |
<?php |
|
2 |
/* |
|
3 |
Template Name: Archives |
|
4 |
*/ |
|
5 |
?> |
|
6 |
|
|
7 |
<?php get_header(); ?> |
|
8 |
|
|
9 |
<?php if (have_posts()) : the_post(); update_post_caches($posts); ?> |
|
10 |
|
|
11 |
<div class="post" id="post-<?php the_ID(); ?>"> |
|
12 |
<h2><?php the_title(); ?></h2> |
|
13 |
<div class="info"> |
|
14 |
<span class="date"><?php the_modified_time(__('F jS, Y', 'inove')); ?></span> |
|
15 |
<?php edit_post_link(__('Edit', 'inove'), '<span class="editpost">', '</span>'); ?> |
|
16 |
<?php if ($comments || comments_open()) : ?> |
|
17 |
<span class="addcomment"><a href="#respond"><?php _e('Leave a comment', 'inove'); ?></a></span> |
|
18 |
<span class="comments"><a href="#comments"><?php _e('Go to comments', 'inove'); ?></a></span> |
|
19 |
<?php endif; ?> |
|
20 |
<div class="fixed"></div> |
|
21 |
</div> |
|
22 |
<div class="content"> |
|
23 |
<?php |
|
24 |
if (function_exists('wp_easyarchives')) { |
|
25 |
wp_easyarchives(); |
|
26 |
} else { |
|
27 |
echo '<ul>'; |
|
28 |
wp_get_archives('type=monthly&show_post_count=1'); |
|
29 |
echo '</ul>'; |
|
30 |
} |
|
31 |
?> |
|
32 |
</div> |
|
33 |
</div> |
|
34 |
|
|
35 |
<?php include('templates/comments.php'); ?> |
|
36 |
|
|
37 |
<?php else : ?> |
|
38 |
<div class="errorbox"> |
|
39 |
<?php _e('Sorry, no posts matched your criteria.', 'inove'); ?> |
|
40 |
</div> |
|
41 |
<?php endif; ?> |
|
42 |
|
|
43 |
<?php get_footer(); ?> |