<?php
$testimonials .= '<div
	id="el-single-testimonial-' . $testimonial_id . '"
	class="swiper-slide el-single-testimonial-card el-single-testimonial-item-page-'. $page .'"
>';


/* Title. */
$testimonials .= '<div class="el-testimonial-desc">';
if ( ! empty( $title ) ) {
	$testimonials .= $title;
}

/* Content. */
$testimonials .= '<div class="el-testimonial-quote-text">';
$testimonials .= $quote_icon . $testimonial_content;
$testimonials .= $readmore_button . $quote_icon_closing;
$testimonials .= '</div>';
$testimonials .= '</div>';

/* Author Image. */
$testimonials .= '<div class="el-testimonial-meta">';
if ( isset( $author_image ) && '' !== $author_image ) {
	$testimonials .= $author_image;
}
/* Rating. */
if ( isset( $rating ) && '' !== $rating ) {
	$testimonials .= $rating;
}

/* Author Name */
if ( isset( $author_name ) && '' !== $author_name ) {
	$testimonials .= $author_name;
}

/* Author Meta */
$testimonials .= '<div class="el-testimonial-credit">';
if ( isset( $author_designation ) && '' !== $author_designation ) {
	$testimonials .= $author_designation;
}

if ( isset( $company_detail ) && '' !== $company_detail ) {
	$testimonials .= $company_detail;
}

$testimonials .= '</div></div></div>';
