<?php 

// testimonial section
function howcan_testi( $wp_customize ) {

    // testi Section
    $wp_customize->add_section( 'howcan_testi', array(
        'title'       => __( 'Testimonial Section', 'howcan' ),
        'priority'    => 40,
        'description' => __( 'Settings for the Testimonial section', 'howcan' ),
        'panel' =>  'howcan_theme_options_panel',
    ) );


    // Show/Hide about and intro 
    $wp_customize->add_setting('howcan_testi_on', array(
        'default'           => false,
        'sanitize_callback' => 'wp_validate_boolean',
    ));
    $wp_customize->add_control('howcan_testi_on', array(
        'label'    => __('Enable Testimonial Section ', 'howcan'),
        'section'  => 'howcan_testi',
        'type'     => 'checkbox',
    ));

    

    //  section Title
    $wp_customize->add_setting( 'testi_section_title', array(
        'default'           => __( 'Testimonial', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'testi_section_title', array(
        'label'   => __( 'Section Title', 'howcan' ),
        'section' => 'howcan_testi',
        'type'    => 'text',
    ) );

    //  section desc
    $wp_customize->add_setting( 'testi_section_dsc', array(
        'default'           => __( 'Lorum Ipsum is Lorum Ipsum is Lorum', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'testi_section_dsc', array(
        'label'   => __( 'Section description', 'howcan' ),
      'section' => 'howcan_testi',
        'type'    => 'textarea',
    ) );




    // testi 1 reviewer image 
    $wp_customize->add_setting( 'test_reviewer_img', array(
        'default'           => __( 'http://localhost:8000/wordpress-6.8.2-en_GB/wordpress/wp-content/uploads/2025/09/1758334634282.jpg', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'test_reviewer_img', array(
        'label'   => __( 'Revier Image ', 'howcan' ),
        'description' => __( 'Add an Image for Revier Section  ', 'howcan' ),
        'section' => 'howcan_testi',
        'type'    => 'text',
    ) );


    // testi 1 user review
    $wp_customize->add_setting( 'test_reviewer_text', array(
        'default'           => __( 'Lorum Ipsum is Doller is Lorum Ipsum is Doller is Lorum', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'test_reviewer_text', array(
        'label'   => __( 'Reviewer  Paragraph', 'howcan' ),
        'section' => 'howcan_testi',
        'type'    => 'textarea',
    ) );


    // testi 1 reviewer name  headeing 
    $wp_customize->add_setting( 'test_reviewer_name', array(
        'default'           => __( 'Lorum ispum is Lorum ', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'test_reviewer_name', array(
        'label'   => __( 'Reviewer Name ', 'howcan' ),
        'section' => 'howcan_testi',
        'type'    => 'text',
    ) );


    // testi 1  disination
    $wp_customize->add_setting( 'test_reviewer_position', array(
        'default'           => __( 'Lorum ipsum', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'test_reviewer_position', array(
        'label'   => __( 'Reviewer Position  ', 'howcan' ),
        'description' => __( 'Reviewer positiin ', 'howcan' ),
        'section' => 'howcan_testi',
        'type'    => 'text',
    ) );

//------------------ testi 2 
    // testi 2 reviewer image 
    $wp_customize->add_setting( 'test_reviewer_img2', array(
        'default'           => __( 'http://localhost:8000/wordpress-6.8.2-en_GB/wordpress/wp-content/uploads/2025/09/1758334634282.jpg', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'test_reviewer_img2', array(
        'label'   => __( 'Reviwer Image 2 ', 'howcan' ),
        'description' => __( 'Add an Image for Reviwer 2  Section  ', 'howcan' ),
        'section' => 'howcan_testi',
        'type'    => 'text',
    ) );


    // testi 2 user review
    $wp_customize->add_setting( 'test_reviewer_text2', array(
        'default'           => __( 'Lorum Ipsum is Doller is Lorum Ipsum is Doller is Lorum', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'test_reviewer_text2', array(
        'label'   => __( 'Reviewer  Paragraph 2', 'howcan' ),
        'section' => 'howcan_testi',
        'type'    => 'textarea',
    ) );


    // testi 2 reviewer name  headeing 
    $wp_customize->add_setting( 'test_reviewer_name2', array(
        'default'           => __( 'Lorum ispum is Lorum ', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'test_reviewer_name2', array(
        'label'   => __( 'Reviewer Name 2 ', 'howcan' ),
        'section' => 'howcan_testi',
        'type'    => 'text',
    ) );


    // testi 2  disination
    $wp_customize->add_setting( 'test_reviewer_position2', array(
        'default'           => __( 'Lorum ipsum', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'test_reviewer_position2', array(
        'label'   => __( 'Reviewer Position 2  ', 'howcan' ),
        'description' => __( 'Reviewer positiin 2', 'howcan' ),
        'section' => 'howcan_testi',
        'type'    => 'text',
    ) );
 

//------------------ testi 3
    // testi 3 reviewer image 
    $wp_customize->add_setting( 'test_reviewer_img3', array(
        'default'           => __( 'http://localhost:8000/wordpress-6.8.2-en_GB/wordpress/wp-content/uploads/2025/09/1758334634282.jpg', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'test_reviewer_img3', array(
        'label'   => __( 'Reviwer Image 3 ', 'howcan' ),
        'description' => __( 'Add an Image for Reviwer 3  Section  ', 'howcan' ),
        'section' => 'howcan_testi',
        'type'    => 'text',
    ) );


    // testi 3 user review
    $wp_customize->add_setting( 'test_reviewer_text3', array(
        'default'           => __( 'Lorum Ipsum is Doller is Lorum Ipsum is Doller is Lorum', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'test_reviewer_text3', array(
        'label'   => __( 'Reviewer  Paragraph 3', 'howcan' ),
        'section' => 'howcan_testi',
        'type'    => 'textarea',
    ) );


    // testi 3 reviewer name  headeing 
    $wp_customize->add_setting( 'test_reviewer_name3', array(
        'default'           => __( 'Lorum ispum is Lorum ', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'test_reviewer_name3', array(
        'label'   => __( 'Reviewer Name 3 ', 'howcan' ),
        'section' => 'howcan_testi',
        'type'    => 'text',
    ) );


    // testi 3  disination
    $wp_customize->add_setting( 'test_reviewer_position3', array(
        'default'           => __( 'Lorum ipsum', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'test_reviewer_position3', array(
        'label'   => __( 'Reviewer Position 3  ', 'howcan' ),
        'description' => __( 'Reviewer positiin 3', 'howcan' ),
        'section' => 'howcan_testi',
        'type'    => 'text',
    ) );
 
 
 



}
add_action( 'customize_register', 'howcan_testi' );

