<?php
/**
 * Createing an about us pannel for customizer
 */
 
// START ABOUT SECTION 
    $wp_customize->add_section(
        'lz_fitness_premium_aboutconstruction_section',
        array(
            'title' => __( 'About Us Section', 'lz-fitness-premium' ),
            'panel' => 'lz_fitness_premium_home_panel'
        )
    );
    // ENABLE/DISABLE FEATURED SECTION
    $wp_customize->add_setting(
        'lz_fitness_premium_aboutconstruction_section_disable',
        array(
            'sanitize_callback' => 'lz_fitness_sanitize_text',
        )
    );
    $wp_customize->add_control(
        new lz_fitness_Switch_Control(
            $wp_customize,
            'lz_fitness_premium_aboutconstruction_section_disable',
            array(
                'settings'      => 'lz_fitness_premium_aboutconstruction_section_disable',
                'section'       => 'lz_fitness_premium_aboutconstruction_section',
                'label'         => __( 'Disable Section', 'lz-fitness-premium' ),
                'on_off_label'  => array(
                    'on' => __( 'Yes', 'lz-fitness-premium' ),
                    'off' => __( 'No', 'lz-fitness-premium' )
                ),
            )
        )
    );
backgroundManager($wp_customize, 'aboutconstruction', 'lz_fitness_premium_aboutconstruction_section', $color='#ffffff', get_template_directory_uri().'/images/aboutbg.jpg', 'color'); 

    $wp_customize->add_setting(
        'lz_fitness_aboutconstruction_title_heading',
        array(
            'sanitize_callback' => 'lz_fitness_sanitize_text'
        )
    );
    $wp_customize->add_control(
        new lz_fitness_Customize_Heading(
            $wp_customize,
            'lz_fitness_aboutconstruction_title_heading',
            array(
                'settings'      => 'lz_fitness_aboutconstruction_title_heading',
                'section'       => 'lz_fitness_premium_aboutconstruction_section',
                'label'         => __( 'About Us Title, Subtitle & Text', 'lz-fitness-premium' ),
            )
        )
    );    
    $wp_customize->add_setting(
        'lz_fitness_aboutconstruction_title',
        array(
            'sanitize_callback' => 'lz_fitness_sanitize_text',
            'default'           => __( 'About Us', 'lz-fitness-premium' )
        )
    );
    $wp_customize->add_control(
        'lz_fitness_aboutconstruction_title',
        array(
            'settings'      => 'lz_fitness_aboutconstruction_title',
            'section'       => 'lz_fitness_premium_aboutconstruction_section',
            'type'          => 'text',
            'label'         => __( 'Title for section', 'lz-fitness-premium' )
        )
    );

addColorPalatOption($wp_customize, 'lz_fitness_aboutconstruction_HeadingColor', 'lz_fitness_premium_aboutconstruction_section', 'Section Title color', '#292929');

$wp_customize->add_setting(
        'lz_fitness_aboutconstruction_anothertitle',
        array(
            'sanitize_callback' => 'lz_fitness_sanitize_text',
            'default'           => __( 'Lorem Ipsum availables, but majority have suffered.', 'lz-fitness-premium' )
        )
    );
    $wp_customize->add_control(
        'lz_fitness_aboutconstruction_anothertitle',
        array(
            'settings'      => 'lz_fitness_aboutconstruction_anothertitle',
            'section'       => 'lz_fitness_premium_aboutconstruction_section',
            'type'          => 'textarea',
            'label'         => __( 'Sub Title', 'lz-fitness-premium' )
        )
    );
addColorPalatOption($wp_customize, 'lz_fitness_aboutconstruction_subtitleColor', 'lz_fitness_premium_aboutconstruction_section', 'Sub Title color', '#292929');
addColorPalatOption($wp_customize, 'lz_fitness_aboutconstruction_borderbrssclrColor', 'lz_fitness_premium_aboutconstruction_section', 'Border color', '#cecece');    
addColorPalatOption($wp_customize, 'lz_fitness_aboutconstruction_borderhighlightColor', 'lz_fitness_premium_aboutconstruction_section', 'Border Highlight color', '#fbda4d');   
$wp_customize->add_setting(
        'lz_fitness_aboutconstructionmaintitle_title',
        array(
            'sanitize_callback' => 'lz_fitness_sanitize_text',
            'default'           => __( 'We individually assess each plan & offer optimal solution', 'lz-fitness-premium' )
        )
    );
    $wp_customize->add_control(
        'lz_fitness_aboutconstructionmaintitle_title',
        array(
            'settings'      => 'lz_fitness_aboutconstructionmaintitle_title',
            'section'       => 'lz_fitness_premium_aboutconstruction_section',
            'type'          => 'textarea',
            'label'         => __( 'Text', 'lz-fitness-premium' )
        )
    );
addColorPalatOption($wp_customize, 'lz_fitness_aboutconstruction_textColor', 'lz_fitness_premium_aboutconstruction_section', 'Text color', '#000');    
$wp_customize->add_setting(
        'lz_fitness_aboutconstruction_subheading',
        array(
            'sanitize_callback' => 'lz_fitness_sanitize_text',
            'default'           => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi hendrerit elit turpis, a porttitor tellus sollicitudin at.Class aptent taciti sociosqu ad litora torquent.', 'lz-fitness-premium' )
        )
    );
    $wp_customize->add_control(
        'lz_fitness_aboutconstruction_subheading',
        array(
            'settings'      => 'lz_fitness_aboutconstruction_subheading',
            'section'       => 'lz_fitness_premium_aboutconstruction_section',
            'type'          => 'textarea',
            'label'         => __( 'Sub Text', 'lz-fitness-premium' )
        )
    );
addColorPalatOption($wp_customize, 'lz_fitness_aboutconstruction_subtextColor', 'lz_fitness_premium_aboutconstruction_section', 'Sub Text color', '#fbda4d');    

$wp_customize->add_setting(
        'lz_fitness_aboutconstruction_text',
        array(
            'sanitize_callback'=>'lz_fitness_sanitize_text',
            'default'=> __('Lorem Ipsum is simply dummy text of the printing and tysetting industry. Lorem Ipsum has been the industry’s standard dumy text ever since the 1500s, when an unwn printer took a galley of type and scrambled it to make a type specimen book. remaining essentially unchanged. It was popularised in the with theLorem Ipsum is simply dummy text of the printing and eentially unchanged. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. remaining essentially unchanged. It was popularised in the with theLorem Ipsum is simply dummy text of the printing and eentially unchanged.Lorem Ipsum is simply dummy text of the printing and tysetting industry. Lorem Ipsum has been the industry’s standard dumy text ever since the 1500s, when an unwn printer took a galley of type and scrambled it to make a type specimen book. remaining essentially unchanged. It was popularised in the with theLorem Ipsum is simply dummy text of the printing and eentially unchanged. Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'lz-fitness-premium')
        )
    );
    $wp_customize->add_control(
        'lz_fitness_aboutconstruction_text',
        array(
            'settings' =>'lz_fitness_aboutconstruction_text',
            'section' => 'lz_fitness_premium_aboutconstruction_section',
            'type'=> 'textarea',
            'label'=> __('Content for the section', 'lz-fitness-premium')
        )
    );
addColorPalatOption($wp_customize, 'lz_fitness_aboutconstruction_contentColor', 'lz_fitness_premium_aboutconstruction_section', 'Content color', '#292929');    

 

$wp_customize->add_setting(
        'lz_fitness_aboutconstruction_image_heading',
        array(
            'sanitize_callback' => 'lz_fitness_sanitize_text'
        )
    );
    $wp_customize->add_control(
        new lz_fitness_Customize_Heading(
            $wp_customize,
            'lz_fitness_aboutconstruction_image_heading',
            array(
                'settings'      => 'lz_fitness_aboutconstruction_image_heading',
                'section'       => 'lz_fitness_premium_aboutconstruction_section',
                'label'         => __( 'Right Image', 'lz-fitness-premium' ),
            )
        )
    );
    $wp_customize->add_setting(
        'lz_fitness_aboutconstruction_image',
        array(
            'sanitize_callback' => 'esc_url_raw'
        )
    );
    $wp_customize->add_control(
        new WP_Customize_Image_Control(
            $wp_customize,
            'lz_fitness_aboutconstruction_image',
            array(
                'section' => 'lz_fitness_premium_aboutconstruction_section',
                'settings' => 'lz_fitness_aboutconstruction_image',
                'description' => __('Recommended Image Size: 649X687px', 'lz-fitness-premium')
            )
        )
    );
addColorPalatOption($wp_customize, 'lz_fitness_aboutconstruction_imgbgColor', 'lz_fitness_premium_aboutconstruction_section', 'Image Border color', '#fbda4d');    



//lzCustomLable($wp_customize, 'lz_fitness_premium_aboutconstruction_lblbutton1display', 'lz_fitness_premium_aboutconstruction_section', 'Button Display & Text Setting:');
// to show & hide another button
//$wp_customize->add_setting( 'aboutconstruction_button_display' , array( 'default' => true, 'transport' => 'refresh', ) ); $wp_customize->add_control( 'aboutconstruction_button_display', array( 'label' => 'Button Display', 'section' => 'lz_fitness_premium_aboutconstruction_section', 'settings' => 'aboutconstruction_button_display', 'type' => 'radio', 'choices' => array( 'show' => 'Show Button', 'hide' => 'Hide Button', ), ) ); 
// end to show & hide button

// $wp_customize->add_setting(
//     'lz_fitness_aboutconstruction',
//     array(
//         'sanitize_callback' => 'lz_fitness_sanitize_text',
//         'default'           => __( 'Read More' )
//     )
// );
// $wp_customize->add_control(
//     'lz_fitness_aboutconstruction',
//     array(
//         'settings'      => 'lz_fitness_aboutconstruction',
//         'section'       => 'lz_fitness_premium_aboutconstruction_section',
//         'type'          => 'text',
//         'label'         => __( 'Button Text', 'lz-fitness-premium' )
//     )
// );
// $wp_customize->add_setting('lz_fitness_aboutconstructionlink',   array('default'=> 'add Button link here', 'sanitize_callback' => 'esc_url_raw'));
// $wp_customize->add_control('lz_fitness_aboutconstructionlink',
//     array(
//         'settings'      => 'lz_fitness_aboutconstructionlink',
//         'section'       => 'lz_fitness_premium_aboutconstruction_section',
//         'type'          => 'url',
//         'label'         => __( 'Button Url', 'gurukul' )
//     )
// );


// lzCustomLable($wp_customize, 'lz_fitness_premium_aboutconstruction_lblImgTxt', 'lz_fitness_premium_aboutconstruction_section', 'Button Colors:');

// addColorPalatOption($wp_customize, 'lz_fitness_aboutconstruction_ButtonColor', 'lz_fitness_premium_aboutconstruction_section', 'Button Background color', '#feac65');
// addColorPalatOption($wp_customize, 'lz_fitness_aboutconstruction_ButtonTextColor', 'lz_fitness_premium_aboutconstruction_section', 'Button Text color', '#ffffff');
// addColorPalatOption($wp_customize, 'lz_fitness_aboutconstruction_ButtonBackgroundhoverColor', 'lz_fitness_premium_aboutconstruction_section', 'Button Background Hover color', '#4f4f4f');
// addColorPalatOption($wp_customize, 'lz_fitness_aboutconstruction_ButtonBackgroundtexthoverColor', 'lz_fitness_premium_aboutconstruction_section', 'Button Text Hover color', '#ffffff');
//addColorPalatOption($wp_customize, 'lz_fitness_aboutconstruction_ButtonBordersColor', 'lz_fitness_premium_aboutconstruction_section', 'Button Border Hover color', '#000000');








