PATH:
home
/
niazsaze
/
public_html
/
wp-content
/
themes
/
consultstreet
/
inc
/
customizer
/
controls
/
code
<?php /** * Customize Color control class. * * @package consultstreet * * @see WP_Customize_Control * @access public */ /** * Class ConsultStreet_Customize_Color_Control */ class ConsultStreet_Customize_Color_Control extends ConsultStreet_Customize_Base_Control { /** * Backwards compatibility. * * @access protected * @var bool */ protected $alpha = false; /** * Customize control type. * * @access public * @var string */ public $type = 'consultstreet-color'; /** * Colorpicker palette * * @access public * @var bool */ public $palette = true; /** * Mode. * * @var string */ public $mode = 'full'; /** * Some fields require options to be set. * We're whitelisting the property here * and suggest you validate this in a child class. * * @access protected * @var array */ public $choices = array(); /** * Refresh the parameters passed to the JavaScript via JSON. * * @see WP_Customize_Control::to_json() * @access public * @return void */ public function to_json() { parent::to_json(); $this->json['palette'] = $this->palette; $this->json['choices']['alpha'] = ( isset( $this->choices['alpha'] ) && $this->choices['alpha'] ) ? 'true' : 'false'; $this->json['mode'] = $this->mode; } /** * Render content is still called, so be sure to override it with an empty function in your subclass as well. */ protected function render_content() { } }
[-] consultstreet-customize-radio-buttonset-control.php
[edit]
[-] consultstreet-customize-category-control.php
[edit]
[-] consultstreet-customize-upgrade-control.php
[edit]
[-] consultstreet-customize-toggle-control.php
[edit]
[-] consultstreet-customize-radio-image-control.php
[edit]
[-] consultstreet-customize-base-control.php
[edit]
[-] consultstreet-customize-heading-control.php
[edit]
[-] consultstreet-customize-typography-control.php
[edit]
[-] consultstreet-customize-sortable-control.php
[edit]
[-] consultstreet-customize-color-control.php
[edit]
[-] consultstreet-customize-plugin-control.php
[edit]
[-] consultstreet-customize-slider-control.php
[edit]
[+]
..