- File:
-
- 1 edited
-
trunk/wp-content/themes/default/archive.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/default/archive.php
r4166 r3006 6 6 7 7 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> 8 <?php /* If this is a category archive */ if (is_category()) { ?> 8 <?php /* If this is a category archive */ if (is_category()) { ?> 9 9 <h2 class="pagetitle">Archive for the '<?php echo single_cat_title(); ?>' Category</h2> 10 10 11 11 <?php /* If this is a daily archive */ } elseif (is_day()) { ?> 12 12 <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2> 13 13 14 14 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> 15 15 <h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2> … … 17 17 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> 18 18 <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2> 19 19 20 <?php /* If this is a search */ } elseif (is_search()) { ?> 21 <h2 class="pagetitle">Search Results</h2> 22 20 23 <?php /* If this is an author archive */ } elseif (is_author()) { ?> 21 24 <h2 class="pagetitle">Author Archive</h2> … … 36 39 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> 37 40 <small><?php the_time('l, F jS, Y') ?></small> 38 41 39 42 <div class="entry"> 40 43 <?php the_content() ?> 41 44 </div> 42 45 43 46 <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> 44 47 45 48 </div> 46 49 47 50 <?php endwhile; ?> 48 51 … … 51 54 <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div> 52 55 </div> 53 56 54 57 <?php else : ?> 55 58 … … 58 61 59 62 <?php endif; ?> 60 63 61 64 </div> 62 65
Note: See TracChangeset
for help on using the changeset viewer.