Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r4171 r3134  
    11        <div id="sidebar">
    22                <ul>
    3 
     3                       
    44                        <li>
    55                                <?php include (TEMPLATEPATH . '/searchform.php'); ?>
     
    1616                        <?php /* If this is a category archive */ } elseif (is_category()) { ?>
    1717                        <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
    18 
     18                       
    1919                        <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
    2020                        <p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
    2121                        for the day <?php the_time('l, F jS, Y'); ?>.</p>
    22 
     22                       
    2323                        <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    2424                        <p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
     
    2828                        <p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
    2929                        for the year <?php the_time('Y'); ?>.</p>
    30 
     30                       
    3131                 <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
    3232                        <p>You have searched the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
    33                         for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
     33                        for <strong>'<?php echo wp_specialchars($s); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
    3434
    3535                        <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
     
    4747                        </li>
    4848
    49                         <?php wp_list_categories('optioncount=1&hierarchical=0&title_li=<h2>Categories</h2>'); ?>
     49                        <li><h2>Categories</h2>
     50                                <ul>
     51                                <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
     52                                </ul>
     53                        </li>
    5054
    51                         <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
    52                                 <?php wp_list_bookmarks(); ?>
    53 
     55                        <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>                         
     56                                <?php get_links_list(); ?>
     57                               
    5458                                <li><h2>Meta</h2>
    5559                                <ul>
     
    6367                                </li>
    6468                        <?php } ?>
    65 
     69                       
    6670                </ul>
    6771        </div>
Note: See TracChangeset for help on using the changeset viewer.