register_control_type( 'Epsilon_Control_Toggle' ); } /** * Add custom parameters to pass to the JS via JSON. * * @since 1.2.0 * @access public */ public function json() { $json = parent::json(); $json['id'] = $this->id; $json['link'] = $this->get_link(); $json['value'] = $this->value(); return $json; } /** * Empty, as it should. * * @since 1.0.0 * @access public * @return void */ public function render_content() {} /** * @since 1.2.0 * @access public */ public function content_template() { //@formatter:off ?>
{{{ data.label }}} <# if( data.description ){ #> {{{ data.description }}} <# } #>
checked="checked" <# } #> >