add_section( 'aleanta_page_tab_settings' , array( 'title' => esc_html__( 'Page Title and Breadcrumbs', 'aleanta' ), 'priority' => 45, ) ); $wp_customize->add_setting( 'aleanta_tab_bg_image' , array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'aleanta_tab_bg_image', array( 'label' => esc_html__( 'Background Image', 'aleanta' ), 'section' => 'aleanta_page_tab_settings', 'context' => 'aleanta_tab_bg_image', 'settings' => 'aleanta_tab_bg_image', 'priority' => 10 ) ) ); $wp_customize->add_setting( 'aleanta_tab_bg_image_fixed' , array( 'default' => '1', 'transport' => 'refresh', 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( 'aleanta_tab_bg_image_fixed', array( 'label' => esc_html__( 'Fixed Image', 'aleanta' ), 'section' => 'aleanta_page_tab_settings', 'settings' => 'aleanta_tab_bg_image_fixed', 'type' => 'select', 'choices' => array( '0' => esc_html__( 'No', 'aleanta' ), '1' => esc_html__( 'Yes', 'aleanta' ), ), 'priority' => 15 ) ); $wp_customize->add_setting( 'aleanta_tab_bg_color' , array( 'default' => get_option('aleanta_default_tab_bg_color'), 'transport' => 'refresh', 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'aleanta_tab_bg_color', array( 'label' => esc_html__( 'Overlay Color', 'aleanta' ), 'section' => 'aleanta_page_tab_settings', 'settings' => 'aleanta_tab_bg_color', 'priority' => 20 ) ) ); $wp_customize->add_setting( 'aleanta_tab_bg_color_gradient' , array( 'default' => get_option('aleanta_default_tab_bg_color_gradient'), 'transport' => 'refresh', 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'aleanta_tab_bg_color_gradient', array( 'label' => esc_html__( 'Gradient Color', 'aleanta' ), 'description' => esc_html__( 'Set this color for gradient overlay', 'aleanta'), 'section' => 'aleanta_page_tab_settings', 'settings' => 'aleanta_tab_bg_color_gradient', 'priority' => 30 ) ) ); $wp_customize->add_setting( 'aleanta_tab_gradient_direction' , array( 'default' => get_option('aleanta_default_tab_gradient_direction'), 'transport' => 'refresh', 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( 'aleanta_tab_gradient_direction', array( 'label' => esc_html__( 'Gradient Direction', 'aleanta' ), 'section' => 'aleanta_page_tab_settings', 'settings' => 'aleanta_tab_gradient_direction', 'type' => 'select', 'choices' => array( 'to right' => esc_html__( 'To Right ', 'aleanta' ).html_entity_decode('→'), 'to left' => esc_html__( 'To Left ', 'aleanta' ).html_entity_decode('←'), 'to bottom' => esc_html__( 'To Bottom ', 'aleanta' ).html_entity_decode('↓'), 'to top' => esc_html__( 'To Top ', 'aleanta' ).html_entity_decode('↑'), 'to bottom right' => esc_html__( 'To Bottom Right ', 'aleanta' ).html_entity_decode('↘'), 'to bottom left' => esc_html__( 'To Bottom Left ', 'aleanta' ).html_entity_decode('↙'), 'to top right' => esc_html__( 'To Top Right ', 'aleanta' ).html_entity_decode('↗'), 'to top left' => esc_html__( 'To Top Left ', 'aleanta' ).html_entity_decode('↖'), //'angle' => esc_html__( 'Angle ', 'aleanta' ).html_entity_decode('⟳'), ), 'priority' => 40 ) ); $wp_customize->add_setting( 'aleanta_tab_bg_opacity' , array( 'default' => get_option('aleanta_default_tab_bg_opacity'), 'transport' => 'refresh', 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( 'aleanta_tab_bg_opacity', array( 'label' => esc_html__( 'Overlay Opacity', 'aleanta' ), 'section' => 'aleanta_page_tab_settings', 'settings' => 'aleanta_tab_bg_opacity', 'type' => 'select', 'choices' => array( '0.0' => "0.0", '0.1' => "0.1", '0.2' => "0.2", '0.3' => "0.3", '0.4' => "0.4", '0.5' => "0.5", '0.6' => "0.6", '0.7' => "0.7", '0.8' => "0.8", '0.9' => "0.9", '1' => "1", ), 'priority' => 45 ) ); $wp_customize->add_setting( 'aleanta_tab_title_position' , array( 'default' => 'left', 'transport' => 'refresh', 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( 'aleanta_tab_title_position', array( 'label' => esc_html__( 'Page Title Position', 'aleanta' ), 'section' => 'aleanta_page_tab_settings', 'settings' => 'aleanta_tab_title_position', 'type' => 'select', 'choices' => array( '' => esc_html__( 'Center', 'aleanta' ), 'left' => esc_html__( 'Left', 'aleanta' ), 'right' => esc_html__( 'Right', 'aleanta' ), 'hide' => esc_html__( 'Hide', 'aleanta' ), ), 'priority' => 50 ) ); $wp_customize->add_setting( 'aleanta_tab_breadcrumbs_position' , array( 'default' => 'right', 'transport' => 'refresh', 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( 'aleanta_tab_breadcrumbs_position', array( 'label' => esc_html__( 'Breadcrumbs Position', 'aleanta' ), 'section' => 'aleanta_page_tab_settings', 'settings' => 'aleanta_tab_breadcrumbs_position', 'type' => 'select', 'choices' => array( '' => esc_html__( 'Center', 'aleanta' ), 'left' => esc_html__( 'Left', 'aleanta' ), 'right' => esc_html__( 'Right', 'aleanta' ), 'hide' => esc_html__( 'Hide', 'aleanta' ), ), 'priority' => 60 ) ); $wp_customize->add_setting( 'aleanta_tab_padding_top' , array( 'default' => get_option('aleanta_default_tab_padding_top'), 'transport' => 'refresh', 'sanitize_callback' => 'esc_html', ) ); $wp_customize->add_control( 'aleanta_tab_padding_top', array( 'label' => esc_html__( 'Padding Top (px)', 'aleanta' ), 'section' => 'aleanta_page_tab_settings', 'settings' => 'aleanta_tab_padding_top', 'type' => 'textfield', 'priority' => 70 ) ); $wp_customize->add_setting( 'aleanta_tab_padding_bottom' , array( 'default' => get_option('aleanta_default_tab_padding_bottom'), 'transport' => 'refresh', 'sanitize_callback' => 'esc_html', ) ); $wp_customize->add_control( 'aleanta_tab_padding_bottom', array( 'label' => esc_html__( 'Padding Bottom (px)', 'aleanta' ), 'section' => 'aleanta_page_tab_settings', 'settings' => 'aleanta_tab_padding_bottom', 'type' => 'textfield', 'priority' => 80 ) ); $wp_customize->add_setting( 'aleanta_tab_margin_bottom' , array( 'default' => get_option('aleanta_default_tab_margin_bottom'), 'transport' => 'refresh', 'sanitize_callback' => 'esc_html', ) ); $wp_customize->add_control( 'aleanta_tab_margin_bottom', array( 'label' => esc_html__( 'Margin Bottom (px)', 'aleanta' ), 'section' => 'aleanta_page_tab_settings', 'settings' => 'aleanta_tab_margin_bottom', 'type' => 'textfield', 'priority' => 90 ) ); $wp_customize->add_setting( 'aleanta_tab_border' , array( 'default' => get_option('aleanta_default_tab_border'), 'transport' => 'refresh', 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( 'aleanta_tab_border', array( 'label' => esc_html__( 'Bottom Border', 'aleanta' ), 'section' => 'aleanta_page_tab_settings', 'settings' => 'aleanta_tab_border', 'type' => 'select', 'choices' => array( '1' => esc_html__( 'Show', 'aleanta' ), '0' => esc_html__( 'Hide', 'aleanta' ), ), 'priority' => 100 ) ); $wp_customize->add_setting( 'aleanta_page_decor' , array( 'default' => 1, 'transport' => 'refresh', 'sanitize_callback' => 'esc_attr' ) ); $wp_customize->add_control( 'aleanta_page_decor', array( 'label' => esc_html__( 'Page Decor', 'aleanta' ), 'section' => 'aleanta_page_tab_settings', 'settings' => 'aleanta_page_decor', 'type' => 'select', 'choices' => array( '1' => esc_html__( 'Show', 'aleanta' ), '0' => esc_html__( 'Hide', 'aleanta' ), ), 'priority' => 105 ) ); } ?>