{% if url is not defined %}
{% set url = content.routePath %}
{% endif %}
{% if content.title is defined and content.title is not empty %}
{% if content.title|split(' / ')[1] is defined and content.title|split(' / ')[1] is not null %}
{% set title = content.title|split(' / ')[1] %}
{% else %}
{% set title = content.title %}
{% endif %}
{% endif %}
<div class="sns-icons diflex">
<ul class="dflex aic">
<li>
Partager
</li>
<li>
{% if title is defined and title is not empty %}
<a class="dflex aic" href="https://www.facebook.com/sharer/sharer.php?u={{ sulu_content_path(url) }}&t={{ title }}" target="_blank" title="partager sur Facebook"><img src="/resources/img/facebook-icon-articles.svg" alt="Partager sur facebook" width="20" height="20"></a>
{% endif %}
</li>
<li>
{% if title is defined and title is not empty %}
<a class="dflex aic" href="https://www.linkedin.com/sharing/share-offsite/?url={{ sulu_content_path(url) }}&title={{ title }}&source={{ sulu_content_root_path() }}" target="_blank" title="partager sur linkedin"><img src="/resources/img/linkedin.svg" alt="Partager sur linkedin" width="22" height="22"></a>
{% endif %}
</li>
<li>
<button class="dflex aic print" title="Imprimer cette page" onclick="window.print()">
<img src="/resources/img/print-icon.svg" loading="lazy" alt="imprimer la page" width="24" height="24">
</button>
</li>
</ul>
</div>