5 * @deprecated 3.0.0 |
5 * @deprecated 3.0.0 |
6 * |
6 * |
7 * This file is here for backward compatibility with old themes and will be removed in a future version. |
7 * This file is here for backward compatibility with old themes and will be removed in a future version. |
8 */ |
8 */ |
9 _deprecated_file( |
9 _deprecated_file( |
10 /* translators: %s: template name */ |
10 /* translators: %s: Template name. */ |
11 sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ), |
11 sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ), |
12 '3.0.0', |
12 '3.0.0', |
13 null, |
13 null, |
14 /* translators: %s: template name */ |
14 /* translators: %s: Template name. */ |
15 sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) ) |
15 sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) ) |
16 ); |
16 ); |
17 ?> |
17 ?> |
18 <div id="sidebar" role="complementary"> |
18 <div id="sidebar" role="complementary"> |
19 <ul> |
19 <ul> |
20 <?php |
20 <?php |
21 /* Widgetized sidebar, if you have the plugin installed. */ |
21 /* Widgetized sidebar, if you have the plugin installed. */ |
22 if ( ! function_exists( 'dynamic_sidebar' ) || ! dynamic_sidebar() ) : |
22 if ( ! function_exists( 'dynamic_sidebar' ) || ! dynamic_sidebar() ) : |
23 ?> |
23 ?> |
24 <li> |
24 <li> |
25 <?php get_search_form(); ?> |
25 <?php get_search_form(); ?> |
26 </li> |
26 </li> |
33 |
33 |
34 <?php |
34 <?php |
35 if ( is_404() || is_category() || is_day() || is_month() || |
35 if ( is_404() || is_category() || is_day() || is_month() || |
36 is_year() || is_search() || is_paged() ) : |
36 is_year() || is_search() || is_paged() ) : |
37 ?> |
37 ?> |
38 <li> |
38 <li> |
39 |
39 |
40 <?php if ( is_404() ) : /* If this is a 404 page */ ?> |
40 <?php if ( is_404() ) : /* If this is a 404 page */ ?> |
41 <?php elseif ( is_category() ) : /* If this is a category archive */ ?> |
41 <?php elseif ( is_category() ) : /* If this is a category archive */ ?> |
42 <p> |
42 <p> |
43 <?php |
43 <?php |
44 /* translators: %s: category name */ |
|
45 printf( |
44 printf( |
|
45 /* translators: %s: Category name. */ |
46 __( 'You are currently browsing the archives for the %s category.' ), |
46 __( 'You are currently browsing the archives for the %s category.' ), |
47 single_cat_title( '', false ) |
47 single_cat_title( '', false ) |
48 ); |
48 ); |
49 ?> |
49 ?> |
50 </p> |
50 </p> |
51 |
51 |
52 <?php elseif ( is_day() ) : /* If this is a daily archive */ ?> |
52 <?php elseif ( is_day() ) : /* If this is a daily archive */ ?> |
53 <p> |
53 <p> |
54 <?php |
54 <?php |
55 /* translators: 1: site link, 2: archive date */ |
|
56 printf( |
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.' ), |
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' ) ), |
58 sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), |
59 get_the_time( __( 'l, F jS, Y' ) ) |
59 get_the_time( __( 'l, F jS, Y' ) ) |
60 ); |
60 ); |
61 ?> |
61 ?> |
62 </p> |
62 </p> |
63 |
63 |
64 <?php elseif ( is_month() ) : /* If this is a monthly archive */ ?> |
64 <?php elseif ( is_month() ) : /* If this is a monthly archive */ ?> |
65 <p> |
65 <p> |
66 <?php |
66 <?php |
67 /* translators: 1: site link, 2: archive month */ |
|
68 printf( |
67 printf( |
|
68 /* translators: 1: Site link, 2: Archive month. */ |
69 __( 'You are currently browsing the %1$s blog archives for %2$s.' ), |
69 __( 'You are currently browsing the %1$s blog archives for %2$s.' ), |
70 sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), |
70 sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), |
71 get_the_time( __( 'F, Y' ) ) |
71 get_the_time( __( 'F, Y' ) ) |
72 ); |
72 ); |
73 ?> |
73 ?> |
74 </p> |
74 </p> |
75 |
75 |
76 <?php elseif ( is_year() ) : /* If this is a yearly archive */ ?> |
76 <?php elseif ( is_year() ) : /* If this is a yearly archive */ ?> |
77 <p> |
77 <p> |
78 <?php |
78 <?php |
79 /* translators: 1: site link, 2: archive year */ |
|
80 printf( |
79 printf( |
|
80 /* translators: 1: Site link, 2: Archive year. */ |
81 __( 'You are currently browsing the %1$s blog archives for the year %2$s.' ), |
81 __( 'You are currently browsing the %1$s blog archives for the year %2$s.' ), |
82 sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), |
82 sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), |
83 get_the_time( 'Y' ) |
83 get_the_time( 'Y' ) |
84 ); |
84 ); |
85 ?> |
85 ?> |
86 </p> |
86 </p> |
87 |
87 |
88 <?php elseif ( is_search() ) : /* If this is a search result */ ?> |
88 <?php elseif ( is_search() ) : /* If this is a search result */ ?> |
89 <p> |
89 <p> |
90 <?php |
90 <?php |
91 /* translators: 1: site link, 2: search query */ |
|
92 printf( |
91 printf( |
|
92 /* translators: 1: Site link, 2: Search query. */ |
93 __( '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.' ), |
93 __( '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.' ), |
94 sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), |
94 sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), |
95 esc_html( get_search_query() ) |
95 esc_html( get_search_query() ) |
96 ); |
96 ); |
97 ?> |
97 ?> |
98 </p> |
98 </p> |
99 |
99 |
100 <?php elseif ( isset( $_GET['paged'] ) && ! empty( $_GET['paged'] ) ) : /* If this set is paginated */ ?> |
100 <?php elseif ( isset( $_GET['paged'] ) && ! empty( $_GET['paged'] ) ) : /* If this set is paginated */ ?> |
101 <p> |
101 <p> |
102 <?php |
102 <?php |
103 /* translators: %s: site link */ |
|
104 printf( |
103 printf( |
|
104 /* translators: %s: Site link. */ |
105 __( 'You are currently browsing the %s blog archives.' ), |
105 __( 'You are currently browsing the %s blog archives.' ), |
106 sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ) |
106 sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ) |
107 ); |
107 ); |
108 ?> |
108 ?> |
109 </p> |
109 </p> |