{% if this.setting('locations__field__name') %}
{{location.name|escape}}
{% endif %}
{% if this.setting('locations__field__checkbox_selection') and location.filters_list %}
{# Show a list of filters assigned to the location. #}
{# Make sure the filter set as the icon is in bold. #}
{# Separate the filters with commas. #}
{% for location_key, location_filter in location.filters_list %}
{% if location_key == location.icon_name %}{% endif %}{{location_filter|e}}{% if location_key == location.icon_name %}{% endif %}{% if not loop.last %},{% endif %}
{% endfor %}
{% endif %}
{% if this.setting('locations__field__address') %}
{% set addressline = [] %}
{% if location.address1 %}
{% set addressline = addressline|merge([location.address1]) %}
{% endif %}
{% if location.address2 %}
{% set addressline = addressline|merge([location.address2]) %}
{% endif %}
{% if location.locality %}
{% set addressline = addressline|merge([location.locality]) %}
{% endif %}
{% if location.city %}
{% set addressline = addressline|merge([location.city]) %}
{% endif %}
{% if location.state %}
{% set addressline = addressline|merge([location.state]) %}
{% endif %}
{% if location.postcode %}
{% set addressline = addressline|merge([location.postcode]) %}
{% endif %}
{% if addressline|length %}
{{addressline|escape|join(', ')}}
{% endif %}
{% endif %}
{% if this.setting('locations__field__summary') and location.summary %}
{% set description = location.summary|escape %}
{{description}}
{% endif %}
{% if this.setting('locations__field__special_offers') and location.special_offers %}
{{location.special_offers|e}}
{% endif %}