src/AppBundle/Resources/views/Areas/parts/appbundle-part-teaser-list/variant-default.html.twig line 1

Open in your IDE?
  1. {% import '@FoxHabbitBasis/Macro/wrap.html.twig' as wrap_macro %}
  2. {% if editmode %}
  3.     {{ pimcore_relations("teasers", {
  4.         "types": ["object"],
  5.         "subtypes": {
  6.             "object": ["object", "folder"],
  7.         },
  8.         "classes": ["Teaser"]
  9.     }) }}
  10. {% endif %}
  11. {% for teaser in app_teasers_get_list( pimcore_relations("teasers"), config.fetch.limit|default(null)) %}
  12.     {% include '@App/AreaIncludes/teaser/teaser.html.twig' with { teaser: teaser} %}
  13. {% endfor %}
  14. {% if config.load_more|default(false) %}
  15.     {{ wrap_macro.wrapperOpen( config.load_more, _context) }}
  16.         {{ 'Load more'|trans }}
  17.     {{ wrap_macro.wrapperClose( config.load_more) }}
  18. {% endif %}