{% set c = module.content %} {% set l = module.layout %} {% set qs = module.quote_style %} {% set as = module.author_style %} {% set cs = module.card_style %} {% set carousel = module.carousel_settings %} {% set colors = module.colors %} {% set spacing = module.spacing %} {% set a = module.advanced %} {# Quote font-size map — the theme has no --text-* scale, so resolve in HubL. #} {% set quote_sizes = {"base": "1rem", "lg": "1.125rem", "xl": "1.25rem", "2xl": "1.5rem"} %} {# Build CSS classes #} {% set module_classes = "testimonial" %} {% set module_classes = module_classes ~ " testimonial--" ~ c.layout_type %} {% set module_classes = module_classes ~ " testimonial--align-" ~ l.text_alignment %} {% if qs.show_quote_marks %} {% set module_classes = module_classes ~ " testimonial--quotes-" ~ qs.quote_mark_style %} {% endif %} {% if a.custom_class %} {% set module_classes = module_classes ~ " " ~ a.custom_class %} {% endif %}
{# Section Header #} {% if c.section_heading %}

{{ c.section_heading|escape }}

{% endif %} {# Testimonials Container #}
{% for item in c.testimonials %}
{# Quote Mark (decorative) #} {% if qs.show_quote_marks %} {% endif %} {# Star Rating #} {% if item.rating > 0 %} {% endif %} {# Quote #}
{{ item.quote }}
{# Author #}
{% if item.author_photo and item.author_photo.src %} {% set photo_src = item.author_photo.src %} {% if '../../images/' in photo_src %} {% set photo_src = get_asset_url(photo_src) %} {% endif %} {{ item.author_name|escape }} {% endif %}
{{ item.author_name|escape }} {% if item.author_title or item.author_company %} {% if item.author_title %}{{ item.author_title|escape }}{% endif %} {% if item.author_title and item.author_company %}, {% endif %} {% if item.author_company %}{{ item.author_company|escape }}{% endif %} {% endif %}
{% if item.company_logo and item.company_logo.src %} {% set logo_src = item.company_logo.src %} {% if '../../images/' in logo_src %} {% set logo_src = get_asset_url(logo_src) %} {% endif %} {% endif %}
{% endfor %}
{# Carousel Controls #} {% if c.layout_type == "carousel" and c.testimonials|length > 1 %} {% if carousel.show_arrows %} {% endif %} {% if carousel.show_dots %}
{% for item in c.testimonials %} {% endfor %}
{% endif %} {% endif %}
{% require_css %} {% end_require_css %} {# Carousel script - only included for carousel layout #} {% if c.layout_type == "carousel" and c.testimonials|length > 1 %} {% require_js position="footer" defer=true %} {% end_require_js %} {% endif %}