Changeset 14771 for trunk/wp-includes/theme-compat/sidebar.php
- Timestamp:
- 05/20/2010 09:53:11 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/theme-compat/sidebar.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme-compat/sidebar.php
r14366 r14771 19 19 20 20 <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it. 21 <li><h2> Author</h2>21 <li><h2><?php _e('Author'); ?></h2> 22 22 <p>A little something about you, the author. Nothing lengthy, just an overview.</p> 23 23 </li> … … 30 30 <?php /* If this is a 404 page */ if (is_404()) { ?> 31 31 <?php /* If this is a category archive */ } elseif (is_category()) { ?> 32 <p> You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>32 <p><?php printf(__('You are currently browsing the archives for the %s category.'), single_cat_title('', false)); ?></p> 33 33 34 34 <?php /* If this is a daily archive */ } elseif (is_day()) { ?> 35 <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives 36 for the day <?php the_time('l, F jS, Y'); ?>.</p> 35 <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the day %3$s.'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('l, F jS, Y'))); ?></p> 37 36 38 37 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> 39 <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives 40 for <?php the_time('F, Y'); ?>.</p> 38 <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for %3$s.'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('F, Y'))); ?></p> 41 39 42 40 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> 43 <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives 44 for the year <?php the_time('Y'); ?>.</p> 41 <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the year %3$s.'), get_bloginfo('url'), get_bloginfo('name'), get_the_time('Y')); ?></p> 45 42 46 43 <?php /* If this is a search result */ } elseif (is_search()) { ?> 47 <p>You have searched the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives 48 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> 44 <p><?php printf(__('You have searched the <a href="%1$s/">%2$s</a> blog archives for <strong>‘%3$s’</strong>. If you are unable to find anything in these search results, you can try one of these links.'), get_bloginfo('url'), get_bloginfo('name'), wp_specialchars(get_search_query(), true)); ?></p> 49 45 50 <?php /* If this set is paginated */ } elseif ( !empty($_GET['paged'])) { ?>51 <p> You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives.</p>46 <?php /* If this set is paginated */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> 47 <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives.'), get_bloginfo('url'), get_bloginfo('name')); ?></p> 52 48 53 49 <?php } ?> … … 57 53 </ul> 58 54 <ul role="navigation"> 59 <?php wp_list_pages('title_li=<h2> Pages</h2>' ); ?>55 <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?> 60 56 61 <li><h2> Archives</h2>57 <li><h2><?php _e('Archives'); ?></h2> 62 58 <ul> 63 59 <?php wp_get_archives(array('type' => 'monthly')); ?> … … 65 61 </li> 66 62 67 <?php wp_list_categories(array('show_count' => 1, 'title_li' => '<h2> Categories</h2>')); ?>63 <?php wp_list_categories(array('show_count' => 1, 'title_li' => '<h2>' . __('Categories') . '</h2>')); ?> 68 64 </ul> 69 65 <ul> … … 71 67 <?php wp_list_bookmarks(); ?> 72 68 73 <li><h2> Meta</h2>69 <li><h2><?php _e('Meta'); ?></h2> 74 70 <ul> 75 71 <?php wp_register(); ?> 76 72 <li><?php wp_loginout(); ?></li> 77 <li><a href="http://validator.w3.org/check/referer" title=" This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>78 <li><a href="http://gmpg.org/xfn/"><abbr title=" XHTML Friends Network">XFN</abbr></a></li>79 <li><a href="http://wordpress.org/" title=" Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>73 <li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li> 74 <li><a href="http://gmpg.org/xfn/"><abbr title="<?php _e('XHTML Friends Network'); ?>"><?php _e('XFN'); ?></abbr></a></li> 75 <li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.'); ?>">WordPress</a></li> 80 76 <?php wp_meta(); ?> 81 77 </ul>
Note: See TracChangeset
for help on using the changeset viewer.