-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
61 lines (44 loc) · 3.06 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2 class="pagetitle"><?php printf(__('Archive for the ‘%s’ Category', 'minimalism'), single_cat_title('', false)); ?></h2>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h2 class="pagetitle"><?php printf(__('Posts Tagged ‘%s’', 'minimalism'), single_tag_title('', false) ); ?></h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="pagetitle"><?php printf(_c('Archive for %s|Daily archive page', 'minimalism'), get_the_time(__('F jS, Y', 'minimalism'))); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="pagetitle"><?php printf(_c('Archive for %s|Monthly archive page', 'minimalism'), get_the_time(__('F, Y', 'minimalism'))); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="pagetitle"><?php printf(_c('Archive for %s|Yearly archive page', 'minimalism'), get_the_time(__('Y', 'minimalism'))); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="pagetitle"><?php _e('Author Archive', 'minimalism'); ?></h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="pagetitle"><?php _e('Blog Archives', 'minimalism'); ?></h2>
<?php } ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link(__('« Older Entries', 'minimalism')); ?></div>
<div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'minimalism')); ?></div>
</div>
<?php while (have_posts()) : the_post(); ?>
<div class="post">
<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'minimalism'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h3>
<small><?php the_time(__('l, F jS, Y', 'minimalism')) ?></small>
<div class="entry">
<?php the_content() ?>
</div>
<p class="postmetadata"><?php the_tags(__('Tags:', 'minimalism'), ', ', '<br />'); ?> <?php printf(__('Posted in %s', 'minimalism'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'minimalism'), '', ' | '); ?> <?php comments_popup_link(__('No Comments »', 'minimalism'), __('1 Comment »', 'minimalism'), __('% Comments »', 'minimalism'), '', __('Comments Closed', 'minimalism') ); ?></p>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link(__('« Older Entries'), 'minimalism'); ?></div>
<div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'minimalism')); ?></div>
</div>
<?php else : ?>
<h2 class="center"><?php _e('Not Found', 'minimalism'); ?></h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>