array( 'main-header' ), 'general' => array( 'breadcrumb','sidebar-layout','theme-layout','archive-section' ), 'woocommerce' => array( 'woocommerce' ), ); /** * Customizer section array * * @access public * @var array * @since 1.0.0 */ $this->acommerce_customizer_panel( $acommerce_panels , $acommerce_sub_sections ); /** * Sanitize callback for checkbox * * sanitization-functions.php | senitization the custoizer function * * @since 1.0.0 */ load_template( ACOMMERCE_THEME_DIR . 'spiderbuzz/customizer/sanitization-functions.php' ); /** * Customizer Preview Js * * * @since 1.0.0 */ add_action( 'customize_preview_init',array( $this,'acommerce_customize_preview_js' ) ); add_action( 'customize_controls_enqueue_scripts',array( $this,'acommerce_customizer_scripts' ) ); } /** * aCommerce Customizer load the all panel and section * * @access public * @since 1.0.0 */ public function acommerce_customizer_panel( $acommerce_panels , $acommerce_sub_sections ){ /** * Call the panel * * Register the all aCommerce customizer panel * * @since 1.0.0 */ foreach( $acommerce_panels as $acommerce_panel ){ load_template( ACOMMERCE_THEME_DIR . '/spiderbuzz/customizer/panels/' . $acommerce_panel . '.php' ); } /** * Call the section * * Register the all aCommerce customizer section, * and conrol. * * @since 1.0.0 */ foreach( $acommerce_sub_sections as $acommerce_k => $acommerce_v ){ foreach( $acommerce_v as $acommerce_w ){ load_template( ACOMMERCE_THEME_DIR . 'spiderbuzz/customizer/panels/' . $acommerce_k . '/' . $acommerce_w . '.php' ); } } } /** * Basic Js File enqueue Section * * @access public * @since 1.0.0 */ public function acommerce_customize_preview_js() { wp_enqueue_script( 'acommerce-customizer-preview', ACOMMERCE_THEME_URI . 'spiderbuzz/customizer/js/live-customizer.js', array( 'customize-preview', 'customize-selective-refresh' ), ACOMMERCE_THEME_VERSION, true ); } /** * Basic Js File enqueue Section * * @access public * @since 1.0.0 */ public function acommerce_customizer_scripts() { wp_enqueue_style( 'acommerce-customize',ACOMMERCE_THEME_URI.'spiderbuzz/customizer/css/customize.css', ACOMMERCE_THEME_VERSION, false ); } } /** * customizer file this off by calling 'get_instance()' method */ aCommerceCustomizer::get_instance();