array( 'top-header','header-settings','banner-slider','grid-categorys','archive-blog-page','single-page','breadcrumb','sidebar-layout','theme-layout','footer', 'general-settings' ), ); //call the functions $this->blog99_customizer_panel( $blog99_panels , $blog99_sub_sections ); /** * Sanitize callback for checkbox * * sanitization-functions.php | senitization the custoizer function * * @since 1.0.0 */ load_template( trailingslashit ( get_template_directory() ) . 'wp99themes/customizer/sanitization-functions.php' ); /** * Customizer Preview Js * * * @since 1.0.0 */ add_action( 'customize_preview_init',array( $this,'blog99_customize_preview_js' ) ); add_action( 'customize_controls_enqueue_scripts',array( $this,'blog99_customizer_scripts' ) ); add_action( 'customize_controls_print_scripts',array( $this,'add_scripts' ) ); } /** * Blog99 Customizer load script * * @access public * @since 1.0.0 */ function add_scripts(){ ?> $v ){ foreach( $v as $w ){ load_template( trailingslashit ( get_template_directory() ) . 'wp99themes/customizer/panels/' . $k . '/' . $w . '.php' ); } } } /** * Basic Js File enqueue Section * * @access public * @since 1.0.0 */ public function blog99_customize_preview_js() { wp_enqueue_script( 'blog99-customizer-preview', trailingslashit ( get_template_directory_uri() ) . 'wp99themes/customizer/js/customizer.js', array( 'customize-preview', 'customize-selective-refresh' ), BLOG99_THEME_VERSION, true ); } /** * Basic Js File enqueue Section * * @access public * @since 1.0.0 */ public function blog99_customizer_scripts() { wp_enqueue_style( 'blog99-customize',trailingslashit ( get_template_directory_uri() ) .'wp99themes/customizer/css/blog99-customizer.css', BLOG99_THEME_VERSION, false ); } } /** * customizer file this off by calling 'get_instance()' method */ Blog99Customizer::get_instance();