class-kirki-field-preset.php (673B)
1 <?php 2 /** 3 * Override field methods 4 * 5 * @package Kirki 6 * @subpackage Controls 7 * @copyright Copyright (c) 2016, Aristeides Stathopoulos 8 * @license http://opensource.org/licenses/https://opensource.org/licenses/MIT 9 * @since 2.2.7 10 */ 11 12 if ( ! class_exists( 'Kirki_Field_Preset' ) ) { 13 14 /** 15 * Field overrides. 16 */ 17 class Kirki_Field_Preset extends Kirki_Field_Select { 18 19 /** 20 * Sets the control type. 21 * 22 * @access protected 23 */ 24 protected function set_type() { 25 26 $this->type = 'kirki-preset'; 27 28 } 29 30 /** 31 * Sets the $multiple 32 * 33 * @access protected 34 */ 35 protected function set_multiple() { 36 37 $this->multiple = '1'; 38 39 } 40 } 41 }