Changeset 51322 for trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php
- Timestamp:
- 07/03/2021 09:13:48 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php
r48861 r51322 11 11 /** 12 12 * CUSTOMIZER SETTINGS 13 * 14 * @since Twenty Twenty 1.0 13 15 */ 14 16 class TwentyTwenty_Customize { … … 16 18 /** 17 19 * Register customizer options. 20 * 21 * @since Twenty Twenty 1.0 18 22 * 19 23 * @param WP_Customize_Manager $wp_customize Theme Customizer object. … … 413 417 * Sanitization callback for the "accent_accessible_colors" setting. 414 418 * 415 * @static416 * @access public417 419 * @since Twenty Twenty 1.0 420 * 418 421 * @param array $value The value we want to sanitize. 419 422 * @return array Returns sanitized value. Each item in the array gets sanitized separately. … … 437 440 * Sanitize select. 438 441 * 439 * @param string $input The input from the setting. 442 * @since Twenty Twenty 1.0 443 * 444 * @param string $input The input from the setting. 440 445 * @param object $setting The selected setting. 441 446 * @return string The input from the setting or the default setting. … … 450 455 * Sanitize boolean for checkbox. 451 456 * 457 * @since Twenty Twenty 1.0 458 * 452 459 * @param bool $checked Whether or not a box is checked. 453 460 * @return bool … … 470 477 /** 471 478 * Render the site title for the selective refresh partial. 479 * 480 * @since Twenty Twenty 1.0 472 481 */ 473 482 function twentytwenty_customize_partial_blogname() { … … 479 488 /** 480 489 * Render the site description for the selective refresh partial. 490 * 491 * @since Twenty Twenty 1.0 481 492 */ 482 493 function twentytwenty_customize_partial_blogdescription() { … … 490 501 * 491 502 * Doing it this way so we don't have issues with `render_callback`'s arguments. 503 * 504 * @since Twenty Twenty 1.0 492 505 */ 493 506 function twentytwenty_customize_partial_site_logo() { … … 500 513 * Input attributes for cover overlay opacity option. 501 514 * 515 * @since Twenty Twenty 1.0 516 * 502 517 * @return array Array containing attribute names and their values. 503 518 */ 504 519 function twentytwenty_customize_opacity_range() { 505 520 /** 506 * Filters the input attributes for opacity 521 * Filters the input attributes for opacity. 522 * 523 * @since Twenty Twenty 1.0 507 524 * 508 525 * @param array $attrs { 509 * The attributes 510 * 511 * @type int $min Minimum value512 * @type int $max Maximum value513 * @type int $step Interval between numbers 526 * The attributes. 527 * 528 * @type int $min Minimum value. 529 * @type int $max Maximum value. 530 * @type int $step Interval between numbers. 514 531 * } 515 532 */
Note: See TracChangeset
for help on using the changeset viewer.