Ticket #769: i18n-theme-sidebar-php.diff
| File i18n-theme-sidebar-php.diff, 2.3 KB (added by , 21 years ago) |
|---|
-
wp-content/themes/default/sidebar.php
old new 20 20 for the day <?php the_time('l, F jS, Y'); ?>.</p> 21 21 22 22 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> 23 < p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives24 for <?php the_time('F, Y'); ?>.</p>23 <?php printf('<p>You are currently browsing the <a href="%s">%s</a> weblog archives 24 for %s.</p>',get_settings('siteurl'), get_bloginfo('name'), get_the_time('F, Y')); ?> 25 25 26 26 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> 27 <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives 28 for the year <?php the_time('Y'); ?>.</p> 27 <?php printf('<p>You are currently browsing the <a href="%s">%s</a> weblog archives 28 for the year %s.</p>', get_settings('siteurl'), get_bloginfo('name'), get_the_time('Y')); ?> 29 29 30 30 <?php /* If this is a monthly archive */ } elseif (is_search()) { ?> 31 <p>You have searched the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives 32 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> 31 <?php /* If this is a search results page */ } elseif (is_search()) { ?> 32 <?php printf('<p>You have searched the <a href="%s">%s</a> weblog archives 33 for <strong>\'%s\'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>', get_settings('siteurl'), get_bloginfo('name'), wp_specialchars($s)); ?> 34 35 <?php /* If we are moving through pages */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> 36 <?php printf('<p>You are currently browsing the <a href="%s">%s</a> weblog archives.</p>', get_settings('siteurl'), get_bloginfo('name')); ?> 33 37 34 <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>35 <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives.</p>36 38 37 39 <?php } ?> 38 40 </li>