Make WordPress Core

Changeset 5250


Ignore:
Timestamp:
04/12/2007 04:39:55 AM (18 years ago)
Author:
rob1n
Message:

Improve tag archive's title. Props johnbillion. fixes #4133

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/default/archive.php

    r5149 r5250  
    55        <?php if (have_posts()) : ?>
    66
    7         <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
    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()) { ?>
    99        <h2 class="pagetitle">Archive for the &#8216;<?php single_cat_title(); ?>&#8217; Category</h2>
    10 <?php } elseif( is_tag() ) { ?>
    11 <h2 class="pagetitle">Archive for the &#8216;<?php single_cat_title(); ?>&#8217; Tag</h2>
     10      <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
     11        <h2 class="pagetitle">Posts Tagged &#8216;<?php single_cat_title(); ?>&#8217;</h2>
    1212      <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    1313        <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()) { ?>
    1615        <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()) { ?>
    1917        <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
    20 
    2118      <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    2219        <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'])) { ?>
    2521        <h2 class="pagetitle">Blog Archives</h2>
    26 
    27         <?php } ?>
     22      <?php } ?>
    2823
    2924
Note: See TracChangeset for help on using the changeset viewer.