{% if show_dummy_data == true %}
    {% set contact = {
        'pagedata': {
            'Addresses': [{
                'Location': {'value': 'City Centre Pharmacy'},
                'Street Address': {'value': '123 High Street'},
                'Street Address 2': {'value': ''},
                'City': {'value': 'London'},
                'Country': {'value': 'United Kingdom'},
                'Postcode': {'value': 'EC1A 1AA'},
                'Telephone Number': {'value': '020 7123 4567'},
                'Email Address': {'value': 'info@citypharmacy.co.uk'}
            }]
        }
    } %}
    {% set hide_phone = false %}
    {% set hide_email = false %}
{% endif %}

{% 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 %}
