{% if Settings.overridekey is defined and Settings.overridekey is not empty %}
{% set overridekey = Settings.overridekey %}
{% endif %}
{% if overridekey is defined and overridekey is not empty and file_exists('../templates/override/' ~ overridekey ~ '/webshop/share.html.twig') %}
{% include 'override/' ~ overridekey ~ '/webshop/share.html.twig' %}
{% elseif file_exists('../templates/override/webshop/share.html.twig') %}
{% include 'override/webshop/share.html.twig' %}
{% else %}
{% trans_default_domain 'webshop' %}
{% set share_url = url(app.request.attributes.get('_route')) %}
{% if OriginalProduct is defined %}
{% if Settings.baseuri is empty %}
{% set site_baseuri = '' %}
{% else %}
{% set site_baseuri = Settings.baseuri | replace({'/': ''}) ~ '/' %}
{% endif %}
{% set share_url = (WebshopSettings is defined and WebshopSettings.uri ? url('homepage') ~ WebshopSettings.uri : url('homepage') ~ site_baseuri ) ~ (Category.category is defined ? Category.category.uri : Category.uri) ~ '/' ~ (OriginalProduct is defined ? OriginalProduct.slug : Product.slug) %}
{% endif %}
<div class="share">
<li><h6 class="dropdown-header">{{'Delen via'|trans({}, 'webshop', app.request.locale)}}</h6></li>
<!-- Sharingbutton WhatsApp -->
<li>
<a class="dropdown-item resp-sharing-button__link" href="whatsapp://send?text={{Product.label}}%20{{share_url}}" target="_blank" aria-label="">
<div class="resp-sharing-button resp-sharing-button--whatsapp resp-sharing-button--small">
<div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
<i class="fab fa-fw fa-whatsapp"></i> WhatsApp
</div>
</div>
</a>
</li>
<!-- Sharingbutton Telegram -->
<li>
<a class="dropdown-item resp-sharing-button__link" href="https://telegram.me/share/url?text={{Product.label}}&url={{share_url}}" target="_blank" aria-label="">
<div class="resp-sharing-button resp-sharing-button--telegram resp-sharing-button--small">
<div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
<i class="fab fa-fw fa-telegram-plane"></i> Telegram
</div>
</div>
</a>
</li>
<!-- Sharingbutton Facebook -->
<li>
<a class="dropdown-item resp-sharing-button__link" href="https://facebook.com/sharer/sharer.php?u={{share_url}}" target="_blank" aria-label="">
<div class="resp-sharing-button resp-sharing-button--facebook resp-sharing-button--small">
<div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
<i class="fab fa-fw fa-facebook"></i> Facebook
</div>
</div>
</a>
</li>
<!-- Sharingbutton Twitter -->
<li>
<a class="dropdown-item resp-sharing-button__link" href="https://twitter.com/intent/tweet/?text={{Product.label}}&url={{share_url}}" target="_blank" aria-label="">
<div class="resp-sharing-button resp-sharing-button--twitter resp-sharing-button--small">
<div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
<i class="fab fa-fw fa-twitter"></i> Twitter
</div>
</div>
</a>
</li>
<!-- Sharingbutton E-Mail -->
<li>
<a class="dropdown-item resp-sharing-button__link" href="mailto:?subject={{Product.label}}&body={{share_url}}" target="_self" aria-label="">
<div class="resp-sharing-button resp-sharing-button--email resp-sharing-button--small">
<div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
<i class="fa fa-fw fa-at"></i> E-mail
</div>
</div>
</a>
</li>
</div>
{% endif %}