{% set address = contact.pagedata['Addresses'][0] %}

{% if address['Location']['value'] is not empty %}
    <span>{{ address['Location']['value'] }}</span>
{% endif %}

{% if address['Street Address']['value'] is not empty %}
    <span>{{ address['Street Address']['value'] }}</span>
{% endif %}

{% if address['Street Address 2']['value'] is not empty %}
    <span>{{ address['Street Address 2']['value']}}</span>
{% endif %}

{% if address['City']['value'] is not empty %}
    <span>{{ address['City']['value'] }}</span>
{% endif %}

{% if address['Country']['value'] is not empty %}
    <span>{{ address['Country']['value'] }}</span>
{% endif %}

{% if address['Postcode']['value'] is not empty %}
    <span class="noSeparator">{{ address['Postcode']['value'] }}</span>
{% endif %}

{% if address['Telephone Number']['value'] is not empty and hide_phone is empty %}
    <span class="spaced noSeparator">Tel: {{ address['Telephone Number']['value'] }}</span>
{% endif %}

{% if address['Email Address']['value'] is not empty and hide_email is empty %}
    <span class="spaced noSeparator">
        <a
                class="emailLink"
                href="mailto:{{ address['Email Address']['value'] }}"
                onClick="ga('send', 'event', 'Email Enquiry', 'Footer Email');"
        >
            <span class="fullEmail">{{ address['Email Address']['value'] }}</span>
            {#<span class="shortLink">Email Us</span>#}
        </a>
   </span>
{% endif %}
