<?php



// Feature or Benifit section 
function howcan_feature_benifit( $wp_customize ) {

    // Feature or Benifit Section
    $wp_customize->add_section( 'howcan_feature_benifit', array(
        'title'       => __( 'Feature / Benifit Section', 'howcan' ),
        'priority'    => 20,
        'description' => __( 'Settings for the Feature / Benifit section', 'howcan' ),
        'panel' =>  'howcan_theme_options_panel',
    ) );


    // Show/Hide Feature and Benifit 
    $wp_customize->add_setting('howcan_feature_benifit_on', array(
        'default'           => false,
        'sanitize_callback' => 'wp_validate_boolean',
    ));
    $wp_customize->add_control('howcan_feature_benifit_on', array(
        'label'    => __('Enable Feature or Benifit Section ', 'howcan'),
        'section'  => 'howcan_feature_benifit',
        'type'     => 'checkbox',
    ));

    

    // Feature section Title
    $wp_customize->add_setting( 'feature_section_title', array(
        'default'           => __( 'Features', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'feature_section_title', array(
        'label'   => __( 'Section Title', 'howcan' ),
        'section' => 'howcan_feature_benifit',
        'type'    => 'text',
    ) );

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





    //Feature Heading 1
    $wp_customize->add_setting( 'feature_heading_1', array(
        'default'           => __( 'Feature 1', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'feature_heading_1', array(
        'label'   => __( 'Feature 1 Heading ', 'howcan' ),
        'section' => 'howcan_feature_benifit',
        'type'    => 'text',
    ) );

    // Feature icon 
    $wp_customize->add_setting( 'feature_icon_1', array(
        'default'           => __( 'facebook', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'feature_icon_1', array(
        'label'   => __( 'Feature 1 Icon', 'howcan' ),
        'description' => __( 'to Add Icon simple Input : facebook , youtube etc ', 'howcan' ),
        'section' => 'howcan_feature_benifit',
        'type'    => 'text',
    ) );


    // Feature para
    $wp_customize->add_setting( 'feature_para_1', array(
        'default'           => __( 'Lorum Ipsum is Doller is Lorum Ipsum is Doller is Lorum', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'feature_para_1', array(
        'label'   => __( 'Feature 1 Paragraph', 'howcan' ),
        'section' => 'howcan_feature_benifit',
        'type'    => 'textarea',
    ) );


    //-----Feature Heading 2
    $wp_customize->add_setting( 'feature_heading_2', array(
        'default'           => __( 'Feature 2', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'feature_heading_2', array(
        'label'   => __( 'Feature 2 Heading ', 'howcan' ),
        'section' => 'howcan_feature_benifit',
        'type'    => 'text',
    ) );

    // Feature icon 2
    $wp_customize->add_setting( 'feature_icon_2', array(
        'default'           => __( 'youtube', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'feature_icon_2', array(
        'label'   => __( 'Feature 2 Icon', 'howcan' ),
        'description' => __( 'to Add Icon simple Input : facebook , youtube etc ', 'howcan' ),
        'section' => 'howcan_feature_benifit',
        'type'    => 'text',
    ) );


    // Feature para 2
    $wp_customize->add_setting( 'feature_para_2', array(
        'default'           => __( 'Lorum Ipsum is Doller is Lorum Ipsum is Doller is Lorum', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'feature_para_2', array(
        'label'   => __( 'Feature 1 Paragraph', 'howcan' ),
        'section' => 'howcan_feature_benifit',
        'type'    => 'textarea',
    ) );


    //-----Feature Heading 2
    $wp_customize->add_setting( 'feature_heading_2', array(
        'default'           => __( 'Feature 2', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'feature_heading_2', array(
        'label'   => __( 'Feature 2 Heading ', 'howcan' ),
        'section' => 'howcan_feature_benifit',
        'type'    => 'text',
    ) );

    // Feature icon 2
    $wp_customize->add_setting( 'feature_icon_2', array(
        'default'           => __( 'youtube', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'feature_icon_2', array(
        'label'   => __( 'Feature 2 Icon', 'howcan' ),
        'description' => __( 'to Add Icon simple Input : facebook , youtube etc ', 'howcan' ),
        'section' => 'howcan_feature_benifit',
        'type'    => 'text',
    ) );


    // Feature para 2
    $wp_customize->add_setting( 'feature_para_2', array(
        'default'           => __( 'Lorum Ipsum is Doller is Lorum Ipsum is Doller is Lorum', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'feature_para_2', array(
        'label'   => __( 'Feature 1 Paragraph', 'howcan' ),
        'section' => 'howcan_feature_benifit',
        'type'    => 'textarea',
    ) );


    //-----Feature Heading 3
    $wp_customize->add_setting( 'feature_heading_3', array(
        'default'           => __( 'Feature 3', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'feature_heading_3', array(
        'label'   => __( 'Feature 3 Heading ', 'howcan' ),
        'section' => 'howcan_feature_benifit',
        'type'    => 'text',
    ) );

    // Feature icon 2
    $wp_customize->add_setting( 'feature_icon_3', array(
        'default'           => __( 'instagram', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'feature_icon_3', array(
        'label'   => __( 'Feature 3 Icon', 'howcan' ),
        'description' => __( 'to Add Icon simple Input : facebook , youtube etc ', 'howcan' ),
        'section' => 'howcan_feature_benifit',
        'type'    => 'text',
    ) );


    // Feature para 2
    $wp_customize->add_setting( 'feature_para_3', array(
        'default'           => __( 'Lorum Ipsum is Doller is Lorum Ipsum is Doller is Lorum', 'howcan' ),
        'sanitize_callback' => 'sanitize_text_field',
    ) );
    $wp_customize->add_control( 'feature_para_3', array(
        'label'   => __( 'Feature 3 Paragraph', 'howcan' ),
        'section' => 'howcan_feature_benifit',
        'type'    => 'textarea',
    ) );



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

