Files
@ 2f3e3e0539d9
Branch filter:
Location: CSY/sefm2020/themes/bootstrap3/templates/includes/sidebar/social.html - annotation
2f3e3e0539d9
1.0 KiB
text/html
change the website link to the active url.
913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 913a26cb1708 | {% if SOCIAL %}
{% from 'includes/sidebar/macros.jinja' import title %}
<!-- Sidebar/Social -->
<li class="list-group-item">
<h4>{{ title(_('Social'), DISABLE_SIDEBAR_TITLE_ICONS) }}</h4>
<ul class="list-group" id="social">
{% for s in SOCIAL %}
{% if s[2] %}
{% set name_sanitized = s[2]|lower|replace('+','-plus')|replace(' ','-') %}
{% else %}
{% set name_sanitized = s[0]|lower|replace('+','-plus')|replace(' ','-') %}
{% endif %}
{% if name_sanitized in ['flickr', 'slideshare', 'instagram', 'spotify', 'stack-overflow', 'weibo', 'line-chart', 'home', 'user', 'users', 'envelope', 'envelope-o', 'stack-exchange', 'hacker-news', 'gitlab', 'vk'] %}
{% set iconattributes = '"fa fa-' ~ name_sanitized ~ ' fa-lg"' %}
{% else %}
{% set iconattributes = '"fa fa-' ~ name_sanitized ~ '-square fa-lg"' %}
{% endif %}
<li class="list-group-item"><a href="{{ s[1] }}"><i class={{ iconattributes }}></i> {{ s[0] }}</a></li>
{% endfor %}
</ul>
</li>
<!-- End Sidebar/Social -->
{% endif %}
|