Changeset 5250
- Timestamp:
- 04/12/2007 04:39:55 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/default/archive.php
r5149 r5250 5 5 <?php if (have_posts()) : ?> 6 6 7 8 <?php /* If this is a category archive */ if (is_category()) { ?>7 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> 8 <?php /* If this is a category archive */ if (is_category()) { ?> 9 9 <h2 class="pagetitle">Archive for the ‘<?php single_cat_title(); ?>’ Category</h2> 10 <?php} elseif( is_tag() ) { ?>11 <h2 class="pagetitle">Archive for the ‘<?php single_cat_title(); ?>’ Tag</h2>10 <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> 11 <h2 class="pagetitle">Posts Tagged ‘<?php single_cat_title(); ?>’</h2> 12 12 <?php /* If this is a daily archive */ } elseif (is_day()) { ?> 13 13 <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2> 14 15 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> 14 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> 16 15 <h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2> 17 18 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> 16 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> 19 17 <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2> 20 21 18 <?php /* If this is an author archive */ } elseif (is_author()) { ?> 22 19 <h2 class="pagetitle">Author Archive</h2> 23 24 <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> 20 <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> 25 21 <h2 class="pagetitle">Blog Archives</h2> 26 27 <?php } ?> 22 <?php } ?> 28 23 29 24
Note: See TracChangeset
for help on using the changeset viewer.