social_links.html 609 B

123456789101112131415161718
  1. {% if SOCIAL %}
  2. {% if not SOCIAL_PROFILE_LABEL %}
  3. {% set SOCIAL_PROFILE_LABEL ='Contact' %}
  4. {% endif %}
  5. <h4>{{ SOCIAL_PROFILE_LABEL }}</h4>
  6. {% for name, url in SOCIAL %}
  7. {% set link_title = 'My ' + name + ' Profile' %}
  8. {% set link_icon = name.lower() %}
  9. {% if name.lower() == 'email' %}
  10. {% set link_title = 'My ' + name + ' Address' %}
  11. {% set link_icon = 'envelope' %}
  12. {% endif %}
  13. <a href="{{url|e}}" title="{{link_title}}" class="sidebar-social-links" target="_blank">
  14. <i class="fa fa-{{link_icon}} sidebar-social-links"></i></a>
  15. {% endfor %}
  16. {% endif %}