'_customize-dropdown-categories-' . $this->id, 'echo' => 0, 'show_option_none' => __( '— Select —', 'berkeley' ), 'option_none_value' => '0', 'selected' => $this->value(), ) ); $dropdown = str_replace( 'get_link(), $dropdown ); printf( '', $this->label, $dropdown ); } } } //Miscellaneous Controls if ( class_exists('WP_Customize_Control')) { class Berkeley_WP_Customize_Miscellaneous_Control extends WP_Customize_Control { public $type = 'misc'; public function render_content() { printf( '', $this->label, $this->description ); } } } //Enable Disable Switch Control if( class_exists( 'WP_Customize_Control' ) ) : class Berkeley_Switch_Control extends WP_Customize_Control{ public $type = 'switch'; public $enable_disable = array(); public function __construct($manager, $id, $args = array() ){ $this->enable_disable = $args['enable_disable']; parent::__construct( $manager, $id, $args ); } public function render_content(){ ?> label ); ?> description){ ?> description); ?> value() == 'enable') ? 'switch-enable' : ''; $enable_disable = $this->enable_disable; ?>
link(); ?> type="hidden" value="value()); ?>"/>