theme/templates/partials/elements/social.twig line 1

Open in your IDE?
  1. {% if get_config('linkedin_url','')|default %}
  2.     <a class="linkedin" target="_blank" href="{{ get_config('linkedin_url','') }}" aria-label="{{ 'go_to_website'|trans({'%sitename%': 'linkedin'}, 'custom')|html_entity_decode|raw}}">
  3.         <span aria-hidden="true" >{{ file_get_contents(asset('custom/social/footer-linkedin.svg', 'global'))|raw }}</span>
  4.     </a>
  5. {% endif %}
  6. {% if get_config('youtube_url','')|default %}
  7.     <a class="youtube" target="_blank" href="{{ get_config('youtube_url','') }}" aria-label="{{ 'go_to_website'|trans({'%sitename%': 'youtube'}, 'custom')|html_entity_decode|raw}}">
  8.         <span aria-hidden="true">{{ file_get_contents(asset('custom/social/footer-youtube.svg', 'global'))|raw }}</span>
  9.     </a>
  10. {% endif %}
  11. {% if get_config('instagram_url','')|default %}
  12.     <a class="instagram" target="_blank" href="{{ get_config('instagram_url','') }}" aria-label="{{ 'go_to_website'|trans({'%sitename%': 'instagram'}, 'custom')|html_entity_decode|raw}}">
  13.         <span aria-hidden="true">{{ file_get_contents(asset('custom/social/footer-instagram.svg', 'global'))|raw }}</span>
  14.     </a>
  15. {% endif %}
  16. {% if get_config('twitter_url','')|default %}
  17.     <a class="twitter" target="_blank" href="{{ get_config('twitter_url','') }}" aria-label="{{ 'go_to_website'|trans({'%sitename%': 'twitter'}, 'custom')|html_entity_decode|raw}}">
  18.         <span aria-hidden="true">{{ file_get_contents(asset('custom/social/footer-x.svg', 'global'))|raw }}</span>
  19.     </a>
  20. {% endif %}
  21. {% if get_config('facebook_url','')|default %}
  22.     <a class="facebook" target="_blank" href="{{ get_config('facebook_url','') }}" aria-label="{{ 'go_to_website'|trans({'%sitename%': 'facebook'}, 'custom')|html_entity_decode|raw}}">
  23.         <span aria-hidden="true"><i class="fab fa-facebook"></i></span>
  24.     </a>
  25. {% endif %}
  26. {% if get_config('pinterest_url','')|default %}
  27.     <a class="pinterest" target="_blank" href="{{ get_config('pinterest_url','') }}" aria-label="{{ 'go_to_website'|trans({'%sitename%': 'pintrest'}, 'custom')|html_entity_decode|raw}}">
  28.         <span><i class="fab fa-pinterest"></i></span>
  29.     </a>
  30. {% endif %}
  31. {% if get_config('tiktok','')|default %}
  32.     <a class="tiktok" target="_blank" href="{{ get_config('tiktok','') }}" aria-label="{{ 'go_to_website'|trans({'%sitename%': 'tiktoc'}, 'custom')|html_entity_decode|raw}}">
  33.         <span aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 448 512"><path d="M448 209.9a210.1 210.1 0 0 1 -122.8-39.3V349.4A162.6 162.6 0 1 1 185 188.3V278.2a74.6 74.6 0 1 0 52.2 71.2V0l88 0a121.2 121.2 0 0 0 1.9 22.2h0A122.2 122.2 0 0 0 381 102.4a121.4 121.4 0 0 0 67 20.1z"/></svg></span>
  34.     </a>
  35. {% endif %}