templates/recipe/listing.html.twig line 1

Open in your IDE?
  1. {#
  2. project: Pimcore - Schutzverband Nuernberg Rostbratwuerste
  3. User: erikb
  4. Year: 2022
  5. #}
  6. {% extends 'layouts/default.html.twig' %}
  7. {% block content %}
  8.     {% include 'navigation/breadcrumb.html.twig' %}
  9.     {% include 'includes/areabrick.html.twig' with {'id': 'sections-top', 'controlsAlign': 'top' } %}
  10.     {% if filter is not empty %}
  11.     <div class="section section--background section--bgc-0 section--filter ">
  12.         <div class="grid grid--t100 grid--hc">
  13.             <div class="grid__container">
  14.                 <div class="grid__column">
  15.                     <div class="filter">
  16.                         <a href="{{ path('recipe_not_filtered') }}" class="filter__item {% if 'default' == filterActive %}filter__item--active{% endif %}">{{ 'filter.value.all'|trans }}</a>
  17.                         {% for filterValue in filter %}
  18.                         <a href="{{ path('recipe_filtered_by_key', {key: filterValue.key }) }}" class="filter__item {% if filterValue.key == filterActive %}filter__item--active{% endif %}">{{ ( 'filter.value.' ~ filterValue.key ) | trans }}</a>
  19.                         {% endfor %}
  20.                     </div>
  21.                 </div>
  22.             </div>
  23.         </div>
  24.     </div>
  25.     {% endif %}
  26.     {% if listingRows is not empty %}
  27.     <div class="section section--content">
  28.         {% for row in listingRows %}
  29.             {{ row|raw }}
  30.         {% endfor %}
  31.     </div>
  32.     {% endif %}
  33.     {% include 'includes/areabrick.html.twig' with {'id': 'sections-bottom', 'controlsAlign': 'top' } %}
  34. {% endblock content %}