src/StartPlatz/Bundle/AlphaBundle/Resources/views/Benefit/StartupTools__feed.twig line 1

Open in your IDE?
  1. {# this page is related to: dev.startplatz.de/x/startup-tools/home #}
  2. {% set currentPath = app.request.get('_route') %}
  3. <div id="posts">
  4.     {% for batch in items|batch(6) %}
  5.         <div class="item">
  6.             <div class="row justify-content-center mx-auto">
  7.                 {% for item in batch %}
  8.                     <div class="col-12 col-md-6 col-lg-4">
  9.                         {% include '@StartPlatzAlphaBundle/Benefit/StartupTools__widget.twig' %}
  10.                     </div>
  11.                 {% endfor %}
  12.             </div>
  13.         </div>
  14.     {% endfor %}
  15. </div>
  16. {% if maxPages is defined and maxPages > 1 %}
  17.     <div id="pagination">
  18.         <a href="{{ path(currentPath, {page: thisPage} ) }}">{{ thisPage }}</a>
  19.         {% if  thisPage != maxPages %}
  20.             <a href="{{ path( currentPath, {page: thisPage+1 <= maxPages ? thisPage+1 : thisPage} + templateVars) }}" class="next">ยป</a>
  21.         {% endif %}
  22.     </div>
  23. {% else %}
  24.     {% set maxPages = 100 %}
  25. {% endif %}