'edit_theme_options', 'option_type' => 'theme_mod', ) ); function kirki_demo_control_types() { return array( 'global' => esc_attr__( 'Global', 'bongo' ), 'header' => esc_attr__( 'Header', 'bongo' ), 'footer' => esc_attr__( 'Footer', 'bongo' ), ); } foreach ( kirki_demo_control_types() as $control_type => $control_title ) { /** * Add Sections. */ Kirki::add_section( $control_type, array( 'title' => $control_title, 'capability' => 'edit_theme_options', ) ); /** * Include control-demos files. */ include_once wp_normalize_path( get_template_directory() . '/inc/Customizer/controls/' . $control_type . '.php' ); // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound } add_action( 'customize_register', 'wprig_deregister' ); /** * Deregister customize default unnecessary * * @param $wp_customize */ function wprig_deregister( $wp_customize ) { $wp_customize->remove_section( 'header_image' ); $wp_customize->remove_section( 'title_tagline' ); // Re declare existing section $wp_customize->add_section( 'title_tagline', array( 'title' => esc_html__( 'Site Identity', 'bongo' ), 'priority' => 9, ) ); $wp_customize->add_section( 'colors', array( 'title' => esc_html__( 'Colors', 'bongo' ), 'panel' => 'panel_global', 'priority' => 10, ) ); } // Custom Theme Style if ( ! function_exists( 'wp_rig_customizer_theme_style' ) ) : function wp_rig_customizer_theme_style() { $brand_primary_color = get_theme_mod( 'brand_primary_color', '' ); $layout_settings_max_width_px = get_theme_mod( 'layout_settings_max_width_px', '' ); $layout_header_bottom_spacing = get_theme_mod( 'layout_header_bottom_spacing', '' ); $layout_footer_top_specing = get_theme_mod( 'layout_footer_top_specing', '' ); // Body $bodyFonts = get_theme_mod( 'body_fonts', '' ); $bodyBackground = get_theme_mod( 'body_background', '' ); $main_menu_height = get_theme_mod( 'main_menu_height', '' ); $main_menu_font = get_theme_mod( 'menu_fonts', '' ); $menu_text_color = get_theme_mod( 'menu_text_color', '' ); $menu_hover_color = get_theme_mod( 'menu_hover_color', '' ); $menu_background_color = get_theme_mod( 'menu_background_color', '' ); // Heading Fonts Settings $heading1 = get_theme_mod( 'headings_fonts', '' ); $heading2 = get_theme_mod( 'content_h2_font', '' ); $heading3 = get_theme_mod( 'content_h3_font', '' ); $heading4 = get_theme_mod( 'content_h4_font', '' ); $heading5 = get_theme_mod( 'content_h5_font', '' ); $heading6 = get_theme_mod( 'content_h6_font', '' ); $footer_background_color = get_theme_mod( 'footer_background_color', '' ); $footer_bg_image = get_theme_mod( 'footer_bg_image', '' ); $footer_image_size = get_theme_mod( 'footer_image_size', 'cover' ); $footer_image_repeat = get_theme_mod( 'footer_image_repeat', 'no-repeat' ); $footer_image_position = get_theme_mod( 'footer_image_position', 'center center' ); $footer_text_color = get_theme_mod( 'footer_text_color', '' ); $footer_text_link_color = get_theme_mod( 'footer_text_link_color', '' ); $footer_text_link_hover_color = get_theme_mod( 'footer_text_link_hover_color', '' ); ?>