vendor/pimcore/portal-engine/src/Resources/views/Areas/portal-engine-teasers/view.html.twig line 1

Open in your IDE?
  1. {% set teasers = pimcore_block("teasers", {manual: true}).start() %}
  2. <div class="row vertical-gutter {{ editmode ? "my-3" }}">
  3.     {% for teaser in pimcore_iterate_block(teasers) %}
  4.         {% do teasers.blockConstruct() %}
  5.         {% if editmode %}
  6.             <div class="col-md-3 vertical-gutter__item">
  7.                 {% do teasers.blockStart() %}
  8.                 {{ include("@PimcorePortalEngine/Areas/portal-engine-teasers/item.html.twig") }}
  9.                 {% do teasers.blockEnd() %}
  10.             </div>
  11.         {% else %}
  12.             {% do teasers.blockStart() %}
  13.             {% set size = "2" %}
  14.             {% if pimcore_select("size").data == "big" %}
  15.                 {% set size = "4" %}
  16.             {% endif %}
  17.             <div class="col-md-{{ size }} vertical-gutter__item">
  18.                 {{ include("@PimcorePortalEngine/Areas/portal-engine-teasers/item.html.twig") }}
  19.             </div>
  20.             {% do teasers.blockEnd() %}
  21.         {% endif %}
  22.         {% do teasers.blockDestruct() %}
  23.     {% endfor %}
  24. </div>
  25. {% do teasers.end() %}