* @license http://www.gnu.org/licenses/gpl-2.0.html * @link https://github.com/maddisondesigns */ class IT_Company_Lite_Toggle_Switch_Custom_Control extends WP_Customize_Control { /** * The type of control being rendered */ public $type = 'toogle_switch'; /** * Enqueue our scripts and styles */ public function enqueue(){ wp_enqueue_style( 'it_company_lite_custom_controls_css', trailingslashit( get_template_directory_uri() ) . 'assets/css/customizer.css', array(), '1.0', 'all' ); } /** * Render the control in the customizer */ public function render_content(){ ?>
link(); checked( $this->value() ); ?>>
label ); ?> description ) ) { ?> description ); ?>
choices)) return; $name = '_customize-radio-' . $this->id; ?> label); ?>