$this->section_header, 'panel' => 'rt_header_panel', 'title' => __( 'Header Menu', 'bigshop' ), 'description' => __( 'WTBigshop Header Section', 'bigshop' ), 'priority' => 2, 'edit-point' => '' ] ); Customize::add_controls( $this->section_header, $this->get_controls() ); } /** * Get controls * @return array */ public function get_controls() { return apply_filters( 'wtbigshop_header_controls', [ 'rt_header_style' => [ 'type' => 'image_select', 'label' => __( 'Choose Layout', 'bigshop' ), 'default' => '3', 'edit-link' => '.site-branding', 'choices' => Fns::image_placeholder( 'header', 3,'png' ) ], 'rt_header_width' => [ 'type' => 'select', 'label' => __( 'Header Width', 'bigshop' ), 'default' => 'box', 'choices' => [ 'box' => __( 'Box Width', 'bigshop' ), 'full' => __( 'Full Width', 'bigshop' ), ] ], 'rt_header_max_width' => [ 'type' => 'number', 'label' => __( 'Header Max Width (PX)', 'bigshop' ), 'description' => __( 'Enter a number greater than 1440. Remove value for 100%', 'bigshop' ), 'condition' => [ 'rt_header_width', '==', 'full' ] ], 'rt_sticy_header' => [ 'type' => 'switch', 'label' => __( 'Sticky Header', 'bigshop' ), 'description' => __( 'Show header at the top when scrolling down', 'bigshop' ), ], 'rt_header_sep1' => [ 'type' => 'separator', 'edit-link' => '.menu-icon-wrapper', ], 'rt_header_search' => [ 'type' => 'switch', 'label' => __( 'Header Search', 'bigshop' ), ], 'rt_header_offer' => [ 'type' => 'switch', 'label' => __( 'Header Offer Deals', 'bigshop' ), ], 'rt_header_phone_label' => [ 'type' => 'switch', 'label' => __( 'Header Phone Label', 'bigshop' ), ], 'rt_header_category' => [ 'type' => 'switch', 'label' => __( 'Header Category', 'bigshop' ), ], 'rt_header_login_link' => [ 'type' => 'switch', 'label' => __( 'User Login ?', 'bigshop' ), ], 'rt_header_wishlist' => [ 'type' => 'switch', 'label' => __( 'Wishlist', 'bigshop' ), ], 'rt_header_add_to_cart' => [ 'type' => 'switch', 'label' => __( 'Add to Cart', 'bigshop' ), ], ] ); } }