<?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-user">
            <div class="inner-avatar">
                <?php
                ?>
                <img src="<?php echo esc_url($testimonial['client_image']['url']); ?>"
                     alt="<?php esc_attr_e('avatar', 'gettree'); ?>">
            </div>
        </div>

        <div class="tfl-testimonial-text">
            <?php echo $widget_instance->parse_text_editor($testimonial['testimonial_text']); ?>
            <div class="tfl-info">
                <<?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>
        <i class="tfl-icon-quote"></i>
    </div>

</li>