WordPress.org

Make WordPress Core

Ticket #3321: default-sidebar-20061102-01.patch

File default-sidebar-20061102-01.patch, 3.1 KB (added by idle, 7 years ago)
  • default/sidebar.php

     
    1111                        </li> 
    1212                        --> 
    1313 
    14                         <li> 
    1514                        <?php /* If this is a 404 page */ if (is_404()) { ?> 
    1615                        <?php /* If this is a category archive */ } elseif (is_category()) { ?> 
    17                         <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p> 
     16                        <li><p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p></li> 
    1817 
    1918                        <?php /* If this is a yearly archive */ } elseif (is_day()) { ?> 
    20                         <p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 
    21                         for the day <?php the_time('l, F jS, Y'); ?>.</p> 
     19                        <li><p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 
     20                        for the day <?php the_time('l, F jS, Y'); ?>.</p></li> 
    2221 
    2322                        <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> 
    24                         <p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 
    25                         for <?php the_time('F, Y'); ?>.</p> 
     23                        <li><p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 
     24                        for <?php the_time('F, Y'); ?>.</p></li> 
    2625 
    27       <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> 
    28                         <p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 
    29                         for the year <?php the_time('Y'); ?>.</p> 
     26                        <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> 
     27                        <li><p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 
     28                        for the year <?php the_time('Y'); ?>.</p></li> 
    3029 
    31                  <?php /* If this is a monthly archive */ } elseif (is_search()) { ?> 
    32                         <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> 
     30                        <?php /* If this is a monthly archive */ } elseif (is_search()) { ?> 
     31                        <li><p>You have searched the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 
     32                        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></li> 
    3433 
    3534                        <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> 
    36                         <p>You are currently browsing the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives.</p> 
     35                        <li><p>You are currently browsing the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives.</p></li> 
    3736 
    3837                        <?php } ?> 
    39                         </li> 
    4038 
    4139                        <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?> 
    4240