<?php
/**
 * Testimonials item template
 */
$settings  = $this->get_settings();
$stars     = $this->render_stars();
$title_tag = ! empty( $settings['item_title_tag'] ) ? $settings['item_title_tag'] : 'h5';

?><div class="jet-testimonials__item">
	<div class="jet-testimonials__item-inner">
		<div class="jet-testimonials__content"><?php
			echo $this->_get_testimonials_image();
			echo $this->_render_icon( 'item_icon', '<div class="jet-testimonials__icon"><div class="jet-testimonials__icon-inner">%s</div></div>', '', false );
			echo $this->_loop_item( array( 'item_title' ), '<' . $title_tag . ' class="jet-testimonials__title">%s</' . $title_tag . '>' );
			echo $this->_loop_item( array( 'item_comment' ), '<div class="jet-testimonials__comment">%s</div>' );
			echo $this->_get_testimonials_name();
			echo $this->_loop_item( array( 'item_position' ), '<div class="jet-testimonials__position"><span>%s</span></div>' );
			echo $this->_loop_item( array( 'item_date' ), '<div class="jet-testimonials__date"><span>%s</span></div>' );
			echo $this->_loop_item( array( 'item_rating' ), '<div class="jet-testimonials__rating" data-rating="%s">' . $stars . '</div>' );
		?></div>
	</div>
</div>

