<?php
/**
 * Content - Testimonials Slider Template
 *
 * This template can be overridden by copying it to mytheme/addons-for-elementor/addons/testimonials-slider/content.php
 *
 */

use Elementor\Utils;

if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly
}
?>

<li class="tfl-slide tfl-testimonial-wrapper">
    <div class="tfl-testimonial">
        <div class="tfl-testimonial-inner">
            <div class="tfl-testimonial-text">
                <div class="avatar">
                    <img src="<?php echo $testimonial['client_image']['url']; ?>" alt="avatar">
                    <i class="tfl-icon-quote"></i>
                </div>
                <div class="tfl-title">
                    <<?php echo Utils::validate_html_tag($settings['title_tag']); ?> class="tfl-author-name"><?php echo esc_html($testimonial['client_name']); ?></<?php echo Utils::validate_html_tag($settings['title_tag']); ?>>
                    <div class="tfl-author-credentials"><?php echo wp_kses_post($testimonial['credentials']); ?></div>
                </div>
            </div>

            <div class="tfl-text">
                <?php echo $widget_instance->parse_text_editor($testimonial['testimonial_text']); ?>
            </div>
        </div>
    </div>
</li>