fields = $fields; $this->label = $args['label']; parent::__construct( $manager, $id, $args ); } /** * enqueue css and scrpts * * @since 1.2.8 */ public function enqueue() { wp_enqueue_style('business-roy-group-control', get_template_directory_uri() . '/inc/custom-controller/group/css/group.css', array()); wp_enqueue_script('business-roy-group-control', get_template_directory_uri().'/inc/custom-controller/group/js/group.js', array( 'jquery', 'customize-controls' ), '', true); wp_localize_script( 'business-roy-group-control', 'businessRoyLocalize', array( 'colorPalettes' => business_roy_default_color_palettes(), ) ); } /** * Renders the control wrapper and calls $this->render_content() for the internals. * * @see WP_Customize_Control::render() */ protected function render() { $id = 'customize-control-' . str_replace( array( '[', ']' ), array( '-', '' ), $this->id ); $class = 'customize-control has-switchers customize-control-' . $this->type; ?>