<?php

  $wp_customize->add_section('advance_education_pro_section_ordering_settings',array(
      'title' => __('Section Ordering','advance-education-pro'),
      'description'=> __('Section Ordering.','advance-education-pro'),
      'panel' => 'advance_education_pro_panel_id',
  ));

  $wp_customize->add_setting( 'advance_education_pro_section_ordering_settings_repeater',
      array(
        'default' => '',
        'transport' => 'refresh',
        'sanitize_callback' => 'sanitize_text_field'
      )
  );
  $wp_customize->add_control( new advance_education_pro_Repeater_Custom_Control( $wp_customize, 'advance_education_pro_section_ordering_settings_repeater',
      array(
        'label' => __( 'Section Reordering','advance-education-pro' ),
        'section' => 'advance_education_pro_section_ordering_settings',
        'button_labels' => array(
          'add' => __( 'Add Row','advance-education-pro' ), 
        )
      )
   ) );

  //General Color Pallete
  $wp_customize->add_section('advance_education_pro_color_pallette',array(
      'title' => __('Typography / General settings','advance-education-pro'),
      'description'=> __('Typography settings','advance-education-pro'),
      'panel' => 'advance_education_pro_panel_id',
  ));

  $wp_customize->add_setting('advance_education_pro_radio_boxed_full_layout',
      array(
        'default' => 'full-Width',
        'sanitize_callback' => 'advance_education_pro_sanitize_choices'
  ));
  $wp_customize->add_control('advance_education_pro_radio_boxed_full_layout',
      array(
        'type' => 'radio',
        'label' => __('Choose Boxed or Full Width Layout', 'advance-education-pro'),
        'section' => 'advance_education_pro_color_pallette',
        'choices' => array(
        'full-Width' => __('Full Width', 'advance-education-pro'),
        'boxed' => __('Boxed', 'advance-education-pro')
      ),
  ));

  $wp_customize->add_setting('advance_education_pro_radio_boxed_full_layout_value',array(
      'default' => '',
      'sanitize_callback' => 'sanitize_text_field'
    )
  );
  $wp_customize->add_control('advance_education_pro_radio_boxed_full_layout_value',array(
      'label' => __('Add Boxed layout Width Here','advance-education-pro'),
      'description' => __('Boxed width is always set more than 1140px.', 'advance-education-pro'),
      'section' => 'advance_education_pro_color_pallette',
      'setting' => 'advance_education_pro_radio_boxed_full_layout_value',
      'type'    => 'text'
    )
  );

  //This is Button Text FontFamily picker setting
  $wp_customize->add_setting('advance_education_pro_body_font_family',array(
    'default' => '',
    'capability' => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field'
  ));
  $wp_customize->add_control(
      'advance_education_pro_body_font_family', array(
      'section'  => 'advance_education_pro_color_pallette',
      'label'    => __( 'Body Font family','advance-education-pro'),
      'type'     => 'select',
      'choices'  => $font_array,
  ));
  $wp_customize->add_setting('advance_education_pro_body_font_size',array(
      'default' => '',
      'sanitize_callback' => 'sanitize_text_field'
    )
  );
  $wp_customize->add_control('advance_education_pro_body_font_size',array(
      'label' => __('font size in px','advance-education-pro'),
      'section' => 'advance_education_pro_color_pallette',
      'setting' => 'advance_education_pro_body_font_size',
      'type'    => 'text'
    )
  );
  $wp_customize->add_setting( 'advance_education_pro_body_color', array(
    'default' => '',
    'sanitize_callback' => 'sanitize_hex_color'
  ));
  $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_body_color', array(
    'label' => __('Body color', 'advance-education-pro'),
    'section' => 'advance_education_pro_color_pallette',
    'settings' => 'advance_education_pro_body_color',
  )));
  $wp_customize->add_setting('advance_education_pro_h1_font_family',array(
    'default' => '',
    'capability' => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field'
  ));
  $wp_customize->add_control(
      'advance_education_pro_h1_font_family', array(
      'section'  => 'advance_education_pro_color_pallette',
      'label'    => __( 'H1','advance-education-pro'),
      'type'     => 'select',
      'choices'  => $font_array,
  ));
  $wp_customize->add_setting('advance_education_pro_h1_font_size',array(
      'default' => '',
      'sanitize_callback' => 'sanitize_text_field'
    )
  );
  $wp_customize->add_control('advance_education_pro_h1_font_size',array(
      'label' => __('H1 font size in px','advance-education-pro'),
      'section' => 'advance_education_pro_color_pallette',
      'setting' => 'advance_education_pro_h1_font_size',
      'type'    => 'text'
    )
  );
  $wp_customize->add_setting( 'advance_education_pro_h1_color', array(
    'default' => '',
    'sanitize_callback' => 'sanitize_hex_color'
  ));
  $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_h1_color', array(
    'label' => __('H1 color', 'advance-education-pro'),
    'section' => 'advance_education_pro_color_pallette',
    'settings' => 'advance_education_pro_h1_color',
  )));
  $wp_customize->add_setting('advance_education_pro_h2_font_family',array(
    'default' => '',
    'capability' => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field'
  ));
  $wp_customize->add_control(
      'advance_education_pro_h2_font_family', array(
      'section'  => 'advance_education_pro_color_pallette',
      'label'    => __( 'H2','advance-education-pro'),
      'type'     => 'select',
      'choices'  => $font_array,
  ));
  $wp_customize->add_setting('advance_education_pro_h2_font_size',array(
      'default' => '',
      'sanitize_callback' => 'sanitize_text_field'
    )
  );
  $wp_customize->add_control('advance_education_pro_h2_font_size',array(
      'label' => __('H2 font size in px','advance-education-pro'),
      'section' => 'advance_education_pro_color_pallette',
      'setting' => 'advance_education_pro_h2_font_size',
      'type'    => 'text'
    )
  );
  $wp_customize->add_setting( 'advance_education_pro_h2_color', array(
    'default' => '',
    'sanitize_callback' => 'sanitize_hex_color'
  ));
  $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_h2_color', array(
    'label' => __('H2 color', 'advance-education-pro'),
    'section' => 'advance_education_pro_color_pallette',
    'settings' => 'advance_education_pro_h2_color',
  )));

  $wp_customize->add_setting('advance_education_pro_h3_font_family',array(
    'default' => '',
    'capability' => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field'
  ));
  $wp_customize->add_control(
      'advance_education_pro_h3_font_family', array(
      'section'  => 'advance_education_pro_color_pallette',
      'label'    => __( 'H3','advance-education-pro'),
      'type'     => 'select',
      'choices'  => $font_array,
  ));
  $wp_customize->add_setting('advance_education_pro_h3_font_size',array(
      'default' => '',
      'sanitize_callback' => 'sanitize_text_field'
    )
  );
  $wp_customize->add_control('advance_education_pro_h3_font_size',array(
      'label' => __('H3 font size in px','advance-education-pro'),
      'section' => 'advance_education_pro_color_pallette',
      'setting' => 'advance_education_pro_h3_font_size',
      'type'    => 'text'
    )
  );
  $wp_customize->add_setting( 'advance_education_pro_h3_color', array(
    'default' => '',
    'sanitize_callback' => 'sanitize_hex_color'
  ));
  $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_h3_color', array(
    'label' => __('H3 color', 'advance-education-pro'),
    'section' => 'advance_education_pro_color_pallette',
    'settings' => 'advance_education_pro_h3_color',
  )));
  $wp_customize->add_setting('advance_education_pro_h4_font_family',array(
    'default' => '',
    'capability' => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field'
  ));
  $wp_customize->add_control(
      'advance_education_pro_h4_font_family', array(
      'section'  => 'advance_education_pro_color_pallette',
      'label'    => __( 'H4','advance-education-pro'),
      'type'     => 'select',
      'choices'  => $font_array,
  ));
  $wp_customize->add_setting('advance_education_pro_h4_font_size',array(
      'default' => '',
      'sanitize_callback' => 'sanitize_text_field'
    )
  );
  $wp_customize->add_control('advance_education_pro_h4_font_size',array(
      'label' => __('H4 font size in px','advance-education-pro'),
      'section' => 'advance_education_pro_color_pallette',
      'setting' => 'advance_education_pro_h4_font_size',
      'type'    => 'text'
    )
  );
  $wp_customize->add_setting( 'advance_education_pro_h4_color', array(
    'default' => '',
    'sanitize_callback' => 'sanitize_hex_color'
  ));
  $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_h4_color', array(
    'label' => __('H4 color', 'advance-education-pro'),
    'section' => 'advance_education_pro_color_pallette',
    'settings' => 'advance_education_pro_h4_color',
  )));
  $wp_customize->add_setting('advance_education_pro_h5_font_family',array(
    'default' => '',
    'capability' => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field'
  ));
  $wp_customize->add_control(
      'advance_education_pro_h5_font_family', array(
      'section'  => 'advance_education_pro_color_pallette',
      'label'    => __( 'H5','advance-education-pro'),
      'type'     => 'select',
      'choices'  => $font_array,
  ));
  $wp_customize->add_setting('advance_education_pro_h5_font_size',array(
      'default' => '',
      'sanitize_callback' => 'sanitize_text_field'
    )
  );
  $wp_customize->add_control('advance_education_pro_h5_font_size',array(
      'label' => __('H5 font size in px','advance-education-pro'),
      'section' => 'advance_education_pro_color_pallette',
      'setting' => 'advance_education_pro_h5_font_size',
      'type'    => 'text'
    )
  );
  $wp_customize->add_setting( 'advance_education_pro_h5_color', array(
    'default' => '',
    'sanitize_callback' => 'sanitize_hex_color'
  ));
  $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_h5_color', array(
    'label' => __('H5 color', 'advance-education-pro'),
    'section' => 'advance_education_pro_color_pallette',
    'settings' => 'advance_education_pro_h5_color',
  )));
  $wp_customize->add_setting('advance_education_pro_h6_font_family',array(
    'default' => '',
    'capability' => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field'
  ));
  $wp_customize->add_control(
      'advance_education_pro_h6_font_family', array(
      'section'  => 'advance_education_pro_color_pallette',
      'label'    => __( 'H6','advance-education-pro'),
      'type'     => 'select',
      'choices'  => $font_array,
  ));
  $wp_customize->add_setting('advance_education_pro_h6_font_size',array(
      'default' => '',
      'sanitize_callback' => 'sanitize_text_field'
    )
  );
  $wp_customize->add_control('advance_education_pro_h6_font_size',array(
      'label' => __('H6 font size in px','advance-education-pro'),
      'section' => 'advance_education_pro_color_pallette',
      'setting' => 'advance_education_pro_h6_font_size',
      'type'    => 'text'
    )
  );
  $wp_customize->add_setting( 'advance_education_pro_h6_color', array(
    'default' => '',
    'sanitize_callback' => 'sanitize_hex_color'
  ));
  $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_h6_color', array(
    'label' => __('H6 color', 'advance-education-pro'),
    'section' => 'advance_education_pro_color_pallette',
    'settings' => 'advance_education_pro_h6_color',
  )));
  //paragarph font family
  $wp_customize->add_setting('advance_education_pro_paragarpah_font_family',array(
    'default' => '',
    'capability' => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field'
  ));
  $wp_customize->add_control(
      'advance_education_pro_paragarpah_font_family', array(
      'section'  => 'advance_education_pro_color_pallette',
      'label'    => __( 'Paragraph','advance-education-pro'),
      'type'     => 'select',
      'choices'  => $font_array,
  ));
  $wp_customize->add_setting('advance_education_pro_para_font_size',array(
      'default' => '',
      'sanitize_callback' => 'sanitize_text_field'
    )
  );
  $wp_customize->add_control('advance_education_pro_para_font_size',array(
      'label' => __('Paragraph font size in px','advance-education-pro'),
      'section' => 'advance_education_pro_color_pallette',
      'setting' => 'advance_education_pro_para_font_size',
      'type'    => 'text'
    )
  );
  $wp_customize->add_setting( 'advance_education_pro_para_color', array(
    'default' => '',
    'sanitize_callback' => 'sanitize_hex_color'
  ));
  $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_para_color', array(
      'label' => __('Para color', 'advance-education-pro'),
      'section' => 'advance_education_pro_color_pallette',
      'settings' => 'advance_education_pro_para_color',
    )
  ));

  $wp_customize->add_setting( 'advance_education_pro_hi_first_color', array(
    'default' => '#cc3333',
    'sanitize_callback' => 'sanitize_hex_color'
  ));
  $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'advance_education_pro_hi_first_color', array(
    'label' => __('Highlight Color  (It will change it globally)', 'advance-education-pro'),
    'section' => 'advance_education_pro_color_pallette',
    'settings' => 'advance_education_pro_hi_first_color',
  )));

?>