{% load wagtailimages_tags wagtailsettings_tags %}
{% get_settings %}

{% if settings.core.SiteSettings.facebook_sharing %}
    <a href="http://www.facebook.com/sharer.php?u=http{% if request.is_secure %}s{%endif %}://{{ request.get_host }}{{ request.path }}" target="_blank" rel="noreferrer" class="call-to-action__item-share call-to-action__item-share--facebook {% if facebook %} call-to-action__item-share-with-image {% endif %}">
        {% image facebook width-30 class="call-to-action__item-share-img" %}
        <span class="call-to-action__item-share-title">Facebook</span>
    </a>
{% endif %}

{% if settings.core.SiteSettings.twitter_sharing %}
    <a href="https://twitter.com/share?url=http{% if request.is_secure %}s{%endif %}://{{ request.get_host }}{{ request.path }}" target="_blank" rel="noreferrer" class="call-to-action__item-share call-to-action__item-share--twitter {% if twitter %} call-to-action__item-share-with-image {% endif %}">
        {% image twitter width-30 class="call-to-action__item-share-img" %}
        <span class="call-to-action__item-share-title">Twitter</span>
    </a>
{% endif %}
