add_section('bigmart_footer_settings', array( 'title' => esc_html__('Footer Settings', 'bigmart'), 'priority' => 20 )); $wp_customize->add_setting('bigmart_footer_nav', array( 'sanitize_callback' => 'wp_kses_post', )); $wp_customize->add_control(new Bigmart_Tab($wp_customize, 'bigmart_footer_nav', array( 'section' => 'bigmart_footer_settings', 'priority' => 1, 'buttons' => array( array( 'name' => esc_html__('Content', 'bigmart'), 'fields' => array( 'bigmart_top_footer_heading', 'bigmart_footer_col', 'bigmart_footer_info', 'bigmart_bottom_footer_heading', 'bigmart_footer_copyright', 'bigmart_payment_logos' ), 'active' => true, ), array( 'name' => esc_html__('Style', 'bigmart'), 'fields' => array( 'bigmart_footer_primary_color_heading', 'bigmart_footer_border_color', 'bigmart_footer_title_color', 'bigmart_footer_text_color', 'bigmart_footer_anchor_color' ), ) ), ))); $wp_customize->add_setting('bigmart_top_footer_heading', array( 'sanitize_callback' => 'bigmart_sanitize_text' )); $wp_customize->add_control(new Bigmart_Heading($wp_customize, 'bigmart_top_footer_heading', array( 'section' => 'bigmart_footer_settings', 'label' => esc_html__('Top Footer', 'bigmart') ))); $wp_customize->add_setting('bigmart_footer_col', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'col-1' )); $wp_customize->add_control(new Bigmart_Selector($wp_customize, 'bigmart_footer_col', array( 'section' => 'bigmart_footer_settings', 'label' => esc_html__('Footer Columns', 'bigmart'), 'class' => 'ht-one-third-width', 'options' => array( 'col-1' => BIGMART_OPT_DIR_URI_IMAGES . 'footer-columns/col-1.jpg', 'col-2' => BIGMART_OPT_DIR_URI_IMAGES . 'footer-columns/col-2.jpg', 'col-3' => BIGMART_OPT_DIR_URI_IMAGES . 'footer-columns/col-3.jpg', 'col-4' => BIGMART_OPT_DIR_URI_IMAGES . 'footer-columns/col-4.jpg', ) ))); $wp_customize->add_setting('bigmart_footer_title_color', array( 'default' => '#c8c8c8', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh' )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'bigmart_footer_title_color', array( 'section' => 'bigmart_footer_settings', 'label' => esc_html__('Footer Title Color', 'bigmart') ))); $wp_customize->add_setting('bigmart_footer_border_color', array( 'default' => '#444444', 'sanitize_callback' => 'bigmart_sanitize_color_alpha', 'transport' => 'refresh' )); $wp_customize->add_control(new Bigmart_Alpha_Color($wp_customize, 'bigmart_footer_border_color', array( 'label' => esc_html__('Footer Border Color', 'bigmart'), 'section' => 'bigmart_footer_settings' ))); $wp_customize->add_setting('bigmart_footer_text_color', array( 'default' => '#969696', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh' )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'bigmart_footer_text_color', array( 'section' => 'bigmart_footer_settings', 'label' => esc_html__('Footer Text Color', 'bigmart') ))); $wp_customize->add_setting('bigmart_footer_anchor_color', array( 'default' => '#EEEEEE', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh' )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'bigmart_footer_anchor_color', array( 'section' => 'bigmart_footer_settings', 'label' => esc_html__('Footer Anchor Color', 'bigmart') ))); $wp_customize->add_setting('bigmart_bottom_footer_heading', array( 'sanitize_callback' => 'bigmart_sanitize_text' )); $wp_customize->add_control(new Bigmart_Heading($wp_customize, 'bigmart_bottom_footer_heading', array( 'section' => 'bigmart_footer_settings', 'label' => esc_html__('Bottom Footer', 'bigmart') ))); $wp_customize->add_setting('bigmart_footer_copyright', array( 'sanitize_callback' => 'bigmart_sanitize_text', 'default' => esc_html__('© 2021 Bigmart. All Right Reserved.', 'bigmart'), )); $wp_customize->add_control('bigmart_footer_copyright', array( 'section' => 'bigmart_footer_settings', 'type' => 'textarea', 'label' => esc_html__('Copyright Text', 'bigmart'), 'description' => esc_html__('Custom HTMl and Shortcodes Supported', 'bigmart') )); /** Payment Logos */ $wp_customize->add_setting('bigmart_payment_logos', array( 'default' => '', 'sanitize_callback' => 'bigmart_sanitize_link', )); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'bigmart_payment_logos', array( 'label' => esc_html__('Payment Logos', 'bigmart'), 'section' => 'bigmart_footer_settings', 'settings' => 'bigmart_payment_logos', )));