{% load wagtailimages_tags %}

{% if social_media %}
    {% for site in social_media %}
        <a href="http://{{ site.value.link }}" class="call-to-action__item-share call-to-action__item-share--footer {% if site.value.image %} call-to-action__item-share-with-image {% endif %}" target="_blank" rel="noreferrer">
            {% image site.value.image width-30 class="call-to-action__item-share-img" %}
              <span class="call-to-action__item-share-title">{{ site.value.title }}</span>
        </a>
    {% endfor %}
{% endif %}
