templates/frontend/_partials/_right_col_block-2.html.twig line 1

Open in your IDE?
  1. {% set meistgeleseneArtikel = meistgelesene_artikel() %}
  2. {% if meistgeleseneArtikel is defined %}
  3. <div class="mb-5">
  4. <h3 class="meistgelesen">Meistgelesen</h3>
  5. <ul class="list-group list-group-flush meistgelesen">
  6. {% for artikel in meistgeleseneArtikel %}
  7. <li class="list-group-item {{ cycle(['odd', 'even'], loop.index0) }}" data-click-url="{{ path('fe.artikel_detail', {'slug': artikel.slug}) }}">
  8. <span class="nr{{ loop.index <= 3 ? ' top' }}">0{{ loop.index }}</span><span class="titel">{{ artikel.titel }}</span>
  9. </li>
  10. {% endfor %}
  11. </ul>
  12. </div>
  13. {% endif %}
  14. {# Custom UW Ad Rectangle #}
  15. {% set customRectangle = content_uw_ad_rectangle() %}
  16. {% if customRectangle %}
  17. <div class="mb-4 text-center">
  18. {% if customRectangle.getClickUrl %}<a href="{{ customRectangle.getClickUrl }}" target="{{ customRectangle.getClickUrlTarget }}">{% endif %}
  19. <img class="img-fluid mb-2 lazy"
  20. data-src="{{ asset(customRectangle.getAssetFilepath) }}"
  21. alt="{{ customRectangle.getAlt }}"
  22. title="{{ customRectangle.getCaption }}">
  23. {% if customRectangle.getClickUrl %}</a>{% endif %}
  24. </div>
  25. {# <div class="mb-4">#}
  26. {# {% if customRectangle.getClickUrl %}<a href="{{ customRectangle.getClickUrl }}" target="{{ customRectangle.getClickUrlTarget }}">{% endif %}#}
  27. {# <img class="img-fluid w-100 mb-2 lazy" data-src="{{ asset(customRectangle.getAssetFilepath) }}" alt="{{ customRectangle.getAlt }}" title="{{ customRectangle.getCaption }}">#}
  28. {# {% if customRectangle.getClickUrl %}</a>{% endif %}#}
  29. {# </div>#}
  30. {% endif %}
  31. {# end #}