$this->section_topbar, 'panel' => 'rt_header_panel', 'title' => __( 'Header Topbar', 'bigshop' ), 'description' => __( 'BigShop Topbar Section', 'bigshop' ), 'priority' => 1 ] ); Customize::add_controls( $this->section_topbar, $this->get_controls() ); } /** * Get controls * @return array */ public function get_controls() { return apply_filters( 'bigshop_topbar_controls', [ 'rt_top_bar' => [ 'type' => 'switch', 'label' => __( 'Topbar Visibility', 'bigshop' ), 'edit-link' => '.topbar-row', ], 'rt_topbar_style' => [ 'type' => 'image_select', 'label' => __( 'Topbar Style', 'bigshop' ), 'default' => '1', 'choices' => Fns::image_placeholder( 'topbar', 1,'png' ), 'condition' => [ 'rt_top_bar' ] ], 'rt_topbar_address' => [ 'type' => 'switch', 'label' => __( 'Topbar Address ?', 'bigshop' ), 'default' => 1, 'condition' => [ 'rt_top_bar' ] ], 'rt_topbar_phone' => [ 'type' => 'switch', 'label' => __( 'Topbar Phone ?', 'bigshop' ), 'default' => 1, 'condition' => [ 'rt_top_bar' ] ], 'rt_topbar_email' => [ 'type' => 'switch', 'label' => __( 'Topbar Email ?', 'bigshop' ), 'default' => 1, 'condition' => [ 'rt_top_bar' ] ], ] ); } }