[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package WordPress 4 * @subpackage Theme_Compat 5 * @deprecated 3.0.0 6 * 7 * This file is here for backward compatibility with old themes and will be removed in a future version. 8 */ 9 _deprecated_file( 10 /* translators: %s: Template name. */ 11 sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ), 12 '3.0.0', 13 null, 14 /* translators: %s: Template name. */ 15 sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) ) 16 ); 17 ?> 18 <div id="sidebar" role="complementary"> 19 <ul> 20 <?php 21 /* Widgetized sidebar, if you have the plugin installed. */ 22 if ( ! function_exists( 'dynamic_sidebar' ) || ! dynamic_sidebar() ) : 23 ?> 24 <li> 25 <?php get_search_form(); ?> 26 </li> 27 28 <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it. 29 <li><h2><?php _e( 'Author' ); ?></h2> 30 <p>A little something about you, the author. Nothing lengthy, just an overview.</p> 31 </li> 32 --> 33 34 <?php 35 if ( is_404() || is_category() || is_day() || is_month() || 36 is_year() || is_search() || is_paged() ) : 37 ?> 38 <li> 39 40 <?php if ( is_404() ) : /* If this is a 404 page */ ?> 41 <?php elseif ( is_category() ) : /* If this is a category archive */ ?> 42 <p> 43 <?php 44 printf( 45 /* translators: %s: Category name. */ 46 __( 'You are currently browsing the archives for the %s category.' ), 47 single_cat_title( '', false ) 48 ); 49 ?> 50 </p> 51 52 <?php elseif ( is_day() ) : /* If this is a daily archive */ ?> 53 <p> 54 <?php 55 printf( 56 /* translators: 1: Site link, 2: Archive date. */ 57 __( 'You are currently browsing the %1$s blog archives for the day %2$s.' ), 58 sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), 59 /* translators: Daily archives date format. See https://www.php.net/manual/datetime.format.php */ 60 get_the_time( __( 'l, F jS, Y' ) ) 61 ); 62 ?> 63 </p> 64 65 <?php elseif ( is_month() ) : /* If this is a monthly archive */ ?> 66 <p> 67 <?php 68 printf( 69 /* translators: 1: Site link, 2: Archive month. */ 70 __( 'You are currently browsing the %1$s blog archives for %2$s.' ), 71 sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), 72 /* translators: Monthly archives date format. See https://www.php.net/manual/datetime.format.php */ 73 get_the_time( __( 'F, Y' ) ) 74 ); 75 ?> 76 </p> 77 78 <?php elseif ( is_year() ) : /* If this is a yearly archive */ ?> 79 <p> 80 <?php 81 printf( 82 /* translators: 1: Site link, 2: Archive year. */ 83 __( 'You are currently browsing the %1$s blog archives for the year %2$s.' ), 84 sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), 85 get_the_time( 'Y' ) 86 ); 87 ?> 88 </p> 89 90 <?php elseif ( is_search() ) : /* If this is a search result */ ?> 91 <p> 92 <?php 93 printf( 94 /* translators: 1: Site link, 2: Search query. */ 95 __( 'You have searched the %1$s blog archives for <strong>‘%2$s’</strong>. If you are unable to find anything in these search results, you can try one of these links.' ), 96 sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), 97 esc_html( get_search_query() ) 98 ); 99 ?> 100 </p> 101 102 <?php elseif ( isset( $_GET['paged'] ) && ! empty( $_GET['paged'] ) ) : /* If this set is paginated */ ?> 103 <p> 104 <?php 105 printf( 106 /* translators: %s: Site link. */ 107 __( 'You are currently browsing the %s blog archives.' ), 108 sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ) 109 ); 110 ?> 111 </p> 112 113 <?php endif; ?> 114 115 </li> 116 <?php endif; ?> 117 </ul> 118 <ul role="navigation"> 119 <?php wp_list_pages( 'title_li=<h2>' . __( 'Pages' ) . '</h2>' ); ?> 120 121 <li><h2><?php _e( 'Archives' ); ?></h2> 122 <ul> 123 <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?> 124 </ul> 125 </li> 126 127 <?php 128 wp_list_categories( 129 array( 130 'show_count' => 1, 131 'title_li' => '<h2>' . __( 'Categories' ) . '</h2>', 132 ) 133 ); 134 ?> 135 </ul> 136 <ul> 137 <?php if ( is_home() || is_page() ) { /* If this is the frontpage */ ?> 138 <?php wp_list_bookmarks(); ?> 139 140 <li><h2><?php _e( 'Meta' ); ?></h2> 141 <ul> 142 <?php wp_register(); ?> 143 <li><?php wp_loginout(); ?></li> 144 <?php wp_meta(); ?> 145 </ul> 146 </li> 147 <?php } ?> 148 149 <?php endif; /* ! dynamic_sidebar() */ ?> 150 </ul> 151 </div>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Sat Dec 21 08:20:01 2024 | Cross-referenced by PHPXref |