{% load wagtailcore_tags wagtailimages_tags core_tags wagtailsettings_tags i18n %}
{% get_settings %}
{% if settings.core.SiteSettings.facebook_sharing or settings.core.SiteSettings.twitter_sharing %}
<div class="social-share">
  <p class="social-share-label">{% trans "Share on:" %}</p>
  {% 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" class="call-to-action__item-share--yourtips call-to-action__item-share-with-image">
      {% image facebook width-30 %}
      Facebook
    </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" class="call-to-action__item-share--yourtips call-to-action__item-share-with-image">
      {% image twitter width-30 %}
      Twitter
    </a>
  {% endif %}
</div>
{% endif %}
