ive_callback' => 'newscrunch_scroll_to_top_callback', 'type' => 'select', 'priority' => 3, 'choices' => array( 'fa fa-arrow-up' => esc_html__('Arrow Up', 'newscrunch' ), 'fa-solid fa-angles-up' => esc_html__('Double Arrow Up', 'newscrunch' ), 'fa-solid fa-angle-up' => esc_html__('Arrow Single', 'newscrunch' ), 'fa-solid fa-arrow-up-long' => esc_html__('Arrow Up Long', 'newscrunch' ) ) ) ); // scroll to top button radious $wp_customize->add_setting( 'scroll_to_top_button_radious', array( 'default' => 3, 'transport' => 'postMessage', 'sanitize_callback' => 'absint' ) ); $wp_customize->add_control( new Newscrunch_Slider_Custom_Control( $wp_customize, 'scroll_to_top_button_radious', array( 'label' => esc_html__('Border Radius', 'newscrunch'), 'section' => 'newscrunch_scroll_to_top', 'setting' => 'scroll_to_top_button_radious', 'active_callback' => 'newscrunch_scroll_to_top_callback', 'priority' => 4, 'input_attrs' => array( 'min' => 0, 'max' => 30, 'step' => 1 ) ) )); /* Bottom Footer Style Tab */ // enable/disable the color $wp_customize->add_setting('hide_show_scroll_to_top_color', array( 'default' => true, 'sanitize_callback' => 'newscrunch_sanitize_checkbox' ) ); $wp_customize->add_control(new Newscrunch_Toggle_Control( $wp_customize, 'hide_show_scroll_to_top_color', array( 'label' => esc_html__( 'Enable/Disable Color', 'newscrunch'), 'section' => 'newscrunch_scroll_to_top', 'settings' => 'hide_show_scroll_to_top_color', 'type' => 'toggle', 'priority' => 1 ) )); // Background color for the scroll to top $wp_customize->add_setting('scroll_to_top_back_color', array( 'default' => '#', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'scroll_to_top_back_color', array( 'label' => esc_html__('Background', 'newscrunch' ), 'active_callback' => 'newscrunch_scroll_to_top_color_callback', 'section' => 'newscrunch_scroll_to_top', 'setting' => 'scroll_to_top_back_color', 'priority' => 6 ) )); // Icon color for the scroll to top $wp_customize->add_setting('scroll_to_top_icon_color', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'scroll_to_top_icon_color', array( 'label' => esc_html__('Icon', 'newscrunch' ), 'active_callback' => 'newscrunch_scroll_to_top_color_callback', 'section' => 'newscrunch_scroll_to_top', 'setting' => 'scroll_to_top_icon_color', 'priority' => 7 ) )); // Background hover color for the scroll to top $wp_customize->add_setting('scroll_to_top_back_hover_color', array( 'default' => '#', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'scroll_to_top_back_hover_color', array( 'label' => esc_html__('Background Hover', 'newscrunch' ), 'active_callback' => 'newscrunch_scroll_to_top_color_callback', 'section' => 'newscrunch_scroll_to_top', 'setting' => 'scroll_to_top_back_hover_color', 'priority' => 8 ) )); // Icon hover color for the scroll to top $wp_customize->add_setting('scroll_to_top_icon_hover_color', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'scroll_to_top_icon_hover_color', array( 'label' => esc_html__('Icon Hover', 'newscrunch' ), 'active_callback' => 'newscrunch_scroll_to_top_color_callback', 'section' => 'newscrunch_scroll_to_top', 'setting' => 'scroll_to_top_icon_hover_color', 'priority' => 9 ) )); } add_action( 'customize_register', 'newscrunch_scroll_to_top_customizer' );