templates/partials/sidebar.html.twig line 1

Open in your IDE?
  1. {% if services is defined %}
  2. <div class="ssb-container">
  3.     <ul>
  4.         <li class="header">SERVICES</li>
  5.         {% set activeServices = ['Instagram', 'Facebook', 'Tiktok', 'Youtube', 'Twitter', 'Twitch', 'Snapchat', 'Telegram'] %}
  6.         {% for service in services %}
  7.             {% if service.SocialNetwork in activeServices %}
  8.             <li>
  9.                 <a href="{{ path('service_details', {Text: service.Text, IDSN: service.IDSN}) }}" aria-label="{{service.Text}}">
  10.                     <img src="{{ asset('build/img/icons/services/'~(service.CssClass | lower)~'.png') }}" alt=""><span class="serviceTxt">{{ service.SocialNetwork }}</span>
  11.                 </a>
  12.             </li>
  13.             {% endif %}
  14.         {% endfor %}
  15.     </ul>
  16. </div>
  17. {% endif %}