add_section( 'aces_footer_widgets', array( 'title' => esc_html__( 'Footer Widgets', 'aces' ), 'priority' => 10, 'panel' => $panel, ) ); $wp_customize->add_setting( 'aces_footer_widget_enable', array( 'default' => true, 'sanitize_callback' => 'aces_sanitize_checkbox', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_footer_widget_enable', array( 'label' => esc_html__( 'Enable Widgets', 'aces' ), 'type' => 'checkbox', 'section' => 'aces_footer_widgets', 'settings' => 'aces_footer_widget_enable', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'aces_footer_widget_col', array( 'default' => '4', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_footer_widget_col', array( 'label' => esc_html__( 'Footer Column', 'aces' ), 'type' => 'select', 'section' => 'aces_footer_widgets', 'settings' => 'aces_footer_widget_col', 'priority' => 10, 'choices' => array( '1' => esc_html__( '1','aces' ), '2' => esc_html__( '2','aces' ), '3' => esc_html__( '3','aces' ), '4' => esc_html__( '4','aces' ), ), 'active_callback' => 'aces_footer_widget_enable' ) ) ); $wp_customize->add_setting( 'aces_footer_widget_color_heading', array( 'sanitize_callback' => 'wp_kses', ) ); $wp_customize->add_control( new Aces_Customizer_Heading_Control( $wp_customize, 'aces_footer_widget_color_heading', array( 'label' => esc_html__( 'Background & Padding', 'aces' ), 'section' => 'aces_footer_widgets', 'priority' => 10, 'active_callback' => 'aces_footer_widget_enable' ) ) ); $wp_customize->add_setting( 'aces_footer_widget_bg_color', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_color', ) ); $wp_customize->add_control( new Aces_Customizer_Color_Control( $wp_customize, 'aces_footer_widget_bg_color', array( 'label' => esc_html__( 'Background Color', 'aces' ), 'section' => 'aces_footer_widgets', 'settings' => 'aces_footer_widget_bg_color', 'priority' => 10, 'active_callback' => 'aces_footer_widget_enable' ) ) ); $wp_customize->add_setting( 'aces_theme_footer_widget_top_padding', array( 'transport' => 'postMessage', 'default' => '60', 'sanitize_callback' => 'aces_sanitize_number', ) ); $wp_customize->add_setting( 'aces_theme_footer_widget_right_padding', array( 'transport' => 'postMessage', 'default' => '15', 'sanitize_callback' => 'aces_sanitize_number', ) ); $wp_customize->add_setting( 'aces_theme_footer_widget_bottom_padding', array( 'transport' => 'postMessage', 'default' => '20', 'sanitize_callback' => 'aces_sanitize_number', ) ); $wp_customize->add_setting( 'aces_theme_footer_widget_left_padding', array( 'transport' => 'postMessage', 'default' => '15', 'sanitize_callback' => 'aces_sanitize_number', ) ); $wp_customize->add_setting( 'aces_theme_footer_widget_tablet_top_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_footer_widget_tablet_right_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_footer_widget_tablet_bottom_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_footer_widget_tablet_left_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_footer_widget_mobile_top_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_footer_widget_mobile_right_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_footer_widget_mobile_bottom_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_footer_widget_mobile_left_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_control( new Aces_Customizer_Dimensions_Control( $wp_customize, 'aces_theme_footer_widget_padding_dimensions', array( 'label' => esc_html__( 'Padding (px)', 'aces' ), 'section' => 'aces_footer_widgets', 'settings' => array( 'desktop_top' => 'aces_theme_footer_widget_top_padding', 'desktop_right' => 'aces_theme_footer_widget_right_padding', 'desktop_bottom' => 'aces_theme_footer_widget_bottom_padding', 'desktop_left' => 'aces_theme_footer_widget_left_padding', 'tablet_top' => 'aces_theme_footer_widget_tablet_top_padding', 'tablet_right' => 'aces_theme_footer_widget_tablet_right_padding', 'tablet_bottom' => 'aces_theme_footer_widget_tablet_bottom_padding', 'tablet_left' => 'aces_theme_footer_widget_tablet_left_padding', 'mobile_top' => 'aces_theme_footer_widget_mobile_top_padding', 'mobile_right' => 'aces_theme_footer_widget_mobile_right_padding', 'mobile_bottom' => 'aces_theme_footer_widget_mobile_bottom_padding', 'mobile_left' => 'aces_theme_button_mobile_left_padding', ), 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 100, 'step' => 1, ), 'active_callback' => 'aces_footer_widget_enable' ) ) ); $wp_customize->add_setting( 'aces_footer_widget_title_heading', array( 'sanitize_callback' => 'wp_kses', ) ); $wp_customize->add_control( new Aces_Customizer_Heading_Control( $wp_customize, 'aces_footer_widget_title_heading', array( 'label' => esc_html__( 'Widgets ', 'aces' ), 'section' => 'aces_footer_widgets', 'priority' => 10, 'active_callback' => 'aces_footer_widget_enable' ) ) ); $wp_customize->add_setting( 'aces_footer_widget_text_color', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_color', ) ); $wp_customize->add_control( new Aces_Customizer_Color_Control( $wp_customize, 'aces_footer_widget_text_color', array( 'label' => esc_html__( 'Text Color', 'aces' ), 'section' => 'aces_footer_widgets', 'settings' => 'aces_footer_widget_text_color', 'priority' => 10, 'active_callback' => 'aces_footer_widget_enable' ) ) ); $wp_customize->add_setting( 'aces_footer_widget_link_color', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_color', ) ); $wp_customize->add_control( new Aces_Customizer_Color_Control( $wp_customize, 'aces_footer_widget_link_color', array( 'label' => esc_html__( 'Link Color', 'aces' ), 'section' => 'aces_footer_widgets', 'settings' => 'aces_footer_widget_link_color', 'priority' => 10, 'active_callback' => 'aces_footer_widget_enable' ) ) ); $wp_customize->add_setting( 'aces_footer_widget_link_hover_color', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_color', ) ); $wp_customize->add_control( new Aces_Customizer_Color_Control( $wp_customize, 'aces_footer_widget_link_hover_color', array( 'label' => esc_html__( 'Link Hover: Color', 'aces' ), 'section' => 'aces_footer_widgets', 'settings' => 'aces_footer_widget_link_hover_color', 'priority' => 10, 'active_callback' => 'aces_footer_widget_enable' ) ) ); $wp_customize->add_setting( 'aces_footer_widget_border_bottom_color', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_color', ) ); $wp_customize->add_control( new Aces_Customizer_Color_Control( $wp_customize, 'aces_footer_widget_border_bottom_color', array( 'label' => esc_html__( 'Border Bottom Color', 'aces' ), 'section' => 'aces_footer_widgets', 'settings' => 'aces_footer_widget_border_bottom_color', 'priority' => 10, 'active_callback' => 'aces_footer_widget_enable' ) ) ); $wp_customize->add_setting( 'aces_footer_widgets_title_heading', array( 'sanitize_callback' => 'wp_kses', ) ); $wp_customize->add_control( new Aces_Customizer_Heading_Control( $wp_customize, 'aces_footer_widgets_title_heading', array( 'label' => esc_html__( 'Widgets Title ', 'aces' ), 'section' => 'aces_footer_widgets', 'priority' => 10, 'active_callback' => 'aces_footer_widget_enable' ) ) ); $wp_customize->add_setting( 'aces_footer_widget_title_positioning', array( 'transport' => 'postMessage', 'default' => 'center', 'sanitize_callback' => 'aces_sanitize_select', ) ); $wp_customize->add_control( new Aces_Customizer_Buttonset_Control( $wp_customize, 'aces_footer_widget_title_positioning', array( 'label' => esc_html__( 'Title Position', 'aces' ), 'section' => 'aces_footer_widgets', 'settings' => 'aces_footer_widget_title_positioning', 'priority' => 10, 'choices' => array( 'left' => esc_html__( 'Left', 'aces' ), 'center' => esc_html__( 'Center', 'aces' ), 'right' => esc_html__( 'Right', 'aces' ), ), 'active_callback' => 'aces_footer_widget_enable' ) ) ); $wp_customize->add_setting( 'aces_footer_widget_title_color', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_color', ) ); $wp_customize->add_control( new Aces_Customizer_Color_Control( $wp_customize, 'aces_footer_widget_title_color', array( 'label' => esc_html__( 'Title Color', 'aces' ), 'section' => 'aces_footer_widgets', 'settings' => 'aces_footer_widget_title_color', 'priority' => 10, 'active_callback' => 'aces_footer_widget_enable' ) ) );