add_panel( 'theme_option_panel', array( 'title' => __( 'Theme Options', 'boston-business' ), 'priority' => 100, 'capability' => 'edit_theme_options', ) ); // Setting show_title. $wp_customize->add_setting( 'theme_options[show_title]', array( 'default' => $default['show_title'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'boston_business_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[show_title]', array( 'label' => __( 'Show Site Title', 'boston-business' ), 'section' => 'title_tagline', 'type' => 'checkbox', 'priority' => 25, ) ); // Setting show_tagline. $wp_customize->add_setting( 'theme_options[show_tagline]', array( 'default' => $default['show_tagline'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'boston_business_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[show_tagline]', array( 'label' => __( 'Show Tagline', 'boston-business' ), 'section' => 'title_tagline', 'type' => 'checkbox', 'priority' => 25, ) ); // Layout Section. $wp_customize->add_section( 'section_layout', array( 'title' => __( 'Layout Options', 'boston-business' ), 'priority' => 100, 'capability' => 'edit_theme_options', 'panel' => 'theme_option_panel', ) ); // Setting global_layout. $wp_customize->add_setting( 'theme_options[global_layout]', array( 'default' => $default['global_layout'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'boston_business_sanitize_select', ) ); $wp_customize->add_control( 'theme_options[global_layout]', array( 'label' => __( 'Global Layout', 'boston-business' ), 'section' => 'section_layout', 'type' => 'select', 'choices' => boston_business_get_global_layout_options(), 'priority' => 100, ) ); // Setting global_layout. $wp_customize->add_setting( 'theme_options[site_layout]', array( 'default' => $default['site_layout'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'boston_business_sanitize_select', ) ); $wp_customize->add_control( 'theme_options[site_layout]', array( 'label' => __( 'Site Layout', 'boston-business' ), 'section' => 'section_layout', 'type' => 'select', 'choices' => array( 'wide' => esc_html( 'Wide','boston-business' ), 'boxed'=> esc_html( 'Boxed','boston-business' ) ), 'priority' => 100, ) ); // Pagination Section. $wp_customize->add_section( 'section_pagination', array( 'title' => __( 'Pagination Options', 'boston-business' ), 'priority' => 100, 'capability' => 'edit_theme_options', 'panel' => 'theme_option_panel', ) ); // Setting pagination_type. $wp_customize->add_setting( 'theme_options[pagination_type]', array( 'default' => $default['pagination_type'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'boston_business_sanitize_select', ) ); $wp_customize->add_control( 'theme_options[pagination_type]', array( 'label' => __( 'Pagination Type', 'boston-business' ), 'section' => 'section_pagination', 'type' => 'select', 'choices' => boston_business_get_pagination_type_options(), 'priority' => 100, ) ); // Footer Section. $wp_customize->add_section( 'section_footer', array( 'title' => __( 'Footer Options', 'boston-business' ), 'priority' => 100, 'capability' => 'edit_theme_options', 'panel' => 'theme_option_panel', ) ); // Setting copyright_text. $wp_customize->add_setting( 'theme_options[copyright_text]', array( 'default' => $default['copyright_text'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'boston_business_sanitize_footer_content', ) ); $wp_customize->add_control( 'theme_options[copyright_text]', array( 'label' => __( 'Footer Copyright Text 1', 'boston-business' ), 'section' => 'section_footer', 'type' => 'text', 'priority' => 100, ) ); $wp_customize->add_setting( 'theme_options[copyright_text_description]', array( 'default' => $default['copyright_text_description'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'boston_business_sanitize_footer_content', ) ); $wp_customize->add_control( 'theme_options[copyright_text_description]', array( 'label' => __( 'Footer Copyright Text 2', 'boston-business' ), 'section' => 'section_footer', 'type' => 'text', 'priority' => 100, ) ); $wp_customize->add_setting( 'theme_options[scroll_to_top]', array( 'default' => $default['scroll_to_top'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'boston_business_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[scroll_to_top]', array( 'label' => __( 'Enable Scroll To Top', 'boston-business' ), 'section' => 'section_footer', 'type' => 'checkbox', 'priority' => 100, ) ); // Breadcrumb Section. $wp_customize->add_section( 'section_breadcrumb', array( 'title' => __( 'Breadcrumb Options', 'boston-business' ), 'priority' => 100, 'capability' => 'edit_theme_options', 'panel' => 'theme_option_panel', ) ); // Setting breadcrumb_type. $wp_customize->add_setting( 'theme_options[breadcrumb_type]', array( 'default' => $default['breadcrumb_type'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'boston_business_sanitize_select', ) ); $wp_customize->add_control( 'theme_options[breadcrumb_type]', array( 'label' => __( 'Breadcrumb', 'boston-business' ), 'section' => 'section_breadcrumb', 'type' => 'select', 'choices' => boston_business_get_breadcrumb_type_options(), 'priority' => 100, ) ); // Typography Section $wp_customize->add_section( 'section_typography', array( 'title' => esc_html__( 'Typography', 'boston-business' ), 'priority' => 600, 'panel' => 'theme_option_panel', ) ); $wp_customize->add_setting( 'theme_options[theme_typography]', array( 'default' => $default['theme_typography'], 'sanitize_callback' => 'boston_business_sanitize_select', ) ); $wp_customize->add_control( 'theme_options[theme_typography]', array( 'label' => esc_html__( 'Choose Heading Font Family', 'boston-business' ), 'section' => 'section_typography', 'settings' => 'theme_options[theme_typography]', 'type' => 'select', 'choices' => boston_business_typography_options(), ) ); $wp_customize->add_setting( 'theme_options[body_theme_typography]', array( 'default' => $default['body_theme_typography'], 'sanitize_callback' => 'boston_business_sanitize_select', ) ); $wp_customize->add_control( 'theme_options[body_theme_typography]', array( 'label' => esc_html__( 'Choose Body Font Family', 'boston-business' ), 'section' => 'section_typography', 'settings' => 'theme_options[body_theme_typography]', 'type' => 'select', 'choices' => boston_business_body_typography_options(), ) ); // Add color setting and control. $wp_customize->add_setting( 'theme_options[color_layout]', array( 'default' => $default['color_layout'], 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'theme_options[color_layout]', array( 'label' => esc_html__( 'Theme Color Layout', 'boston-business' ), 'section' => 'colors', ) ) ); // Add theme hover setting and control. $wp_customize->add_setting( 'theme_options[color_hover_layout]', array( 'default' => $default['color_hover_layout'], 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'theme_options[color_hover_layout]', array( 'label' => esc_html__( 'Theme Hover Layout', 'boston-business' ), 'section' => 'colors', ) ) );