Current Path : /home/church/public_html/wp-content/themes/neve/inc/customizer/controls/react/ |
Current File : /home/church/public_html/wp-content/themes/neve/inc/customizer/controls/react/inline_select.php |
<?php /** * Inline Select Control. Handles data passing from args to JS. * * @package Neve\Customizer\Controls\React */ namespace Neve\Customizer\Controls\React; /** * Class Inline_Select * * @package Neve\Customizer\Controls\React */ class Inline_Select extends \WP_Customize_Control { /** * Control type. * * @var string */ public $type = 'neve_inline_select'; /** * Options. * * @var array */ public $options = []; /** * Default. * * @var string|int */ public $default; /** * Link. * * @var array */ public $link; /** * Send to JS. */ public function to_json() { parent::to_json(); $this->json['options'] = $this->options; $this->json['defaultVal'] = $this->default; $this->json['link'] = $this->link; } }