X7ROOT File Manager
Current Path:
/home/bloomi9/landfarmhomebackup/wp-includes/customize
home
/
bloomi9
/
landfarmhomebackup
/
wp-includes
/
customize
/
📁
..
📄
class-wp-customize-background-image-control.php
(1.15 KB)
📄
class-wp-customize-background-image-setting.php
(508 B)
📄
class-wp-customize-background-position-control.php
(2.74 KB)
📄
class-wp-customize-code-editor-control.php
(2.21 KB)
📄
class-wp-customize-color-control.php
(2.8 KB)
📄
class-wp-customize-cropped-image-control.php
(1.43 KB)
📄
class-wp-customize-custom-css-setting.php
(4.76 KB)
📄
class-wp-customize-date-time-control.php
(8.31 KB)
📄
class-wp-customize-filter-setting.php
(588 B)
📄
class-wp-customize-header-image-control.php
(7.39 KB)
📄
class-wp-customize-header-image-setting.php
(1.55 KB)
📄
class-wp-customize-image-control.php
(1.05 KB)
📄
class-wp-customize-media-control.php
(9.03 KB)
📄
class-wp-customize-nav-menu-auto-add-control.php
(1.1 KB)
📄
class-wp-customize-nav-menu-control.php
(1.99 KB)
📄
class-wp-customize-nav-menu-item-control.php
(6.3 KB)
📄
class-wp-customize-nav-menu-item-setting.php
(26.27 KB)
📄
class-wp-customize-nav-menu-location-control.php
(2.09 KB)
📄
class-wp-customize-nav-menu-locations-control.php
(2.74 KB)
📄
class-wp-customize-nav-menu-name-control.php
(1.1 KB)
📄
class-wp-customize-nav-menu-section.php
(709 B)
📄
class-wp-customize-nav-menu-setting.php
(18.29 KB)
📄
class-wp-customize-nav-menus-panel.php
(3.01 KB)
📄
class-wp-customize-new-menu-control.php
(1.35 KB)
📄
class-wp-customize-new-menu-section.php
(1.64 KB)
📄
class-wp-customize-partial.php
(8.64 KB)
📄
class-wp-customize-selective-refresh.php
(14.72 KB)
📄
class-wp-customize-sidebar-section.php
(1.02 KB)
📄
class-wp-customize-site-icon-control.php
(3.19 KB)
📄
class-wp-customize-theme-control.php
(4.35 KB)
📄
class-wp-customize-themes-panel.php
(3.15 KB)
📄
class-wp-customize-themes-section.php
(6.42 KB)
📄
class-wp-customize-upload-control.php
(977 B)
📄
class-wp-widget-area-customize-control.php
(1.62 KB)
📄
class-wp-widget-form-customize-control.php
(1.95 KB)
Editing: class-wp-customize-color-control.php
<?php /** * Customize API: WP_Customize_Color_Control class * * @package WordPress * @subpackage Customize * @since 4.4.0 */ /** * Customize Color Control class. * * @since 3.4.0 * * @see WP_Customize_Control */ class WP_Customize_Color_Control extends WP_Customize_Control { /** * Type. * * @var string */ public $type = 'color'; /** * Statuses. * * @var array */ public $statuses; /** * Mode. * * @since 4.7.0 * @var string */ public $mode = 'full'; /** * Constructor. * * @since 3.4.0 * @uses WP_Customize_Control::__construct() * * @param WP_Customize_Manager $manager Customizer bootstrap instance. * @param string $id Control ID. * @param array $args Optional. Arguments to override class property defaults. */ public function __construct( $manager, $id, $args = array() ) { $this->statuses = array( '' => __('Default') ); parent::__construct( $manager, $id, $args ); } /** * Enqueue scripts/styles for the color picker. * * @since 3.4.0 */ public function enqueue() { wp_enqueue_script( 'wp-color-picker' ); wp_enqueue_style( 'wp-color-picker' ); } /** * Refresh the parameters passed to the JavaScript via JSON. * * @since 3.4.0 * @uses WP_Customize_Control::to_json() */ public function to_json() { parent::to_json(); $this->json['statuses'] = $this->statuses; $this->json['defaultValue'] = $this->setting->default; $this->json['mode'] = $this->mode; } /** * Don't render the control content from PHP, as it's rendered via JS on load. * * @since 3.4.0 */ public function render_content() {} /** * Render a JS template for the content of the color picker control. * * @since 4.1.0 */ public function content_template() { ?> <# var defaultValue = '#RRGGBB', defaultValueAttr = '', isHueSlider = data.mode === 'hue'; if ( data.defaultValue && _.isString( data.defaultValue ) && ! isHueSlider ) { if ( '#' !== data.defaultValue.substring( 0, 1 ) ) { defaultValue = '#' + data.defaultValue; } else { defaultValue = data.defaultValue; } defaultValueAttr = ' data-default-color=' + defaultValue; // Quotes added automatically. } #> <# if ( data.label ) { #> <span class="customize-control-title">{{{ data.label }}}</span> <# } #> <# if ( data.description ) { #> <span class="description customize-control-description">{{{ data.description }}}</span> <# } #> <div class="customize-control-content"> <label><span class="screen-reader-text">{{{ data.label }}}</span> <# if ( isHueSlider ) { #> <input class="color-picker-hue" type="text" data-type="hue" /> <# } else { #> <input class="color-picker-hex" type="text" maxlength="7" placeholder="{{ defaultValue }}" {{ defaultValueAttr }} /> <# } #> </label> </div> <?php } }
Upload File
Create Folder