$this->section_general, 'title' => __( 'General', 'bigshop' ), 'description' => __( 'WTBigshop General Section', 'bigshop' ), 'priority' => 20 ] ); Customize::add_controls( $this->section_general, $this->get_controls() ); } /** * Get controls * @return array */ public function get_controls() { return apply_filters( 'wtbigshop_test_controls', [ 'rt_svg_enable' => [ 'type' => 'switch', 'label' => __( 'Enable SVG Upload', 'bigshop' ), 'default' => '1' ], 'rt_preloader' => [ 'type' => 'switch', 'label' => __( 'Preloader', 'bigshop' ), ], 'rt_preloader_logo' => [ 'type' => 'image', 'label' => __( 'Preloader Logo', 'bigshop' ), 'description' => __( 'Upload preloader logo for your site.', 'bigshop' ), 'button_label' => __( 'Logo', 'bigshop' ), 'condition' => [ 'rt_preloader' ] ], 'rt_back_to_top' => [ 'type' => 'switch', 'label' => __( 'Back to Top', 'bigshop' ), ], 'rt_remove_admin_bar' => [ 'type' => 'switch', 'label' => __( 'Remove Admin Bar', 'bigshop' ), 'description' => __( 'This option not work for administrator role.', 'bigshop' ), ], 'rt_social_icon_style' => [ 'type' => 'select', 'label' => __( 'Social Icon Style', 'bigshop' ), 'default' => '', 'choices' => [ '' => __( 'Default Icon', 'bigshop' ), '-square' => __( 'Square Icon', 'bigshop' ), ] ], 'container_width' => [ 'type' => 'select', 'label' => __( 'Container Width', 'bigshop' ), 'default' => '1340', 'choices' => [ '1554' => esc_html__( '1554px', 'bigshop' ), '1460' => esc_html__( '1460px', 'bigshop' ), '1340' => esc_html__( '1340px', 'bigshop' ), '1240' => esc_html__( '1240px', 'bigshop' ), '1200' => esc_html__( '1200px', 'bigshop' ), '1140' => esc_html__( '1140px', 'bigshop' ), ] ], ] ); } }