author | ymh <ymh.work@gmail.com> |
Fri, 05 Sep 2025 18:52:52 +0200 | |
changeset 22 | 8c2e4d02f4ef |
parent 21 | 48c4eec2b7e6 |
permissions | -rw-r--r-- |
0 | 1 |
<?php |
2 |
/** |
|
3 |
* @package WordPress |
|
4 |
* @subpackage Theme_Compat |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
5 |
* @deprecated 3.0.0 |
0 | 6 |
* |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
7 |
* This file is here for backward compatibility with old themes and will be removed in a future version. |
0 | 8 |
*/ |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
9 |
_deprecated_file( |
16 | 10 |
/* translators: %s: Template name. */ |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
11 |
sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ), |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
12 |
'3.0.0', |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
13 |
null, |
16 | 14 |
/* translators: %s: Template name. */ |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
15 |
sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) ) |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
16 |
); |
0 | 17 |
?> |
18 |
<div id="sidebar" role="complementary"> |
|
19 |
<ul> |
|
9 | 20 |
<?php |
16 | 21 |
/* Widgetized sidebar, if you have the plugin installed. */ |
9 | 22 |
if ( ! function_exists( 'dynamic_sidebar' ) || ! dynamic_sidebar() ) : |
23 |
?> |
|
0 | 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. |
|
9 | 29 |
<li><h2><?php _e( 'Author' ); ?></h2> |
0 | 30 |
<p>A little something about you, the author. Nothing lengthy, just an overview.</p> |
31 |
</li> |
|
32 |
--> |
|
33 |
||
9 | 34 |
<?php |
35 |
if ( is_404() || is_category() || is_day() || is_month() || |
|
36 |
is_year() || is_search() || is_paged() ) : |
|
37 |
?> |
|
16 | 38 |
<li> |
0 | 39 |
|
9 | 40 |
<?php if ( is_404() ) : /* If this is a 404 page */ ?> |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
41 |
<?php elseif ( is_category() ) : /* If this is a category archive */ ?> |
9 | 42 |
<p> |
43 |
<?php |
|
44 |
printf( |
|
16 | 45 |
/* translators: %s: Category name. */ |
9 | 46 |
__( 'You are currently browsing the archives for the %s category.' ), |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
47 |
single_cat_title( '', false ) |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
48 |
); |
9 | 49 |
?> |
50 |
</p> |
|
0 | 51 |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
52 |
<?php elseif ( is_day() ) : /* If this is a daily archive */ ?> |
9 | 53 |
<p> |
54 |
<?php |
|
55 |
printf( |
|
16 | 56 |
/* translators: 1: Site link, 2: Archive date. */ |
9 | 57 |
__( 'You are currently browsing the %1$s blog archives for the day %2$s.' ), |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
58 |
sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
16
diff
changeset
|
59 |
/* translators: Daily archives date format. See https://www.php.net/manual/datetime.format.php */ |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
60 |
get_the_time( __( 'l, F jS, Y' ) ) |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
61 |
); |
9 | 62 |
?> |
63 |
</p> |
|
0 | 64 |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
65 |
<?php elseif ( is_month() ) : /* If this is a monthly archive */ ?> |
9 | 66 |
<p> |
67 |
<?php |
|
68 |
printf( |
|
16 | 69 |
/* translators: 1: Site link, 2: Archive month. */ |
9 | 70 |
__( 'You are currently browsing the %1$s blog archives for %2$s.' ), |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
71 |
sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
16
diff
changeset
|
72 |
/* translators: Monthly archives date format. See https://www.php.net/manual/datetime.format.php */ |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
73 |
get_the_time( __( 'F, Y' ) ) |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
74 |
); |
9 | 75 |
?> |
76 |
</p> |
|
0 | 77 |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
78 |
<?php elseif ( is_year() ) : /* If this is a yearly archive */ ?> |
9 | 79 |
<p> |
80 |
<?php |
|
81 |
printf( |
|
16 | 82 |
/* translators: 1: Site link, 2: Archive year. */ |
9 | 83 |
__( 'You are currently browsing the %1$s blog archives for the year %2$s.' ), |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
84 |
sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
85 |
get_the_time( 'Y' ) |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
86 |
); |
9 | 87 |
?> |
88 |
</p> |
|
0 | 89 |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
90 |
<?php elseif ( is_search() ) : /* If this is a search result */ ?> |
9 | 91 |
<p> |
92 |
<?php |
|
93 |
printf( |
|
16 | 94 |
/* translators: 1: Site link, 2: Search query. */ |
9 | 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.' ), |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
96 |
sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ), |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
97 |
esc_html( get_search_query() ) |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
98 |
); |
9 | 99 |
?> |
100 |
</p> |
|
0 | 101 |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
102 |
<?php elseif ( isset( $_GET['paged'] ) && ! empty( $_GET['paged'] ) ) : /* If this set is paginated */ ?> |
9 | 103 |
<p> |
104 |
<?php |
|
105 |
printf( |
|
16 | 106 |
/* translators: %s: Site link. */ |
9 | 107 |
__( 'You are currently browsing the %s blog archives.' ), |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
108 |
sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ) |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
109 |
); |
9 | 110 |
?> |
111 |
</p> |
|
0 | 112 |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
113 |
<?php endif; ?> |
0 | 114 |
|
115 |
</li> |
|
9 | 116 |
<?php endif; ?> |
0 | 117 |
</ul> |
118 |
<ul role="navigation"> |
|
9 | 119 |
<?php wp_list_pages( 'title_li=<h2>' . __( 'Pages' ) . '</h2>' ); ?> |
0 | 120 |
|
9 | 121 |
<li><h2><?php _e( 'Archives' ); ?></h2> |
0 | 122 |
<ul> |
9 | 123 |
<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?> |
0 | 124 |
</ul> |
125 |
</li> |
|
126 |
||
9 | 127 |
<?php |
128 |
wp_list_categories( |
|
129 |
array( |
|
130 |
'show_count' => 1, |
|
131 |
'title_li' => '<h2>' . __( 'Categories' ) . '</h2>', |
|
132 |
) |
|
133 |
); |
|
134 |
?> |
|
0 | 135 |
</ul> |
136 |
<ul> |
|
9 | 137 |
<?php if ( is_home() || is_page() ) { /* If this is the frontpage */ ?> |
138 |
<?php wp_list_bookmarks(); ?> |
|
0 | 139 |
|
9 | 140 |
<li><h2><?php _e( 'Meta' ); ?></h2> |
0 | 141 |
<ul> |
142 |
<?php wp_register(); ?> |
|
143 |
<li><?php wp_loginout(); ?></li> |
|
144 |
<?php wp_meta(); ?> |
|
145 |
</ul> |
|
146 |
</li> |
|
147 |
<?php } ?> |
|
148 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
149 |
<?php endif; /* ! dynamic_sidebar() */ ?> |
0 | 150 |
</ul> |
151 |
</div> |