__( 'Testimonials Section', 'bizpoint' ),
'description' => __( 'You must have selected "Static Page" in your "Homepage Settings". You can use this section for displaying testimonials.', 'bizpoint' ),
'panel' => 'custom_frontpage', // Not typically needed.
'capability' => 'edit_theme_options',
'theme_supports' => '', // Rarely needed.
) );
// Hide Section Checkbox
Bizpoint_Kirki::add_field( 'bizpoint_theme', array(
'type' => 'checkbox',
'settings' => 'hide_testimonials',
'label' => esc_attr__( 'Hide Section', 'bizpoint' ),
'section' => 'testimonials_section',
'default' => false,
) );
// segment title
Bizpoint_Kirki::add_field( 'bizpoint_theme', array(
'type' => 'custom',
'settings' => 'hr_line_testi_1',
'section' => 'testimonials_section',
'default' => '
'. __( 'Content', 'bizpoint') .'
',
) );
// Title
Bizpoint_Kirki::add_field( 'bizpoint_theme', array(
'type' => 'text',
'settings' => 'testimonial_title',
'label' => __( 'Section Title', 'bizpoint' ),
'section' => 'testimonials_section',
'default' => __( 'Testimonials', 'bizpoint' ),
'partial_refresh' => array(
'testimonial_title' => array(
'selector' => '.testimonials-section .section-title',
'render_callback' => 'bizpoint_get_theme_mod'
),
),
) );
// Subtitle
Bizpoint_Kirki::add_field( 'bizpoint_theme', array(
'type' => 'textarea',
'settings' => 'testimonial_subtitle',
'label' => __( 'Section Subtitle', 'bizpoint' ),
'section' => 'testimonials_section',
'default' => __( 'Check what our clients are saying about us. They all are delighted with our theme. Now, it\'s your turn.', 'bizpoint' )
) );
// Repeater
Bizpoint_Kirki::add_field( 'bizpoint_theme', array(
'type' => 'repeater',
'label' => esc_attr__( 'Testimonials', 'bizpoint' ),
'section' => 'testimonials_section',
'row_label' => array(
'type' => 'text',
'value' => esc_attr__('Testimonial', 'bizpoint' ),
),
'settings' => 'testimonials',
'default' => array(
array(
'testi_title' => esc_html__( 'Adam Chen', 'bizpoint' ),
'testi_desc' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'bizpoint' ),
'testi_image' => get_template_directory_uri() . '/images/testi-1.jpg',
),
array(
'testi_title' => esc_html__( 'John Doe', 'bizpoint' ),
'testi_desc' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'bizpoint' ),
'testi_image' => get_template_directory_uri() . '/images/testi-2.jpg',
),
array(
'testi_title' => esc_html__( 'Alicia Taylor', 'bizpoint' ),
'testi_desc' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'bizpoint' ),
'testi_image' => get_template_directory_uri() . '/images/testi-3.jpg',
),
array(
'testi_title' => esc_html__( 'Adam Taylor', 'bizpoint' ),
'testi_desc' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'bizpoint' ),
'testi_image' => get_template_directory_uri() . '/images/testi-4.jpg',
),
),
'fields' => array(
'testi_image' => array(
'type' => 'image',
'label' => esc_html__( 'Image', 'bizpoint' ),
'default' => '',
),
'testi_title' => array(
'type' => 'text',
'label' => esc_html__( 'Title', 'bizpoint' ),
'default' => '',
),
'testi_desc' => array(
'type' => 'text',
'label' => esc_html__( 'Description', 'bizpoint' ),
'default' => '',
),
)
) );
// Premium banner
Bizpoint_Kirki::add_field( 'bizpoint_theme', array(
'type' => 'custom',
'settings' => 'hr_line_testi_3',
'section' => 'testimonials_section',
'default' => '
',
) );