<?php 
  $lvl2ParentPanel3 = new peccular_WP_Customize_Panel( $wp_customize, 'peccular_othersetting_panel3', array(
    'title' => 'Other Settings',
    'panel' => 'peccular_header_panel1',
    'priority' => 3
  ));

  $wp_customize->add_panel( $lvl2ParentPanel3 );


  // Add example section and controls to the final (third) panel
  $wp_customize->add_section( 'peccular_section', array(
    'title' => 'Section Test page',
    'panel' => 'peccular_othersetting_panel3',
  ));

$wp_customize->add_section( 'peccular_font_setting' , array(
    'title'    => __( 'Font Setting', 'peccular-premium' ),
    'priority' => null,
    'panel' => 'peccular_othersetting_panel3'
) );


$wp_customize->add_setting('peccular_fontsetting_nav', array(
       'sanitize_callback' => 'wp_kses_post',
    ));

    $wp_customize->add_control(new peccular_Tab_Control($wp_customize, 'peccular_fontsetting_nav', array(
       'section' => 'peccular_font_setting',
       'priority' => 1,
       'buttons' => array(
          array(
             'name' => esc_html__('H1', 'peccular-premium'),
            'icon' => 'dashicons dashicons-heading',
            'fields' => array(
                'peccular_innerpageheading1_fontsize',
                'peccular_heading1_color',
                'peccular_innerpageheading1_font_weight'           
            ),
            'active' => true,
         ),          
          array(
            'name' => esc_html__('H2', 'peccular-premium'),
            'icon' => 'dashicons dashicons-heading',
            'fields' => array(
                'peccular_innerpageheading2_fontsize',
                'peccular_heading2_color',
                'peccular_innerpageheading2_font_weight'
            ),
         ),
          array(
            'name' => esc_html__('H3', 'peccular-premium'),
            'icon' => 'dashicons dashicons-heading',
            'fields' => array(                
                'peccular_innerpageheading3_fontsize',
                'peccular_heading3_color',
                'peccular_innerpageheading3_font_weight'
            ),
         ),
            array(
            'name' => esc_html__('H4', 'peccular-premium'),
            'icon' => 'dashicons dashicons-heading',
            'fields' => array(
                'peccular_innerpageheading4_fontsize',
                'peccular_heading4_color',
                'peccular_innerpageheading4_font_weight'
            ),
         ),
            array(
                'name' => esc_html__('H5', 'peccular-premium'),
                'icon' => 'dashicons dashicons-heading',
                'fields' => array(
                    'peccular_innerpageheading5_fontsize',
                    'peccular_heading5_color',
                    'peccular_innerpageheading5_font_weight'
                ),
             ),
            array(
                'name' => esc_html__('H6', 'peccular-premium'),
                'icon' => 'dashicons dashicons-heading',
                'fields' => array(
                    'peccular_innerpageheading6_fontsize',
                    'peccular_heading6_color',
                    'peccular_innerpageheading6_font_weight'
                ),
             ),
            array(
            'name' => esc_html__('Body Fonts', 'peccular-premium'),
            'icon' => 'dashicons dashicons-editor-paragraph',
            'fields' => array(
                'peccular_innerpagebody_fontsize',
                'peccular_body_color',
                'peccular_innerpagebody_font_weight'
            ),
         )
        ),
    )));


$wp_customize->add_setting('peccular_innerpageheading1_fontsize',array(
        'default' => '60',
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('peccular_innerpageheading1_fontsize',array(
    'type' => 'number',
    'label' => __('Font size','peccular'),
    'section' => 'peccular_font_setting',
    ));


addColorPalatOption($wp_customize, 'peccular_heading1_color', 'peccular_font_setting', 'Color', '#000');

   $wp_customize->add_setting('peccular_innerpageheading1_font_weight',array(
     'default' => '400',
     'sanitize_callback' => 'peccular_sanitize_choices'
   ));
   $wp_customize->add_control('peccular_innerpageheading1_font_weight',array(
      'type' => 'select',
      'label' => __('Font Weight','peccular'),
      'section' => 'peccular_font_setting',
      'choices' => array(
         '300' => __('300','peccular'),
         '400' => __('400','peccular'),
         '600' => __('600','peccular'),
         '700' => __('700','peccular'),
         '800' => __('800','peccular')
      ),
   ));

$wp_customize->add_setting('peccular_innerpageheading2_fontsize',array(
        'default' => '50',
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('peccular_innerpageheading2_fontsize',array(
    'type' => 'number',
    'label' => __('Font size','peccular'),
    'section' => 'peccular_font_setting',
    ));

 
addColorPalatOption($wp_customize, 'peccular_heading2_color', 'peccular_font_setting', 'Color', '#000');

   $wp_customize->add_setting('peccular_innerpageheading2_font_weight',array(
     'default' => '400',
     'sanitize_callback' => 'peccular_sanitize_choices'
   ));
   $wp_customize->add_control('peccular_innerpageheading2_font_weight',array(
      'type' => 'select',
      'label' => __('Font Weight','peccular'),
      'section' => 'peccular_font_setting',
      'choices' => array(
         '300' => __('300','peccular'),
         '400' => __('400','peccular'),
         '600' => __('600','peccular'),
         '700' => __('700','peccular'),
         '800' => __('800','peccular')
      ),
   ));


$wp_customize->add_setting('peccular_innerpageheading3_fontsize',array(
        'default' => '40',
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('peccular_innerpageheading3_fontsize',array(
    'type' => 'number',
    'label' => __('Font size','peccular'),
    'section' => 'peccular_font_setting',
    ));


addColorPalatOption($wp_customize, 'peccular_heading3_color', 'peccular_font_setting', 'Color', '#000');

   $wp_customize->add_setting('peccular_innerpageheading3_font_weight',array(
     'default' => '400',
     'sanitize_callback' => 'peccular_sanitize_choices'
   ));
   $wp_customize->add_control('peccular_innerpageheading3_font_weight',array(
      'type' => 'select',
      'label' => __('Font Weight','peccular'),
      'section' => 'peccular_font_setting',
      'choices' => array(
         '300' => __('300','peccular'),
         '400' => __('400','peccular'),
         '600' => __('600','peccular'),
         '700' => __('700','peccular'),
         '800' => __('800','peccular')
      ),
   ));


$wp_customize->add_setting('peccular_innerpageheading4_fontsize',array(
        'default' => '30',
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('peccular_innerpageheading4_fontsize',array(
    'type' => 'number',
    'label' => __('Font size','peccular'),
    'section' => 'peccular_font_setting',
    ));

addColorPalatOption($wp_customize, 'peccular_heading4_color', 'peccular_font_setting', 'Color', '#000');

   $wp_customize->add_setting('peccular_innerpageheading4_font_weight',array(
     'default' => '400',
     'sanitize_callback' => 'peccular_sanitize_choices'
   ));
   $wp_customize->add_control('peccular_innerpageheading4_font_weight',array(
      'type' => 'select',
      'label' => __('Font Weight','peccular'),
      'section' => 'peccular_font_setting',
      'choices' => array(
         '300' => __('300','peccular'),
         '400' => __('400','peccular'),
         '600' => __('600','peccular'),
         '700' => __('700','peccular'),
         '800' => __('800','peccular')
      ),
   ));

$wp_customize->add_setting('peccular_innerpageheading5_fontsize',array(
        'default' => '20',
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('peccular_innerpageheading5_fontsize',array(
    'type' => 'number',
    'label' => __('Font size','peccular'),
    'section' => 'peccular_font_setting',
    ));

addColorPalatOption($wp_customize, 'peccular_heading5_color', 'peccular_font_setting', 'Color', '#000');

   $wp_customize->add_setting('peccular_innerpageheading5_font_weight',array(
     'default' => '400',
     'sanitize_callback' => 'peccular_sanitize_choices'
   ));
   $wp_customize->add_control('peccular_innerpageheading5_font_weight',array(
      'type' => 'select',
      'label' => __('Font Weight','peccular'),
      'section' => 'peccular_font_setting',
      'choices' => array(
         '300' => __('300','peccular'),
         '400' => __('400','peccular'),
         '600' => __('600','peccular'),
         '700' => __('700','peccular'),
         '800' => __('800','peccular')
      ),
   ));

$wp_customize->add_setting('peccular_innerpageheading6_fontsize',array(
        'default' => '20',
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('peccular_innerpageheading6_fontsize',array(
    'type' => 'number',
    'label' => __('Font size','peccular'),
    'section' => 'peccular_font_setting',
    ));

addColorPalatOption($wp_customize, 'peccular_heading6_color', 'peccular_font_setting', 'Color', '#000');

   $wp_customize->add_setting('peccular_innerpageheading6_font_weight',array(
     'default' => '400',
     'sanitize_callback' => 'peccular_sanitize_choices'
   ));
   $wp_customize->add_control('peccular_innerpageheading6_font_weight',array(
      'type' => 'select',
      'label' => __('Font Weight','peccular'),
      'section' => 'peccular_font_setting',
      'choices' => array(
         '300' => __('300','peccular'),
         '400' => __('400','peccular'),
         '600' => __('600','peccular'),
         '700' => __('700','peccular'),
         '800' => __('800','peccular')
      ),
   ));


$wp_customize->add_setting('peccular_innerpagebody_fontsize',array(
        'default' => '14',
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('peccular_innerpagebody_fontsize',array(
    'type' => 'number',
    'label' => __('Font size','peccular'),
    'section' => 'peccular_font_setting',
    ));

addColorPalatOption($wp_customize, 'peccular_body_color', 'peccular_font_setting', 'Color', '#959595');


   $wp_customize->add_setting('peccular_innerpagebody_font_weight',array(
     'default' => '400',
     'sanitize_callback' => 'peccular_sanitize_choices'
   ));
   $wp_customize->add_control('peccular_innerpagebody_font_weight',array(
      'type' => 'select',
      'label' => __('Font Weight','peccular'),
      'section' => 'peccular_font_setting',
      'choices' => array(
         '300' => __('300','peccular'),
         '400' => __('400','peccular'),
         '600' => __('600','peccular'),
         '700' => __('700','peccular'),
         '800' => __('800','peccular')
      ),
   ));
// end to show & hide button