tab ) { $this->json['tab'] = $this->tab; } } /** * Enqueue scripts/styles. * * @since 3.4.0 */ public function enqueue() { wp_enqueue_style( 'blog-postx-customizer-icon-picker', get_template_directory_uri() . '/inc/customizer/custom-controls/icon-picker/control.css', array(), BLOG_POSTX_VERSION, 'all' ); wp_enqueue_media(); wp_enqueue_script( 'blog-postx-customizer-icon-picker', get_template_directory_uri() . '/inc/customizer/custom-controls/icon-picker/control.js', array('jquery'), BLOG_POSTX_VERSION, [ 'strategy' => 'defer', 'in_footer' => true ] ); } // Render the control's content public function render_content() { $value = $this->value(); $default = $this->setting->default; $current_icon = ( $value['type'] == 'icon' ) ? $value['value']: $default['value']; ?>