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

// 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>';

/**
 * Rating
 */
if ( isset( $rating ) && '' !== $rating ) {
	$testimonials .= $rating;
}

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

/* Author Meta */
$testimonials .= '<div class="el-testimonial-credit">';

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

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

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

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