<?php 
  $lvl2ParentPanel3 = new peccular_WP_Customize_Panel( $wp_customize, 'peccular_header_panel3', array(
    'title' => 'Pages',
    'panel' => 'peccular_header_panel1',
    'priority' => 2,
  ));

  $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_header_panel3',
  ));

//Bottom Header
    $wp_customize->add_section( 'peccular_contact_pages' , array(
        'title'    => __( 'Contact Page', 'peccular-premium' ),
        'priority' => null,
        'panel' => 'peccular_header_panel3'
    ) );


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

    $wp_customize->add_control(new peccular_Tab_Control($wp_customize, 'peccular_contactpages_nav', array(
       'section' => 'peccular_contact_pages',
       'priority' => 1,
       'buttons' => array(
          array(
             'name' => esc_html__('General', 'peccular-premium'),
            'icon' => 'dashicons dashicons-welcome-write-blog',
            'fields' => array(
                
              
                'peccular_contactpage_address1',            
                'peccular_contact_page_phone',                              
                'peccular_contact_page_email',                
                'peccular_contactpage_form_shortcode',                
                'peccular_contact_page_formtitle1',   
                'peccular_cont_addhead',        
                'peccular_cont_emailhead',  
                'peccular_cont_phonehead',  
                'peccular_contform_subtitle',
                'peccular_cont_maintitleleft',
                'peccular_cont_text',
                'peccular_contform_maintitle',
                'peccular_contact_pages_lbl1',
                'peccular_contact_page_iframe_shortcode',
                'peccular_innercon_section_title',
                'peccular_innercon_text'      


            ),
            'active' => true,
         ),      
          array(
            'name' => esc_html__('Style', 'peccular-premium'),
            'icon' => 'dashicons dashicons-art',
            'fields' => array( 
                          
                'peccular_contactpage_box_onload_effects',
                'peccular_contactpage_lheading_color', 
                'peccular_contactpage_lheadingspan_color',               
                'peccular_contactpage_rheading_color',
                'peccular_contactpage_rheadingtext_color',
                'peccular_contact_page_formtitle_color',
                'peccular_contact_page_formspan_color',
                'peccular_contact_page_formtext_color',
                'peccular_contact_page_formborder_color',
                'peccular_contactpage_formbtnbg_color1',
                'peccular_contactpage_formbtnbg_color2',
                'peccular_contactpage_formbtntext_color',
                'peccular_contact_page_formbtnbghov_color1',
                'peccular_contact_pagee_formbtntexthv_color',              
                'peccular_contactpage_addtext1_color',               
                'peccular_contactpage_addicon_color',               
                'peccular_contactpage_iconbg_color',               
                'peccular_contactpage_phoneicon_color',
                'peccular_contactpage_phonetextbxbg_color',
                'peccular_contactpage_leftboxbg_color',
                'peccular_contactpage_addtitle_color',
                'peccular_contactpage_iconbor_color',
                'peccular_contactpage_boxbg_color',
                'peccular_contact_page_hovicon_color',
                'peccular_contactpage_hovbg_color',
                'peccular_contactform_image',
                'peccular_contactform_image2',
                'peccular_contact_page_formtextbg_color',
                'peccular_contactpage_rightboxbg_color'
               

            ),
         )
        ),
    )));

$wp_customize->add_setting( 'peccular_contactform_image', array(
       'default' => '',
       'sanitize_callback' => 'esc_url_raw'
    ));
    $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'peccular_contactform_image', array(
        'label' => __('Background Image','peccular'),
       'section' => 'peccular_contact_pages',
    )));

$wp_customize->add_setting(
    'peccular_innercon_section_title',
    array(
        'sanitize_callback' => 'peccular_sanitize_text',
        'default'           => __( 'Let Us Help <br>The <span>Sun Help You.</span>', 'peccular-premium' )
    )
);
$wp_customize->add_control(
    'peccular_innercon_section_title',
    array(
        'settings'      => 'peccular_innercon_section_title',
        'section'       => 'peccular_contact_pages', 
        'type'          => 'text',
        'label'         => __( 'Contact Title', 'peccular-premium' )
    )
);

$wp_customize->add_setting(
    'peccular_innercon_text',
    array(
        'sanitize_callback' => 'peccular_sanitize_text',
        'default'           => __( 'There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which dont look even slightly' )
    )
);
$wp_customize->add_control(
    'peccular_innercon_text',
    array(
        'settings'      => 'peccular_innercon_text',
        'section'       => 'peccular_contact_pages', 
        'type'          => 'textarea',
        'label'         => __( 'Contact Description', 'peccular-premium' )
    )
);




$wp_customize->add_setting(
    'peccular_contform_maintitle',
    array(
        'sanitize_callback' => 'peccular_sanitize_text',
        'default'           => __( '<span>Contact</span> Us', 'peccular' )
    )
);
$wp_customize->add_control(
    'peccular_contform_maintitle',
    array(
        'settings'      => 'peccular_contform_maintitle',
        'section'       => 'peccular_contact_pages', 
        'type'          => 'text',
        'label'         => __( 'Form Title', 'peccular' )
    )
);
$wp_customize->add_setting(
    'peccular_contactpage_form_shortcode',
    array(
        'sanitize_callback' => 'peccular_sanitize_text',
        'default'           => __( 'Add Form [SHORTCODE] Here', 'peccular' )
    )
);
$wp_customize->add_control(
    'peccular_contactpage_form_shortcode',
    array(
        'settings'      => 'peccular_contactpage_form_shortcode',
        'section'       => 'peccular_contact_pages', 
        'type'          => 'text',
        'label'         => __( 'Form Shortcode', 'peccular' )
    )
);
 $wp_customize->add_setting( 'peccular_contactform_image2', array(
       'default' => '',
       'sanitize_callback' => 'esc_url_raw'
    ));
    $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'peccular_contactform_image2', array(
        'label' => __('Form Side Image','peccular'),
       'section' => 'peccular_contact_pages',
    )));


$wp_customize->add_setting(
    'peccular_cont_addhead',
    array(
        'sanitize_callback' => 'peccular_sanitize_text',
        'default'           => __( 'OFFICIAL ADDRESS', 'peccular' )
    )
);
$wp_customize->add_control(
    'peccular_cont_addhead',
    array(
        'settings'      => 'peccular_cont_addhead',
        'section'       => 'peccular_contact_pages', 
        'type'          => 'text',
        'label'         => __( 'Address Heading', 'peccular' )
    )
);

$wp_customize->add_setting(
    'peccular_contactpage_address1',
    array(
        'sanitize_callback' => 'peccular_sanitize_text',
        'default'           => __( '504 White St . Dawsonville, GA 30534 , New York', 'peccular' )
    )
);
$wp_customize->add_control(
    'peccular_contactpage_address1',
    array(
        'settings'      => 'peccular_contactpage_address1',
        'section'       => 'peccular_contact_pages', 
        'type'          => 'textarea',
        'label'         => __( 'Address Text', 'peccular' )
    )
);

$wp_customize->add_setting(
    'peccular_cont_emailhead',
    array(
        'sanitize_callback' => 'peccular_sanitize_text',
        'default'           => __( 'E-mail', 'peccular' )
    )
);
$wp_customize->add_control(
    'peccular_cont_emailhead',
    array(
        'settings'      => 'peccular_cont_emailhead',
        'section'       => 'peccular_contact_pages', 
        'type'          => 'text',
        'label'         => __( 'E-mail Heading', 'peccular' )
    )
);

$wp_customize->add_setting(
    'peccular_contact_page_email',
    array(
        'sanitize_callback' => 'peccular_sanitize_text',
        'default'           => __( 'contact@example.com', 'peccular' )
    )
);
$wp_customize->add_control(
    'peccular_contact_page_email',
    array(
        'settings'      => 'peccular_contact_page_email',
        'section'       => 'peccular_contact_pages', 
        'type'          => 'text',
        'label'         => __( 'Email Text', 'peccular' )
    )
);

$wp_customize->add_setting(
    'peccular_cont_phonehead',
    array(
        'sanitize_callback' => 'peccular_sanitize_text',
        'default'           => __( 'CALL US', 'peccular' )
    )
);
$wp_customize->add_control(
    'peccular_cont_phonehead',
    array(
        'settings'      => 'peccular_cont_phonehead',
        'section'       => 'peccular_contact_pages', 
        'type'          => 'text',
        'label'         => __( 'Phone Heading', 'peccular' )
    )
);
$wp_customize->add_setting(
    'peccular_contact_page_phone',
    array(
        'sanitize_callback' => 'peccular_sanitize_phone_number',
        'default'           => __( '+8888 22 723', 'peccular' )
    )
);
$wp_customize->add_control(
    'peccular_contact_page_phone',
    array(
        'settings'      => 'peccular_contact_page_phone',
        'section'       => 'peccular_contact_pages', 
        'type'          => 'text',
        'label'         => __( 'Phone Number', 'peccular' )
    )
);

$wp_customize->add_setting(
    'peccular_contact_page_iframe_shortcode', 
    array( 
        'default'=>'Add Map Embed Code Here'
    ));
$wp_customize->add_control(
    'peccular_contact_page_iframe_shortcode', 
    array(
        'settings'=>'peccular_contact_page_iframe_shortcode', 
        'section'=>'peccular_contact_pages',
        'type'=>'textarea', 
        'label'=> __('Embed Code for map', 'peccular')
    ));

 // $wp_customize->add_setting( 'peccular_contactform_image', array(
 //       'default' => '',
 //       'sanitize_callback' => 'esc_url_raw'
 //    ));
 //    $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'peccular_contactform_image', array(
 //        'label' => __('Background Image','peccular'),
 //       'section' => 'peccular_contact_pages',
 //    )));

   


//     $wp_customize->add_setting('peccular_contact_pages_lbl1', array('sanitize_callback'=>'peccular_sanitize_text'));
//     $wp_customize->add_control(
//     new peccular_Info_Text( 
//         $wp_customize,
//         'peccular_contact_pages_lbl1',
//         array(
//             'settings'      => 'peccular_contact_pages_lbl1',
//             'section'       => 'peccular_contact_pages',
//             'label'         => __( 'Note:', 'peccular Premium' ), 
//             'description'   => __( 'Take Right Image size 973px x 830px  ', 'peccular Premium' ),
//         )
//     )
// );


 // $wp_customize->add_setting('peccular_contactpage_content_align',array(
 //        'default' => 'Left',
 //        'sanitize_callback' => 'peccular_sanitize_choices',
 //    ));
 //    $wp_customize->add_control('peccular_contactpage_content_align',array(
 //        'type' => 'select',
 //        'label' => __('Data Box Alignment','peccular'),
 //        'choices' => array (
 //            'Center' => __('Center','peccular'),
 //            'Left' => __('Left','peccular'),
 //            'Right' => __('Right','peccular')
 //        ),
 //        'section' => 'peccular_contact_pages',
 //    ));

     $wp_customize->add_setting('peccular_contactpage_box_onload_effects',array(
        'default' => 'wow zoomIn',
        'sanitize_callback' => 'peccular_sanitize_choices',
    ));
    $wp_customize->add_control('peccular_contactpage_box_onload_effects',array(
        'type' => 'select',
        'label' => __('Box Onload Transition Effects','peccular'),
        'choices' => array (
            'wow bounceInLeft' => __('Bounce In Left','peccular'),
            'wow bounceInRight' => __('Bounce In Right','peccular'),
            'wow bounceInUp' => __('Bounce In Up','peccular'),
            'wow bounceInDown' => __('Bounce In Down','peccular'),
            'wow zoomIn' => __('Zoom In','peccular'),
            'wow zoomOut' => __('Zoom Out','peccular'),
            'wow fadeInDown' => __('Fade In Down','peccular'),            
            'wow fadeInUp' => __('Fade In Up','peccular'),
            'wow fadeInLeft' => __('Fade In Left','peccular'),
            'wow fadeInRight' => __('Fade In Right','peccular'),
            'flip-up' => __('Flip Up','peccular')
        ),
        'section' => 'peccular_contact_pages',
    ));

addColorPalatOption($wp_customize, 'peccular_contactpage_lheading_color', 'peccular_contact_pages', 'Heading Color ', '');
addColorPalatOption($wp_customize, 'peccular_contactpage_lheadingspan_color', 'peccular_contact_pages', 'Heading Span Color ', '');
addColorPalatOption($wp_customize, 'peccular_contactpage_rheadingtext_color', 'peccular_contact_pages', 'Description Color ', '');
addColorPalatOption($wp_customize, 'peccular_contactpage_leftboxbg_color', 'peccular_contact_pages', 'Form Box BG Color', '');
addColorPalatOption($wp_customize, 'peccular_contact_page_formtitle_color', 'peccular_contact_pages', 'Form Title Color ', '');

addColorPalatOption($wp_customize, 'peccular_contact_page_formspan_color', 'peccular_contact_pages', 'Form Title Span Color ', '');
addColorPalatOption($wp_customize, 'peccular_contact_page_formtext_color', 'peccular_contact_pages', 'Form Text Color ', '');

addColorPalatOption($wp_customize, 'peccular_contact_page_formtextbg_color', 'peccular_contact_pages', 'Form Text BG Color ', '');

addColorPalatOption($wp_customize, 'peccular_contactpage_formbtnbg_color1', 'peccular_contact_pages', 'Form Button BG Color', '');
addColorPalatOption($wp_customize, 'peccular_contactpage_formbtnbg_color2', 'peccular_contact_pages', 'Form Button BG Color', '');
addColorPalatOption($wp_customize, 'peccular_contactpage_formbtntext_color', 'peccular_contact_pages', 'Form Button Text Color', '');
// addColorPalatOption($wp_customize, 'peccular_contact_page_formbtnbghov_color1', 'peccular_contact_pages', 'Form Button Hover BG color', '');
addColorPalatOption($wp_customize, 'peccular_contact_pagee_formbtntexthv_color', 'peccular_contact_pages', 'Form Button Hover Text color', '');
addColorPalatOption($wp_customize, 'peccular_contactpage_addtitle_color', 'peccular_contact_pages', 'Address/Phone/Mail Heading Color', '');
addColorPalatOption($wp_customize, 'peccular_contactpage_addtext1_color', 'peccular_contact_pages', 'Address/Phone/Mail Text Color', '');
addColorPalatOption($wp_customize, 'peccular_contactpage_addicon_color', 'peccular_contact_pages', 'Address/Phone/Mail Icon Color', '');
addColorPalatOption($wp_customize, 'peccular_contact_page_hovicon_color', 'peccular_contact_pages', 'Address/Phone/Mail Hover Icon Color', '');
addColorPalatOption($wp_customize, 'peccular_contactpage_iconbg_color', 'peccular_contact_pages', 'Address/Phone/Mail Icon BG Color', '');
addColorPalatOption($wp_customize, 'peccular_contactpage_hovbg_color', 'peccular_contact_pages', 'Address/Phone/Mail Hover Icon BG Color', '');
addColorPalatOption($wp_customize, 'peccular_contactpage_iconbor_color', 'peccular_contact_pages', 'Address/Phone/Mail Icon Border Color', '');
addColorPalatOption($wp_customize, 'peccular_contactpage_boxbg_color', 'peccular_contact_pages', 'Contact Info BG Color', '');



// addColorPalatOption($wp_customize, 'peccular_contactpage_rightboxbg_color', 'peccular_contact_pages', 'Right Box Overlay Color', '');

// addColorPalatOption($wp_customize, 'peccular_contactpage_rheading_color', 'peccular_contact_pages', 'Right Heading Color ', '');





?>