{% set c = module.content %} {% set l = module.layout %} {% set vs = module.value_style %} {% set ls = module.label_style %} {% set anim = module.animation %} {% set bg = module.background %} {% set a = module.advanced %} {# Build CSS classes #} {% set module_classes = "stats-counter" %} {% set module_classes = module_classes ~ " stats-counter--align-" ~ l.alignment %} {% if l.show_dividers %} {% set module_classes = module_classes ~ " stats-counter--dividers" %} {% endif %} {% if anim.animate_on_scroll %} {% set module_classes = module_classes ~ " stats-counter--animate" %} {% endif %} {% if a.custom_class %} {% set module_classes = module_classes ~ " " ~ a.custom_class %} {% endif %}
{# Section Header #} {% if c.section_heading or c.section_subheading %}
{% if c.section_heading %}

{{ c.section_heading|escape }}

{% endif %} {% if c.section_subheading %}

{{ c.section_subheading|escape }}

{% endif %}
{% endif %} {# Stats Grid #}
{% for stat in c.stats %}
{% if stat.prefix %}{{ stat.prefix }}{% endif %} {{ stat.value }} {% if stat.suffix %}{{ stat.suffix }}{% endif %}
{{ stat.stat_label|escape }}
{% endfor %}
{% require_css %} {% end_require_css %} {# Animation script - only included when animation is enabled #} {% if anim.animate_on_scroll %} {% require_js position="footer" defer=true %} {% end_require_js %} {% endif %}