* @license http://www.gnu.org/licenses/gpl-2.0.html * @link https://github.com/maddisondesigns */ class Blog_Point_Toggle_Checkbox_Custom_control extends WP_Customize_Control { /** * The type of control being rendered */ public $type = 'toggle_switch'; /** * Render the control in the customizer */ public function render_content() { ?>
link(); checked( $this->value() ); ?>>
label ); ?> description ) ) { ?> description ); ?>
label ) ) { ?>

label ); ?>


choices; $choices = array_filter( array_merge( array_flip( $this->value() ), $choices ) ); $this->json['choices'] = $choices; $this->json['link'] = $this->get_link(); $this->json['value'] = $this->value(); $this->json['id'] = $this->id; } /** * Render Settings */ public function content_template() { ?> <# if ( ! data.choices ) { return; } #> <# if ( data.label ) { #> {{ data.label }} <# } #> <# if ( data.description ) { #> {{{ data.description }}} <# } #> register_control_type( 'Blog_Point_Customize_Control_Sort_Sections' );