mirror of
https://ghproxy.net/https://github.com/AlxMedia/magaziner.git
synced 2025-08-28 12:37:59 +08:00
Initial commit
This commit is contained in:
commit
b0607606ae
369 changed files with 85494 additions and 0 deletions
58
functions/kirki/controls/php/class-kirki-control-select.php
Normal file
58
functions/kirki/controls/php/class-kirki-control-select.php
Normal file
|
@ -0,0 +1,58 @@
|
|||
<?php
|
||||
/**
|
||||
* Customizer Control: kirki-select.
|
||||
*
|
||||
* @package Kirki
|
||||
* @subpackage Controls
|
||||
* @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
|
||||
* @license https://opensource.org/licenses/MIT
|
||||
* @since 1.0
|
||||
*/
|
||||
|
||||
// Exit if accessed directly.
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Select control.
|
||||
*/
|
||||
class Kirki_Control_Select extends Kirki_Control_Base {
|
||||
|
||||
/**
|
||||
* The control type.
|
||||
*
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'kirki-select';
|
||||
|
||||
/**
|
||||
* Placeholder text.
|
||||
*
|
||||
* @access public
|
||||
* @since 3.0.21
|
||||
* @var string|false
|
||||
*/
|
||||
public $placeholder = false;
|
||||
|
||||
/**
|
||||
* Maximum number of options the user will be able to select.
|
||||
* Set to 1 for single-select.
|
||||
*
|
||||
* @access public
|
||||
* @var int
|
||||
*/
|
||||
public $multiple = 1;
|
||||
|
||||
/**
|
||||
* Refresh the parameters passed to the JavaScript via JSON.
|
||||
*
|
||||
* @see WP_Customize_Control::to_json()
|
||||
*/
|
||||
public function to_json() {
|
||||
parent::to_json();
|
||||
$this->json['multiple'] = $this->multiple;
|
||||
$this->json['placeholder'] = $this->placeholder;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue