add_setting( BSTONE_THEME_SETTINGS . '[bstone-enable-scroll-top]', array( 'default' => bstone_get_option( 'bstone-enable-scroll-top' ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_checkbox' ), ) ); $wp_customize->add_control( BSTONE_THEME_SETTINGS . '[bstone-enable-scroll-top]', array( 'type' => 'checkbox', 'section' => 'section-scroll-top-settings', 'label' => __( 'Enable Scroll To Top', 'bstone' ), 'priority' => 5, ) ); /** * Option: Scroll To Top Border Width */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[scroll-border-width]', array( 'default' => bstone_get_option( 'scroll-border-width' ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_number' ), ) ); $wp_customize->add_control( BSTONE_THEME_SETTINGS . '[scroll-border-width]', array( 'type' => 'number', 'section' => 'section-scroll-top-settings', 'priority' => 10, 'label' => __( 'Border Size', 'bstone' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 10, ), ) ); /** * Option: Scroll To Top Border Radius */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[scroll-border-radius]', array( 'default' => bstone_get_option( 'scroll-border-radius' ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_number' ), ) ); $wp_customize->add_control( BSTONE_THEME_SETTINGS . '[scroll-border-radius]', array( 'type' => 'number', 'section' => 'section-scroll-top-settings', 'priority' => 15, 'label' => __( 'Border Radius', 'bstone' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 10, ), ) ); /** * Option: Divider */ $wp_customize->add_control( new Bstone_Control_Divider( $wp_customize, BSTONE_THEME_SETTINGS . '[divider-scrolltop-colors]', array( 'section' => 'section-scroll-top-settings', 'type' => 'bst-divider', 'priority' => 20, 'settings' => array(), ) ) ); /** * Option: Scroll To Top Background Color */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[bg-color-scroll]', array( 'default' => bstone_get_option( 'bg-color-scroll' ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_alpha_color' ), ) ); $wp_customize->add_control( new Bstone_Control_Color( $wp_customize, BSTONE_THEME_SETTINGS . '[bg-color-scroll]', array( 'section' => 'section-scroll-top-settings', 'priority' => 25, 'label' => __( 'Background Color', 'bstone' ), ) ) ); /** * Option: Scroll To Top Background Color Hover */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[bg-color-hover-scroll]', array( 'default' => bstone_get_option( 'bg-color-hover-scroll' ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_alpha_color' ), ) ); $wp_customize->add_control( new Bstone_Control_Color( $wp_customize, BSTONE_THEME_SETTINGS . '[bg-color-hover-scroll]', array( 'section' => 'section-scroll-top-settings', 'priority' => 30, 'label' => __( 'Background Color Hover', 'bstone' ), ) ) ); /** * Option: Scroll To Top Border Color */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[border-color-scroll]', array( 'default' => bstone_get_option( 'border-color-scroll' ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_alpha_color' ), ) ); $wp_customize->add_control( new Bstone_Control_Color( $wp_customize, BSTONE_THEME_SETTINGS . '[border-color-scroll]', array( 'section' => 'section-scroll-top-settings', 'priority' => 35, 'label' => __( 'Border Color', 'bstone' ), ) ) ); /** * Option: Scroll To Top Border Color Hover */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[border-color-hover-scroll]', array( 'default' => bstone_get_option( 'border-color-hover-scroll' ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_alpha_color' ), ) ); $wp_customize->add_control( new Bstone_Control_Color( $wp_customize, BSTONE_THEME_SETTINGS . '[border-color-hover-scroll]', array( 'section' => 'section-scroll-top-settings', 'priority' => 40, 'label' => __( 'Border Color Hover', 'bstone' ), ) ) ); /** * Option: Scroll To Top Icon Color */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[icon-color-pagination]', array( 'default' => bstone_get_option( 'icon-color-pagination' ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_alpha_color' ), ) ); $wp_customize->add_control( new Bstone_Control_Color( $wp_customize, BSTONE_THEME_SETTINGS . '[icon-color-pagination]', array( 'section' => 'section-scroll-top-settings', 'priority' => 45, 'label' => __( 'Icon Color', 'bstone' ), ) ) ); /** * Option: Scroll To Top Icon Color Hover */ $wp_customize->add_setting( BSTONE_THEME_SETTINGS . '[icon-color-hover-pagination]', array( 'default' => bstone_get_option( 'icon-color-hover-pagination' ), 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Bstone_Customizer_Sanitizes', 'sanitize_alpha_color' ), ) ); $wp_customize->add_control( new Bstone_Control_Color( $wp_customize, BSTONE_THEME_SETTINGS . '[icon-color-hover-pagination]', array( 'section' => 'section-scroll-top-settings', 'priority' => 50, 'label' => __( 'Icon Color Hover', 'bstone' ), ) ) );