author | ymh <ymh.work@gmail.com> |
Mon, 08 Sep 2025 19:44:41 +0200 | |
changeset 23 | 417f20492bf7 |
parent 22 | 8c2e4d02f4ef |
permissions | -rw-r--r-- |
0 | 1 |
<?php |
2 |
/** |
|
5 | 3 |
* WordPress Customize Section classes |
0 | 4 |
* |
5 |
* @package WordPress |
|
6 |
* @subpackage Customize |
|
7 |
* @since 3.4.0 |
|
8 |
*/ |
|
5 | 9 |
|
10 |
/** |
|
11 |
* Customize Section class. |
|
12 |
* |
|
13 |
* A UI container for controls, managed by the WP_Customize_Manager class. |
|
14 |
* |
|
15 |
* @since 3.4.0 |
|
16 |
* |
|
17 |
* @see WP_Customize_Manager |
|
18 |
*/ |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
19 |
#[AllowDynamicProperties] |
0 | 20 |
class WP_Customize_Section { |
5 | 21 |
|
22 |
/** |
|
23 |
* Incremented with each new class instantiation, then stored in $instance_number. |
|
24 |
* |
|
25 |
* Used when sorting two instances whose priorities are equal. |
|
26 |
* |
|
27 |
* @since 4.1.0 |
|
28 |
* @var int |
|
29 |
*/ |
|
30 |
protected static $instance_count = 0; |
|
31 |
||
32 |
/** |
|
33 |
* Order in which this instance was created in relation to other instances. |
|
34 |
* |
|
35 |
* @since 4.1.0 |
|
36 |
* @var int |
|
37 |
*/ |
|
38 |
public $instance_number; |
|
39 |
||
40 |
/** |
|
41 |
* WP_Customize_Manager instance. |
|
42 |
* |
|
43 |
* @since 3.4.0 |
|
44 |
* @var WP_Customize_Manager |
|
45 |
*/ |
|
0 | 46 |
public $manager; |
5 | 47 |
|
48 |
/** |
|
49 |
* Unique identifier. |
|
50 |
* |
|
51 |
* @since 3.4.0 |
|
52 |
* @var string |
|
53 |
*/ |
|
0 | 54 |
public $id; |
5 | 55 |
|
56 |
/** |
|
57 |
* Priority of the section which informs load order of sections. |
|
58 |
* |
|
59 |
* @since 3.4.0 |
|
19 | 60 |
* @var int |
5 | 61 |
*/ |
62 |
public $priority = 160; |
|
63 |
||
64 |
/** |
|
65 |
* Panel in which to show the section, making it a sub-section. |
|
66 |
* |
|
67 |
* @since 4.0.0 |
|
68 |
* @var string |
|
69 |
*/ |
|
70 |
public $panel = ''; |
|
71 |
||
72 |
/** |
|
73 |
* Capability required for the section. |
|
74 |
* |
|
75 |
* @since 3.4.0 |
|
76 |
* @var string |
|
77 |
*/ |
|
78 |
public $capability = 'edit_theme_options'; |
|
79 |
||
80 |
/** |
|
16 | 81 |
* Theme features required to support the section. |
5 | 82 |
* |
83 |
* @since 3.4.0 |
|
16 | 84 |
* @var string|string[] |
5 | 85 |
*/ |
0 | 86 |
public $theme_supports = ''; |
5 | 87 |
|
88 |
/** |
|
89 |
* Title of the section to show in UI. |
|
90 |
* |
|
91 |
* @since 3.4.0 |
|
92 |
* @var string |
|
93 |
*/ |
|
94 |
public $title = ''; |
|
95 |
||
96 |
/** |
|
97 |
* Description to show in the UI. |
|
98 |
* |
|
99 |
* @since 3.4.0 |
|
100 |
* @var string |
|
101 |
*/ |
|
102 |
public $description = ''; |
|
103 |
||
104 |
/** |
|
105 |
* Customizer controls for this section. |
|
106 |
* |
|
107 |
* @since 3.4.0 |
|
108 |
* @var array |
|
109 |
*/ |
|
0 | 110 |
public $controls; |
111 |
||
112 |
/** |
|
5 | 113 |
* Type of this section. |
114 |
* |
|
115 |
* @since 4.1.0 |
|
116 |
* @var string |
|
117 |
*/ |
|
118 |
public $type = 'default'; |
|
119 |
||
120 |
/** |
|
121 |
* Active callback. |
|
122 |
* |
|
123 |
* @since 4.1.0 |
|
124 |
* |
|
125 |
* @see WP_Customize_Section::active() |
|
126 |
* |
|
127 |
* @var callable Callback is called with one argument, the instance of |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
128 |
* WP_Customize_Section, and returns bool to indicate whether |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
129 |
* the section is active (such as it relates to the URL currently |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
130 |
* being previewed). |
5 | 131 |
*/ |
132 |
public $active_callback = ''; |
|
133 |
||
134 |
/** |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
135 |
* Show the description or hide it behind the help icon. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
136 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
137 |
* @since 4.7.0 |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
138 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
139 |
* @var bool Indicates whether the Section's description should be |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
140 |
* hidden behind a help icon ("?") in the Section header, |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
141 |
* similar to how help icons are displayed on Panels. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
142 |
*/ |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
143 |
public $description_hidden = false; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
144 |
|
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
145 |
/** |
0 | 146 |
* Constructor. |
147 |
* |
|
5 | 148 |
* Any supplied $args override class property defaults. |
149 |
* |
|
0 | 150 |
* @since 3.4.0 |
151 |
* |
|
5 | 152 |
* @param WP_Customize_Manager $manager Customizer bootstrap instance. |
16 | 153 |
* @param string $id A specific ID of the section. |
154 |
* @param array $args { |
|
155 |
* Optional. Array of properties for the new Section object. Default empty array. |
|
156 |
* |
|
157 |
* @type int $priority Priority of the section, defining the display order |
|
158 |
* of panels and sections. Default 160. |
|
159 |
* @type string $panel The panel this section belongs to (if any). |
|
160 |
* Default empty. |
|
161 |
* @type string $capability Capability required for the section. |
|
162 |
* Default 'edit_theme_options' |
|
163 |
* @type string|string[] $theme_supports Theme features required to support the section. |
|
164 |
* @type string $title Title of the section to show in UI. |
|
165 |
* @type string $description Description to show in the UI. |
|
166 |
* @type string $type Type of the section. |
|
167 |
* @type callable $active_callback Active callback. |
|
168 |
* @type bool $description_hidden Hide the description behind a help icon, |
|
169 |
* instead of inline above the first control. |
|
170 |
* Default false. |
|
171 |
* } |
|
0 | 172 |
*/ |
5 | 173 |
public function __construct( $manager, $id, $args = array() ) { |
174 |
$keys = array_keys( get_object_vars( $this ) ); |
|
0 | 175 |
foreach ( $keys as $key ) { |
5 | 176 |
if ( isset( $args[ $key ] ) ) { |
0 | 177 |
$this->$key = $args[ $key ]; |
5 | 178 |
} |
0 | 179 |
} |
180 |
||
181 |
$this->manager = $manager; |
|
9 | 182 |
$this->id = $id; |
5 | 183 |
if ( empty( $this->active_callback ) ) { |
184 |
$this->active_callback = array( $this, 'active_callback' ); |
|
185 |
} |
|
186 |
self::$instance_count += 1; |
|
187 |
$this->instance_number = self::$instance_count; |
|
0 | 188 |
|
189 |
$this->controls = array(); // Users cannot customize the $controls array. |
|
190 |
} |
|
191 |
||
192 |
/** |
|
5 | 193 |
* Check whether section is active to current Customizer preview. |
194 |
* |
|
195 |
* @since 4.1.0 |
|
196 |
* |
|
197 |
* @return bool Whether the section is active to the current preview. |
|
198 |
*/ |
|
199 |
final public function active() { |
|
200 |
$section = $this; |
|
9 | 201 |
$active = call_user_func( $this->active_callback, $this ); |
5 | 202 |
|
203 |
/** |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
204 |
* Filters response of WP_Customize_Section::active(). |
5 | 205 |
* |
206 |
* @since 4.1.0 |
|
207 |
* |
|
208 |
* @param bool $active Whether the Customizer section is active. |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
209 |
* @param WP_Customize_Section $section WP_Customize_Section instance. |
5 | 210 |
*/ |
211 |
$active = apply_filters( 'customize_section_active', $active, $section ); |
|
212 |
||
213 |
return $active; |
|
214 |
} |
|
215 |
||
216 |
/** |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
217 |
* Default callback used when invoking WP_Customize_Section::active(). |
5 | 218 |
* |
219 |
* Subclasses can override this with their specific logic, or they may provide |
|
220 |
* an 'active_callback' argument to the constructor. |
|
221 |
* |
|
222 |
* @since 4.1.0 |
|
223 |
* |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
224 |
* @return true Always true. |
5 | 225 |
*/ |
226 |
public function active_callback() { |
|
227 |
return true; |
|
228 |
} |
|
229 |
||
230 |
/** |
|
231 |
* Gather the parameters passed to client JavaScript via JSON. |
|
232 |
* |
|
233 |
* @since 4.1.0 |
|
234 |
* |
|
235 |
* @return array The array to be exported to the client as JSON. |
|
236 |
*/ |
|
237 |
public function json() { |
|
9 | 238 |
$array = wp_array_slice_assoc( (array) $this, array( 'id', 'description', 'priority', 'panel', 'type', 'description_hidden' ) ); |
239 |
$array['title'] = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) ); |
|
240 |
$array['content'] = $this->get_content(); |
|
241 |
$array['active'] = $this->active(); |
|
5 | 242 |
$array['instanceNumber'] = $this->instance_number; |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
243 |
|
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
244 |
if ( $this->panel ) { |
16 | 245 |
/* translators: ▸ is the unicode right-pointing triangle. %s: Section title in the Customizer. */ |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
246 |
$array['customizeAction'] = sprintf( __( 'Customizing ▸ %s' ), esc_html( $this->manager->get_panel( $this->panel )->title ) ); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
247 |
} else { |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
248 |
$array['customizeAction'] = __( 'Customizing' ); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
249 |
} |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
250 |
|
5 | 251 |
return $array; |
252 |
} |
|
253 |
||
254 |
/** |
|
255 |
* Checks required user capabilities and whether the theme has the |
|
256 |
* feature support required by the section. |
|
0 | 257 |
* |
258 |
* @since 3.4.0 |
|
259 |
* |
|
260 |
* @return bool False if theme doesn't support the section or user doesn't have the capability. |
|
261 |
*/ |
|
5 | 262 |
final public function check_capabilities() { |
16 | 263 |
if ( $this->capability && ! current_user_can( $this->capability ) ) { |
0 | 264 |
return false; |
5 | 265 |
} |
0 | 266 |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
267 |
if ( $this->theme_supports && ! current_theme_supports( ...(array) $this->theme_supports ) ) { |
0 | 268 |
return false; |
5 | 269 |
} |
0 | 270 |
|
271 |
return true; |
|
272 |
} |
|
273 |
||
274 |
/** |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
275 |
* Get the section's content for insertion into the Customizer pane. |
5 | 276 |
* |
277 |
* @since 4.1.0 |
|
278 |
* |
|
279 |
* @return string Contents of the section. |
|
280 |
*/ |
|
281 |
final public function get_content() { |
|
282 |
ob_start(); |
|
283 |
$this->maybe_render(); |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
284 |
return trim( ob_get_clean() ); |
5 | 285 |
} |
286 |
||
287 |
/** |
|
0 | 288 |
* Check capabilities and render the section. |
289 |
* |
|
290 |
* @since 3.4.0 |
|
291 |
*/ |
|
5 | 292 |
final public function maybe_render() { |
293 |
if ( ! $this->check_capabilities() ) { |
|
0 | 294 |
return; |
5 | 295 |
} |
0 | 296 |
|
5 | 297 |
/** |
298 |
* Fires before rendering a Customizer section. |
|
299 |
* |
|
300 |
* @since 3.4.0 |
|
301 |
* |
|
19 | 302 |
* @param WP_Customize_Section $section WP_Customize_Section instance. |
5 | 303 |
*/ |
0 | 304 |
do_action( 'customize_render_section', $this ); |
5 | 305 |
/** |
306 |
* Fires before rendering a specific Customizer section. |
|
307 |
* |
|
308 |
* The dynamic portion of the hook name, `$this->id`, refers to the ID |
|
309 |
* of the specific Customizer section to be rendered. |
|
310 |
* |
|
311 |
* @since 3.4.0 |
|
312 |
*/ |
|
313 |
do_action( "customize_render_section_{$this->id}" ); |
|
0 | 314 |
|
315 |
$this->render(); |
|
316 |
} |
|
317 |
||
318 |
/** |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
319 |
* Render the section UI in a subclass. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
320 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
321 |
* Sections are now rendered in JS by default, see WP_Customize_Section::print_template(). |
0 | 322 |
* |
323 |
* @since 3.4.0 |
|
324 |
*/ |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
325 |
protected function render() {} |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
326 |
|
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
327 |
/** |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
328 |
* Render the section's JS template. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
329 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
330 |
* This function is only run for section types that have been registered with |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
331 |
* WP_Customize_Manager::register_section_type(). |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
332 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
333 |
* @since 4.3.0 |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
334 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
335 |
* @see WP_Customize_Manager::render_template() |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
336 |
*/ |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
337 |
public function print_template() { |
0 | 338 |
?> |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
339 |
<script type="text/html" id="tmpl-customize-section-<?php echo $this->type; ?>"> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
340 |
<?php $this->render_template(); ?> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
341 |
</script> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
342 |
<?php |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
343 |
} |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
344 |
|
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
345 |
/** |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
346 |
* An Underscore (JS) template for rendering this section. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
347 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
348 |
* Class variables for this section class are available in the `data` JS object; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
349 |
* export custom variables by overriding WP_Customize_Section::json(). |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
350 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
351 |
* @since 4.3.0 |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
352 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
353 |
* @see WP_Customize_Section::print_template() |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
354 |
*/ |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
355 |
protected function render_template() { |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
356 |
?> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
357 |
<li id="accordion-section-{{ data.id }}" class="accordion-section control-section control-section-{{ data.type }}"> |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
358 |
<h3 class="accordion-section-title"> |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
359 |
<button type="button" class="accordion-trigger" aria-expanded="false" aria-controls="{{ data.id }}-content"> |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
360 |
{{ data.title }} |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
361 |
</button> |
5 | 362 |
</h3> |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
363 |
<ul class="accordion-section-content" id="{{ data.id }}-content"> |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
364 |
<li class="customize-section-description-container section-meta <# if ( data.description_hidden ) { #>customize-info<# } #>"> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
365 |
<div class="customize-section-title"> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
366 |
<button class="customize-section-back" tabindex="-1"> |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
367 |
<span class="screen-reader-text"> |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
368 |
<?php |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
369 |
/* translators: Hidden accessibility text. */ |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
370 |
_e( 'Back' ); |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
371 |
?> |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
372 |
</span> |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
373 |
</button> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
374 |
<h3> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
375 |
<span class="customize-action"> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
376 |
{{{ data.customizeAction }}} |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
377 |
</span> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
378 |
{{ data.title }} |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
379 |
</h3> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
380 |
<# if ( data.description && data.description_hidden ) { #> |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
381 |
<button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"> |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
382 |
<?php |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
383 |
/* translators: Hidden accessibility text. */ |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
384 |
_e( 'Help' ); |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
385 |
?> |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
386 |
</span></button> |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
387 |
<div class="description customize-section-description"> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
388 |
{{{ data.description }}} |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
389 |
</div> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
390 |
<# } #> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
391 |
|
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
392 |
<div class="customize-control-notifications-container"></div> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
393 |
</div> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
394 |
|
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
395 |
<# if ( data.description && ! data.description_hidden ) { #> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
396 |
<div class="description customize-section-description"> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
397 |
{{{ data.description }}} |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
398 |
</div> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
399 |
<# } #> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
400 |
</li> |
0 | 401 |
</ul> |
402 |
</li> |
|
403 |
<?php |
|
404 |
} |
|
405 |
} |
|
5 | 406 |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
407 |
/** WP_Customize_Themes_Section class */ |
16 | 408 |
require_once ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php'; |
5 | 409 |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
410 |
/** WP_Customize_Sidebar_Section class */ |
16 | 411 |
require_once ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php'; |
5 | 412 |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
413 |
/** WP_Customize_Nav_Menu_Section class */ |
16 | 414 |
require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php'; |