*/ class Amp_WP_Customize_Switch_Control extends WP_Customize_Control { /** * Enqueue scripts/styles for the AMPWP custom switch * * @since 1.0.0 */ public function enqueue() { wp_enqueue_script( 'amp-wp-switch', amp_wp_plugin_url( 'admin/js/amp-wp-switch.js' ), array( 'jquery' ), rand(), true ); wp_enqueue_style( 'amp-wp-switch', amp_wp_plugin_url( 'admin/css/amp-wp-switch.css'), array(), rand() ); } /** * Render the control's content. * * @author Mohsin Rafique * @version 1.0.0 */ protected function render_content() { $val = $this->value(); ?>