{%  set rating_template %}
     <div class="uc_stars">
        {% if item.rating == "5" %} <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{full_html|raw}}</div> {% endif %}
        {% if item.rating == "4.5" %} <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{half_html|raw}}</div> {% endif %}
        {% if item.rating == "4" %} <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{empty_html|raw}}</div> {% endif %}
        {% if item.rating == "3.5" %} <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{half_html|raw}}</div> <div class="ue_rate">{{empty_html|raw}}</div> {% endif %}
        {% if item.rating == "3" %} <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{empty_html|raw}}</div> <div class="ue_rate">{{empty_html|raw}}</div> {% endif %}
        {% if item.rating == "2.5" %} <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{half_html|raw}}</div> <div class="ue_rate">{{empty_html|raw}}</div> <div class="ue_rate">{{empty_html|raw}}</div> {% endif %}
        {% if item.rating == "2" %} <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{empty_html|raw}}</div> <div class="ue_rate">{{empty_html|raw}}</div> <div class="ue_rate">{{empty_html|raw}}</div> {% endif %}
        {% if item.rating == "1.5" %} <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{half_html|raw}}</div> <div class="ue_rate">{{empty_html|raw}}</div> <div class="ue_rate">{{empty_html|raw}}</div> <div class="ue_rate">{{empty_html|raw}}</div> {% endif %}
        {% if item.rating == "1" %} <div class="ue_rate">{{full_html|raw}}</div> <div class="ue_rate">{{empty_html|raw}}</div> <div class="ue_rate">{{empty_html|raw}}</div> <div class="ue_rate">{{empty_html|raw}}</div> <div class="ue_rate">{{empty_html|raw}}</div> {% endif %}
     </div>
{% endset %}

<div class="ue_testimonial_item ue-item ue_grid_item {{item.item_repeater_class}}">
  
      {% if show_image == "true" %}
         <div class="ue-image-wrapper">
             <img class="ue-image" src="{{item.image}}" {{item.image_attributes|ucsafe|raw}} alt="{{item.image_alt}}">
         </div>
      {% endif %}
  
	  <div class="uc_quote_info">
        
              {% if show_author == "true" and author_position == "top" %}
                {% if show_author_divider == "true" and divider_position == "top" %}<div class="author_divider"></div>{% endif %}
				<div class="uc_author">
                   {% if show_author_image == "true" %}
				     <img class="ue-author-image" src="{{item.author_image}}" alt="{{item.author_image_alt}}"/>
                   {% endif %}
                  
				   <div class="uc_author_info">
						{% if show_author_name == "true" %}{% if item.author_title_link is not empty %}<a href="{{item.author_title_link}}" {{item.author_title_link_html_attributes|ucsafe|raw}}>{% endif %}<div class="ue_author_name">{{item.author_name|ucsafe|raw}}</div>{% if item.author_title_link is not empty %}</a>{% endif %}{% endif %}
					    {% if show_rating == "true" and rating_position == "author_name" %}{{rating_template}}{% endif %}	
                        {% if show_subtitle == "true" %}<div class="ue_subtitle">{{item.subtitle|raw}}</div>{% endif %}
                        {% if show_rating == "true" and rating_position == "author_subtitle" %}{{rating_template}}{% endif %}
				   </div>
				</div>
                {% if show_author_divider == "true" and divider_position == "bottom" %}<div class="author_divider"></div>{% endif %}
              {% endif %}
              
              {% if show_rating == "true" and rating_position == "below_image" %}{{rating_template}}{% endif %}
              
              {% if show_title == "true" %}{% if item.title_link is not empty %}<a href="{{item.title_link}}" {{item.title_link_html_attributes|raw}}>{% endif %}<div class="ue_title">{{item.title|raw}}</div>{% if item.title_link is not empty %}</a>{% endif %}{% endif %}
           
              {% if show_text == "true" %}<div class="ue-text">{{item.text|raw}}</div>{% endif %}
              
              {% if show_rating == "true" and rating_position == "below_title" %}{{rating_template}}{% endif %}
                            
              {% if show_author == "true" and author_position == "end" %}
        
                {% if show_author_divider == "true" and divider_position == "top" %}<div class="author_divider"></div>{% endif %}
        
				<div class="uc_author">
                   {% if show_author_image == "true" %}
				     <img class="ue-author-image" src="{{item.author_image}}" alt="{{item.author_image_alt}}"/>
                   {% endif %}
                  
				   <div class="uc_author_info">
						{% if show_author_name == "true" %}{% if item.author_title_link is not empty %}<a href="{{item.author_title_link}}" {{item.author_title_link_html_attributes|ucsafe|raw}}>{% endif %}<div class="ue_author_name">{{item.author_name|ucsafe|raw}}</div>{% if item.author_title_link is not empty %}</a>{% endif %}{% endif %}
					    {% if show_rating == "true" and rating_position == "author_name" %}{{rating_template}}{% endif %}	
                        {% if show_subtitle == "true" %}<div class="ue_subtitle">{{item.subtitle|raw}}</div>{% endif %}
                        {% if show_rating == "true" and rating_position == "author_subtitle" %}{{rating_template}}{% endif %}
				   </div>
				</div>
        
                {% if show_author_divider == "true" and divider_position == "bottom" %}<div class="author_divider"></div>{% endif %}
        
              {% endif %}

              {% if show_icon == "true" %}
                 <div><div class="ue-icon">{{icon_html|raw}}</div></div>
              {% endif %}

	</div>
</div>