Plugin rewritten from ground up

Version 2.0
This commit is contained in:
LebCit
2018-11-22 20:05:59 +02:00
parent 9c68e0dd59
commit 97d20e9a81
277 changed files with 61349 additions and 2 deletions
@@ -0,0 +1,37 @@
<?php
/**
* Customizer Control: image.
*
* @package Kirki
* @subpackage Controls
* @copyright Copyright (c) 2017, Aristeides Stathopoulos
* @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;
}
}