Initial commit

This commit is contained in:
Alexander Agnarson 2019-02-10 20:21:07 +01:00
commit ee50200fe7
353 changed files with 78977 additions and 0 deletions

View file

@ -0,0 +1,42 @@
<?php
/**
* Override field methods
*
* @package Kirki
* @subpackage Controls
* @copyright Copyright (c) 2017, Aristeides Stathopoulos
* @license https://opensource.org/licenses/MIT
* @since 2.2.7
*/
/**
* Field overrides.
*/
class Kirki_Field_Preset extends Kirki_Field_Select {
/**
* Sets the control type.
*
* @access protected
*/
protected function set_type() {
$this->type = 'kirki-select';
}
/**
* Set the preset.
*
* @access protected
* @since 3.0.28
*/
protected function set_preset() {
// Set preset from the choices.
$this->preset = $this->choices;
// We're using a flat select.
foreach ( $this->choices as $key => $args ) {
$this->choices[ $key ] = $args['label'];
}
}
}