mirror of
https://ghproxy.net/https://github.com/AlxMedia/splits.git
synced 2025-08-27 01:44:44 +08:00
Initial commit
This commit is contained in:
commit
9f13aa6240
389 changed files with 84369 additions and 0 deletions
37
functions/kirki/controls/php/class-kirki-control-upload.php
Normal file
37
functions/kirki/controls/php/class-kirki-control-upload.php
Normal file
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
/**
|
||||
* Customizer Control: image.
|
||||
*
|
||||
* @package Kirki
|
||||
* @subpackage Controls
|
||||
* @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
|
||||
* @license https://opensource.org/licenses/MIT
|
||||
* @since 3.0.23
|
||||
*/
|
||||
|
||||
/**
|
||||
* Adds the image control.
|
||||
*/
|
||||
class Kirki_Control_Upload extends WP_Customize_Upload_Control {
|
||||
|
||||
/**
|
||||
* Whitelisting the "required" argument.
|
||||
*
|
||||
* @since 3.0.17
|
||||
* @access public
|
||||
* @var array
|
||||
*/
|
||||
public $required = array();
|
||||
|
||||
/**
|
||||
* Refresh the parameters passed to the JavaScript via JSON.
|
||||
*
|
||||
* @since 3.0.23
|
||||
*
|
||||
* @uses WP_Customize_Media_Control::to_json()
|
||||
*/
|
||||
public function to_json() {
|
||||
parent::to_json();
|
||||
$this->json['required'] = $this->required;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue