add_setting( BSTONE_THEME_SETTINGS . '[schema-markup-heading]', array( 'sanitize_callback' => 'wp_kses', ) ); $wp_customize->add_control ( new Bstone_Control_Heading ( $wp_customize, BSTONE_THEME_SETTINGS . '[schema-markup-heading]', array( 'label' => esc_html__( 'Schema Markup', 'bstone' ), 'section' => 'section-general-settings', 'priority' => 5, ) ) ); /** * Option: Enable Schema Markup */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[bstone-schema-markup]', array( 'default' => bstone_get_option( 'bstone-schema-markup' ), 'type' => 'option', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_checkbox' ), ) ); $wp_customize->add_control( BSTONE_THEME_SETTINGS . '[bstone-schema-markup]', array( 'type' => 'checkbox', 'section' => 'section-general-settings', 'label' => __( 'Enable Schema Markup', 'bstone' ), 'priority' => 10, ) ); /** * Heading: Customizer Type */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[customizer-type-heading]', array( 'sanitize_callback' => 'wp_kses', ) ); $wp_customize->add_control ( new Bstone_Control_Heading ( $wp_customize, BSTONE_THEME_SETTINGS . '[customizer-type-heading]', array( 'label' => esc_html__( 'Customizer Type', 'bstone' ), 'section' => 'section-general-settings', 'priority' => 15, ) ) ); /** * Option: Bstone CSS Location */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[bstone-customizer-type]', array( 'default' => bstone_get_option( 'bstone-customizer-type' ), 'type' => 'option', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_choices' ), ) ); $wp_customize->add_control( BSTONE_THEME_SETTINGS . '[bstone-customizer-type]', array( 'type' => 'radio', 'section' => 'section-general-settings', 'label' => __( 'Customizer Type', 'bstone' ), 'priority' => 20, 'choices' => array( 'basic' => esc_html__( 'Basic', 'bstone' ), 'advanced' => esc_html__( 'Advanced', 'bstone' ), ), 'description' => esc_html__( 'Select "Advanced" to enable advanced options.', 'bstone' ), ) ); /** * Heading: Customizer Styles Location */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[css-output-location-heading]', array( 'sanitize_callback' => 'wp_kses', ) ); $wp_customize->add_control ( new Bstone_Control_Heading ( $wp_customize, BSTONE_THEME_SETTINGS . '[css-output-location-heading]', array( 'label' => esc_html__( 'Customizer Styles Location', 'bstone' ), 'section' => 'section-general-settings', 'priority' => 30, ) ) ); /** * Option: Bstone CSS Location */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[bstone-css-location]', array( 'default' => bstone_get_option( 'bstone-css-location' ), 'type' => 'option', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_choices' ), ) ); $wp_customize->add_control( BSTONE_THEME_SETTINGS . '[bstone-css-location]', array( 'type' => 'radio', 'section' => 'section-general-settings', 'label' => __( 'Customizer Styles Output Location', 'bstone' ), 'priority' => 35, 'choices' => array( 'head' => esc_html__( 'WP Head', 'bstone' ), 'file' => esc_html__( 'Custom File', 'bstone' ), ), 'description' => esc_html__( 'If you choose Custom File, a CSS file will be created in your uploads folder. "WP Head" Recommended when using customizer.', 'bstone' ), ) ); /** * Heading: Font Awesome */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[bstone-font-awesome-heading]', array( 'sanitize_callback' => 'wp_kses', ) ); $wp_customize->add_control ( new Bstone_Control_Heading ( $wp_customize, BSTONE_THEME_SETTINGS . '[bstone-font-awesome-heading]', array( 'label' => esc_html__( 'Font Awesome', 'bstone' ), 'section' => 'section-general-settings', 'priority' => 40, ) ) ); /** * Option: Enable Font Awesome Icons */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[bstone-font-awesome-icons]', array( 'default' => bstone_get_option( 'bstone-font-awesome-icons' ), 'type' => 'option', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_checkbox' ), ) ); $wp_customize->add_control( BSTONE_THEME_SETTINGS . '[bstone-font-awesome-icons]', array( 'type' => 'checkbox', 'section' => 'section-general-settings', 'label' => __( 'Enable Font Awesome Icons', 'bstone' ), 'priority' => 45, ) ); /** * Option: Enable Font Awesome Icons - Brands */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[bstone-font-awesome-brands]', array( 'default' => bstone_get_option( 'bstone-font-awesome-brands' ), 'type' => 'option', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_checkbox' ), ) ); $wp_customize->add_control( BSTONE_THEME_SETTINGS . '[bstone-font-awesome-brands]', array( 'type' => 'checkbox', 'section' => 'section-general-settings', 'label' => __( 'Font Awesome Brands', 'bstone' ), 'priority' => 50, ) ); /** * Option: Enable Font Awesome Icons - Regular */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[bstone-font-awesome-regular]', array( 'default' => bstone_get_option( 'bstone-font-awesome-regular' ), 'type' => 'option', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_checkbox' ), ) ); $wp_customize->add_control( BSTONE_THEME_SETTINGS . '[bstone-font-awesome-regular]', array( 'type' => 'checkbox', 'section' => 'section-general-settings', 'label' => __( 'Font Awesome Regular', 'bstone' ), 'priority' => 55, ) ); /** * Option: Enable Font Awesome Icons - Light */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[bstone-font-awesome-light]', array( 'default' => bstone_get_option( 'bstone-font-awesome-light' ), 'type' => 'option', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_checkbox' ), ) ); $wp_customize->add_control( BSTONE_THEME_SETTINGS . '[bstone-font-awesome-light]', array( 'type' => 'checkbox', 'section' => 'section-general-settings', 'label' => __( 'Font Awesome Light', 'bstone' ), 'priority' => 60, ) ); /** * Option: Enable Font Awesome Icons - Solid */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[bstone-font-awesome-solid]', array( 'default' => bstone_get_option( 'bstone-font-awesome-solid' ), 'type' => 'option', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_checkbox' ), ) ); $wp_customize->add_control( BSTONE_THEME_SETTINGS . '[bstone-font-awesome-solid]', array( 'type' => 'checkbox', 'section' => 'section-general-settings', 'label' => __( 'Font Awesome Solid', 'bstone' ), 'priority' => 65, ) ); /** * Heading: Search Page Settings */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[search-page-settings-heading]', array( 'sanitize_callback' => 'wp_kses', ) ); $wp_customize->add_control ( new Bstone_Control_Heading ( $wp_customize, BSTONE_THEME_SETTINGS . '[search-page-settings-heading]', array( 'label' => esc_html__( 'Search Page Settings', 'bstone' ), 'section' => 'section-general-settings', 'priority' => 70, ) ) ); /** * Option: Search Source */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[search-source]', array( 'default' => bstone_get_option( 'search-source' ), 'type' => 'option', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_choices' ), ) ); $wp_customize->add_control( BSTONE_THEME_SETTINGS . '[search-source]', array( 'type' => 'select', 'section' => 'section-general-settings', 'priority' => 75, 'label' => __( 'Search Source', 'bstone' ), 'choices' => array( 'any' => __( 'All Post Types', 'bstone' ), 'post' => __( 'Posts', 'bstone' ), 'page' => __( 'Pages', 'bstone' ), ), ) ); /** * Option: Search Results Per Page */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[search-results-per-page]', array( 'default' => bstone_get_option( 'search-results-per-page' ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_number' ), ) ); $wp_customize->add_control( BSTONE_THEME_SETTINGS . '[search-results-per-page]', array( 'type' => 'number', 'section' => 'section-general-settings', 'priority' => 80, 'label' => __( 'Search Results Per Page', 'bstone' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 10, ), ) );