PATH:
home
/
niazsaze
/
public_html
/
wp-content
/
themes
/
flatsome
/
inc
/
admin
/
kirki
/
controls
/
php
<?php /** * Customizer Control: palette. * * @package Kirki * @subpackage Controls * @copyright Copyright (c) 2020, David Vongries * @license https://opensource.org/licenses/MIT * @since 1.0 */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Palette control (modified radio). */ class Kirki_Control_Palette extends Kirki_Control_Base { /** * The control type. * * @access public * @var string */ public $type = 'kirki-palette'; /** * An Underscore (JS) template for this control's content (but not its container). * * Class variables for this control class are available in the `data` JS object; * export custom variables by overriding {@see WP_Customize_Control::to_json()}. * * @see WP_Customize_Control::print_template() * * @access protected */ protected function content_template() { ?> <# if ( ! data.choices ) { return; } #> <span class="customize-control-title"> {{{ data.label }}} </span> <# if ( data.description ) { #> <span class="description customize-control-description">{{{ data.description }}}</span> <# } #> <div id="input_{{ data.id }}" class="buttonset"> <# for ( key in data.choices ) { #> <input {{{ data.inputAttrs }}} type="radio" value="{{ key }}" name="_customize-palette-{{ data.id }}" id="{{ data.id }}{{ key }}" {{{ data.link }}}<# if ( data.value == key ) { #> checked<# } #>> <label for="{{ data.id }}{{ key }}"> <# for ( color in data.choices[ key ] ) { #> <span style='background: {{ data.choices[ key ][ color ] }}'>{{ data.choices[ key ][ color ] }}</span> <# } #> </label> </input> <# } #> </div> <?php } }
[-] class-kirki-control-image.php
[edit]
[-] class-kirki-control-radio-buttonset.php
[edit]
[-] class-kirki-control-color.php
[edit]
[-] class-kirki-control-base.php
[edit]
[-] class-kirki-control-background.php
[edit]
[-] class-kirki-control-dimension.php
[edit]
[-] class-kirki-control-date.php
[edit]
[-] class-kirki-control-radio.php
[edit]
[-] class-kirki-control-upload.php
[edit]
[-] class-kirki-control-generic.php
[edit]
[-] class-kirki-control-sortable.php
[edit]
[-] class-kirki-control-custom.php
[edit]
[-] class-kirki-control-multicolor.php
[edit]
[-] class-kirki-control-dashicons.php
[edit]
[-] class-kirki-control-cropped-image.php
[edit]
[-] class-kirki-settings-repeater-setting.php
[edit]
[-] class-kirki-control-checkbox.php
[edit]
[-] class-kirki-control-select.php
[edit]
[-] class-kirki-control-number.php
[edit]
[-] class-kirki-control-radio-image.php
[edit]
[-] class-kirki-control-toggle.php
[edit]
[-] class-kirki-control-editor.php
[edit]
[-] class-kirki-control-switch.php
[edit]
[-] class-kirki-control-slider.php
[edit]
[-] class-kirki-control-multicheck.php
[edit]
[-] class-kirki-control-palette.php
[edit]
[-] class-kirki-control-repeater.php
[edit]
[-] class-kirki-control-color-palette.php
[edit]
[-] class-kirki-control-typography.php
[edit]
[-] class-kirki-control-dimensions.php
[edit]
[+]
..
[-] class-kirki-control-code.php
[edit]