1
|
1 |
<?php |
|
2 |
/* |
|
3 |
Template Name: Archives |
|
4 |
*/ |
|
5 |
?> |
|
6 |
|
|
7 |
<?php get_header(); ?> |
|
8 |
|
|
9 |
<?php if (have_posts()) : the_post(); ?> |
|
10 |
<div class="post"> |
|
11 |
<div class="title"> |
|
12 |
<h2><?php the_title(); ?></h2> |
|
13 |
<div class="fixed"></div> |
|
14 |
</div> |
|
15 |
<div class="info"> |
|
16 |
<?php edit_post_link(__('Edit', 'elegantbox'), '<span class="edit">', '</span>'); ?> |
|
17 |
<span><?php _e('Update: '); the_modified_time(__('F jS, Y', 'elegantbox')) ?></span> |
|
18 |
<div class="fixed"></div> |
|
19 |
</div> |
|
20 |
<div class="content"> |
|
21 |
<?php |
|
22 |
if (function_exists('wp_easyarchives')) { |
|
23 |
wp_easyarchives(); |
|
24 |
} else { |
|
25 |
echo '<ul>'; |
|
26 |
wp_get_archives('type=monthly&show_post_count=1'); |
|
27 |
echo '</ul>'; |
|
28 |
} |
|
29 |
?> |
|
30 |
</div> |
|
31 |
</div> |
|
32 |
|
|
33 |
<?php |
|
34 |
// Support comments for WordPress 2.7 or higher |
|
35 |
if (function_exists('wp_list_comments')) { |
|
36 |
comments_template('', true); |
|
37 |
} else { |
|
38 |
comments_template(); |
|
39 |
} |
|
40 |
?> |
|
41 |
|
|
42 |
<?php else : ?> |
|
43 |
<div class="messagebox"> |
|
44 |
<div class="content small"> |
|
45 |
<?php _e('Sorry, no posts matched your criteria.'); ?> |
|
46 |
</div> |
|
47 |
</div> |
|
48 |
|
|
49 |
<?php endif; ?> |
|
50 |
</div> |
|
51 |
|
|
52 |
<?php get_sidebar(); ?> |
|
53 |
|
|
54 |
<div class="fixed"></div> |
|
55 |
|
|
56 |
<div id="bottom"> |
|
57 |
|
|
58 |
<?php get_footer(); ?> |