<?php
/**
 * Createing an about us pannel for customizer
 */

// START ABOUT SECTION 
$wp_customize->add_section(
    'lz_fitness_premium_result_section',
    array(
        'title' => __( 'Our Result Section', 'lz-fitness-premium' ),
        'panel' => 'lz_fitness_premium_home_panel'
    )
);
    // ENABLE/DISABLE FEATURED SECTION
$wp_customize->add_setting(
    'lz_fitness_premium_result_section_disable',
    array(
        'sanitize_callback' => 'lz_fitness_sanitize_text',
    )
);
$wp_customize->add_control(
    new lz_fitness_Switch_Control(
        $wp_customize,
        'lz_fitness_premium_result_section_disable',
        array(
            'settings'      => 'lz_fitness_premium_result_section_disable',
            'section'       => 'lz_fitness_premium_result_section',
            'label'         => __( 'Disable Section', 'lz-fitness-premium' ),
            'on_off_label'  => array(
                'on' => __( 'Yes', 'lz-fitness-premium' ),
                'off' => __( 'No', 'lz-fitness-premium' )
            ),
        )
    )
);

    // Manage the background SECTION
// $wp_customize->add_setting(
//     'lz_fitness_aboutus_title_heading1',
//     array(
//         'sanitize_callback' => 'lz_fitness_sanitize_text'
//     )
// );
// $wp_customize->add_control(
//     new lz_fitness_Customize_Heading(
//         $wp_customize,
//         'lz_fitness_aboutus_title_heading1',
//         array(
//             'settings'      => 'lz_fitness_aboutus_title_heading1',
//             'section'       => 'lz_fitness_premium_aboutus_section',
//             'label'         => __( 'Manage background', 'lz-fitness-premium' ),
//         )
//     )
// );
// $wp_customize->add_setting(
//     'lz_fitness_premium_aboutus_section_background',
//     array(
//         'sanitize_callback' => 'lz_fitness_sanitize_text',
//     )
// );
// $wp_customize->add_control(
//     new lz_fitness_Switch_Control(
//         $wp_customize,
//         'lz_fitness_premium_aboutus_section_background',
//         array(
//             'settings'      => 'lz_fitness_premium_aboutus_section_background',
//             'section'       => 'lz_fitness_premium_aboutus_section',
//             'label'         => __( 'Manage background by', 'lz-fitness-premium' ),
//             'on_off_label'  => array(
//                 'on' => __( 'Image', 'lz-fitness-premium' ),
//                 'off' => __( 'Color', 'lz-fitness-premium' )
//             ),
//         )
//     )
// );
// $wp_customize->add_setting(
//     'lz_fitness_result_bg_color',
//     array(
//         'default'           => '#fff',
//         'sanitize_callback' => 'sanitize_hex_color',
//         'priority' => 1
//     )
// );
// $wp_customize->add_control(
//     new WP_Customize_Color_Control(
//         $wp_customize,
//         'lz_fitness_result_bg_color',
//         array(
//             'settings'      => 'lz_fitness_result_bg_color',
//             'section'       => 'lz_fitness_premium_result_section',
//             'label'         => __( 'Background Color ', 'lz-fitness-premium' ),
//         )
//     )
// );
// $wp_customize->add_setting(
//     'lz_fitness_result_bg_image',
//     array(
//         'sanitize_callback' => 'esc_url_raw'
//     )
// );
// $wp_customize->add_control(
//     new WP_Customize_Image_Control(
//         $wp_customize,
//         'lz_fitness_result_bg_image',
//         array(
//             'section' => 'lz_fitness_premium_result_section',
//             'settings' => 'lz_fitness_about_bg_image',
//             'label' => __( 'Background Image ', 'lz-fitness-premium' ),
//             'description' => __('Recommended Image Size: 1900X600px', 'lz-fitness-premium')
//         )
//     )
// );

$wp_customize->add_setting(
    'lz_fitness_result_title_heading',
    array(
        'sanitize_callback' => 'lz_fitness_sanitize_text'
    )
);
$wp_customize->add_control(
    new lz_fitness_Customize_Heading(
        $wp_customize,
        'lz_fitness_result_title_heading',
        array(
            'settings'      => 'lz_fitness_result_title_heading',
            'section'       => 'lz_fitness_premium_result_section',
            'label'         => __( 'Title & Text', 'lz-fitness-premium' ),
        )
    )
);    
$wp_customize->add_setting(
    'lz_fitness_result_title',
    array(
        'sanitize_callback' => 'lz_fitness_sanitize_text',
        'default'           => __( 'OUR RESULTS SPEAK VOLUMES', 'lz-fitness-premium' )
    )
);
$wp_customize->add_control(
    'lz_fitness_result_title',
    array(
        'settings'      => 'lz_fitness_result_title',
        'section'       => 'lz_fitness_premium_result_section',
        'type'          => 'text',
        'label'         => __( 'Title for section', 'lz-fitness-premium' )
    )
);
lzAddElement($wp_customize, 'lz_fitness_result_subTitle', 'lz_fitness_premium_result_section', 'textarea', $label="Sub Title", 'lz_fitness_sanitize_text', 'Our teaching staff in Primary School are all well qualified early years teachers as are our assistants.');

lzAddElement($wp_customize, 'lz_fitness_result_subtext', 'lz_fitness_premium_result_section', 'textarea', $label="Sub Text", 'lz_fitness_sanitize_text', 'Voted <span>OUTSTANDING</span> by our local education authority');


// $wp_customize->add_setting(
//     'lz_fitness_result_text',
//     array(
//         'sanitize_callback'=>'lz_fitness_sanitize_text',
//         'default'=> __('
//             <ul>
//             <li>It was popularised in the 1960s with the release of Letraset sheets containing Loreum Ipsum passages, and more recently with desktop publishing software like Aldus Pagemaker including version of Loreum Ipsum.</li>
//             <li>Loreum Ipsum is simply dummy text of the printing and typesetting industry. Loreum Ipsum has been the industry standard dummy text ever since the 1500s.</li>
//             </ul>
//             ', 'lz-fitness-premium')
//     )
// );
// $wp_customize->add_control(
//     'lz_fitness_result_text',
//     array(
//         'settings' =>'lz_fitness_result_text',
//         'section' => 'lz_fitness_premium_aboutus_section',
//         'type'=> 'textarea',
//         'label'=> __('Sub Content for the section', 'lz-fitness-premium')
//     )
// );
// $wp_customize->add_setting(
//     'lz_fitness_aboutus_page',
//     array(
//         'sanitize_callback'=> 'absint',
//         'default' => __('About Page Readmore Link', 'lz-fitness-premium')
//     )
// );
// $wp_customize->add_control(
//     'lz_fitness_aboutus_page',
//     array(
//         'settings'=> 'lz_fitness_aboutus_page',
//         'section' => 'lz_fitness_premium_aboutus_section',
//         'type'=>'select',
//         'label'=>__('Link to About us page', 'lz-fitness-premium'),
//         'choices'=>$lz_fitness_page_choice
//     )
// );

    // Heading color
addColorPalatOption($wp_customize, 'lz_fitness_result_page_HeadingColor', 'lz_fitness_premium_result_section', 'Heading color', '#a556d4');
    // Text color
addColorPalatOption($wp_customize, 'lz_fitness_result_page_TextColor', 'lz_fitness_premium_result_section', 'Text color', '#474646');
 // span Text color
//addColorPalatOption($wp_customize, 'lz_fitness_result_page_sTextColor', 'lz_fitness_premium_result_section', 'Span Text color', '#a556d4');


 
backgroundManager($wp_customize, 'result', 'lz_fitness_premium_result_section', $color='#f6f6f6');


// Adding the Label
lzCustomLable($wp_customize, 'lz_fitness_result_lblImgTxt', 'lz_fitness_premium_result_section', 'Results Specification');
//add custome redio button
// lzAddCustomRadio($wp_customize, 'lz_fitness_appointment_radioImgTxt', 'lz_fitness_appointment_section', 'Use text');
//add textarea
lzAddElement($wp_customize, 'lz_fitness_result_contents', 'lz_fitness_premium_result_section', 'text', $label="Result", 'lz_fitness_sanitize_text', '92 %');
lzAddElement($wp_customize, 'lz_fitness_result_content1', 'lz_fitness_premium_result_section', 'text', $label="Result", 'lz_fitness_sanitize_text', 'PASS RATE');


lzAddElement($wp_customize, 'lz_fitness_result_content2', 'lz_fitness_premium_result_section', 'text', $label="Result", 'lz_fitness_sanitize_text', '96 %');
lzAddElement($wp_customize, 'lz_fitness_result_content3', 'lz_fitness_premium_result_section', 'text', $label="Result", 'lz_fitness_sanitize_text', 'HAPPY CHILDREN');

lzAddElement($wp_customize, 'lz_fitness_result_content4', 'lz_fitness_premium_result_section', 'text', $label="Result", 'lz_fitness_sanitize_text', '100 %');
lzAddElement($wp_customize, 'lz_fitness_result_content5', 'lz_fitness_premium_result_section', 'text', $label="Result", 'lz_fitness_sanitize_text', 'HAPPY PARENTS');


// result color
addColorPalatOption($wp_customize, 'lz_fitness_result_page1_TextColor', 'lz_fitness_premium_result_section', 'Result Specification1', '#b562d6');
 //  result color
addColorPalatOption($wp_customize, 'lz_fitness_result_page2_TextColor', 'lz_fitness_premium_result_section', 'Result Specification2', '#fd7198');
 //  result color
addColorPalatOption($wp_customize, 'lz_fitness_result_page3_TextColor', 'lz_fitness_premium_result_section', 'Result Specification3', '#03c8b1');
 //  result colorText color
addColorPalatOption($wp_customize, 'lz_fitness_result_page4_TextColor', 'lz_fitness_premium_result_section', 'Result Specification Text Color', '#ffffff');





    // END ABOUT SECTION 