<div class="eltdf-testimonials-holder clearfix <?php echo esc_attr($holder_classes); ?>">
    <div class="eltdf-testimonials eltdf-owl-slider" <?php echo theaisle_elated_get_inline_attrs( $data_attr ) ?>>

        <?php if ( $query_results->have_posts() ):
            while ( $query_results->have_posts() ) : $query_results->the_post();
                $title    = get_post_meta( get_the_ID(), 'eltdf_testimonial_title', true );
                $text     = get_post_meta( get_the_ID(), 'eltdf_testimonial_text', true );
                $author   = get_post_meta( get_the_ID(), 'eltdf_testimonial_author', true );
                $position = get_post_meta( get_the_ID(), 'eltdf_testimonial_author_position', true );
                $current_id = get_the_ID();
        ?>

                <div class="eltdf-testimonial-content" id="eltdf-testimonials-<?php echo esc_attr( $current_id ) ?>" <?php theaisle_elated_inline_style( $box_styles ); ?>>
                    <div class="eltdf-testimonial-text-holder">
                        <?php if ( has_post_thumbnail() ) { ?>
                            <div class="eltdf-testimonial-image">
                                <?php echo get_the_post_thumbnail( get_the_ID(), array( 92, 92 ) ); ?>
                                <span class="eltdf-testimonial-mark">”</span>
                            </div>
                        <?php } ?>
                        <?php if ( ! empty( $author ) ) { ?>
                            <div class="eltdf-testimonials-author-holder clearfix">
                                <h3 class="eltdf-testimonial-author"><?php echo esc_html( $author ); ?></h3>
                                <?php if ( ! empty( $position ) ) { ?>
                                    <span class="eltdf-testimonials-author-job"><?php echo esc_html( $position ); ?></span>
                                <?php } ?>
                            </div>
                        <?php } ?>
                        <?php if ( ! empty( $text ) ) { ?>
                            <p class="eltdf-testimonial-text"><?php echo esc_html( $text ); ?></p>
                        <?php } ?>
                    </div>
                </div>

        <?php
            endwhile;
        else:
            echo esc_html__( 'Sorry, no posts matched your criteria.', 'theaisle-core' );
        endif;

        wp_reset_postdata();

        ?>
    </div>
</div>