Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r4166 r3006  
    66
    77         <?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()) { ?>               
    99        <h2 class="pagetitle">Archive for the '<?php echo single_cat_title(); ?>' Category</h2>
    10 
     10       
    1111      <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    1212        <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2>
    13 
     13       
    1414     <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    1515        <h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2>
     
    1717        <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    1818        <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       
    2023      <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    2124        <h2 class="pagetitle">Author Archive</h2>
     
    3639                <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>
    3740                <small><?php the_time('l, F jS, Y') ?></small>
    38 
     41               
    3942                <div class="entry">
    4043                    <?php the_content() ?>
    4144                </div>
    42 
     45       
    4346                <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
    4447
    4548            </div>
    46 
     49   
    4750        <?php endwhile; ?>
    4851
     
    5154            <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
    5255        </div>
    53 
     56   
    5457    <?php else : ?>
    5558
     
    5861
    5962    <?php endif; ?>
    60 
     63       
    6164    </div>
    6265
Note: See TracChangeset for help on using the changeset viewer.