templates/Default/homepage/homepage_partners.html.twig line 1

Open in your IDE?
  1. {%  if not (('homepage.partner.title' | trans) starts with '//') %}
  2. <section class="homepage partners">
  3.     <div class="container">
  4.         <h1>{{ 'homepage.partner.title' | trans }}</h1>
  5.         <div class="imgs">
  6.             {% for p in partners %}
  7.                 {% set img = 'bundles/static/uploads/homepage/partners/' ~ p.img %}
  8.                 {% if p.url %}
  9.                         <a href="{{ p.url }}"><img alt="{{ p.alt }}" src="{{asset(img)}}"/></a>
  10.                 {% else %}
  11.                         <img alt="{{ p.alt }}" src="{{asset(img)}}"/>
  12.                 {% endif %}
  13.             {% endfor %}
  14.             <div class="more">{{ 'homepage.partner.more'|trans }}</div>
  15.         </div>
  16.     </div>
  17. </section>
  18. {% endif %}