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, 'status' => 'open', 'items' => array( "customize-control-bstone-settings-bstone-css-location" ), ) ) ); /** * 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: Icon Settings */ $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__( 'Icon Settings', 'bstone' ), 'section' => 'section-general-settings', 'priority' => 40, 'status' => 'open', 'items' => array( "customize-control-bstone-settings-bstone-font-awesome-icons", "customize-control-bstone-settings-bstone-font-awesome-brands", "customize-control-bstone-settings-bstone-font-awesome-regular", "customize-control-bstone-settings-bstone-font-awesome-solid" ), ) ) ); /** * 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 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 - 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, ) );