templates/default/newslist.html.twig line 1

Open in your IDE?
  1. {% set clubPage = is_clubsite(editmode, document) %}
  2. {% set _layout = clubPage ? 'seikoclub/layout.html.twig' : '@CoreShopFrontend/layout.html.twig' %}
  3. {% extends _layout %}
  4. {% block content %}
  5.     <div class="container">
  6.         <div class="row news-row d-flex justify-content-between">
  7.             <div class="select-wrapper">
  8.                 <label id="selectLabel" for="selectSelect">
  9.                     <img src="{{ asset('themes/frontend/images/filter.svg') }}" alt="">
  10.                 </label>
  11.                 <select class="styled-select form-control site-reload" id="selectSelect" name="tag-filter">
  12.                     <option value="">{% if selectedTag is null %}Címke{% else %}Címke törlése{% endif %}</option>
  13.                     {% for tag in tagList %}
  14.                         <option
  15.                             value="{{ tag.getName() }}"{% if selectedTag is not null and selectedTag.getId() == tag.getId() %} selected="selected"{% endif %}>{{ tag.getName() }}</option>
  16.                     {% endfor %}
  17.                 </select>
  18.             </div>
  19.             <div class="tag-buttons btn-group">
  20.                 <a class="btn btn-primary{% if selectedCategory is null %} tag-button-active {% endif %}"
  21.                    href="{{ document.getFullPath() }}">{{ 'Aktualitások' | upper }}</a>
  22.                 {% for category in categoryList %}
  23.                     {% if not category.hidden %}
  24.                         <a class="btn btn-primary{% if category == selectedCategory %} tag-button-active {% endif %}"
  25.                            href="{{ pimcore_url({object: category}, null, true) }}">{{ category.name | upper }}
  26.                         </a>
  27.                     {% endif %}
  28.                 {% endfor %}
  29.             </div>
  30.             <div class="d-flex justify-content-between align-items-center" id="newsSelect">
  31.                 <div class="select-wrapper date-select">
  32.                     <label id="selectLabel">
  33.                         <img src="{{ asset("/themes/frontend/images/up-arrow.png") }}" alt="">
  34.                     </label>
  35.                     <select name="order" class="styled-select form-control site-reload" id="selectSelect">
  36.                         <option {% if order == 'asc' %} selected="selected" {% endif %} value="asc">Növekvő</option>
  37.                         <option {% if order == 'desc' %} selected="selected" {% endif %} value="desc">Csökkenő</option>
  38.                     </select>
  39.                 </div>
  40.                 <div class="d-flex justify-content-end align-items-center" id="select-outside-wrapper">
  41.                     <select id="mySelect" class="styled-select form-control site-reload" name="perPage">
  42.                         <option value="">{{ perPage }} Bejegyzés / oldal</option>
  43.                         {% for number in perPageAllowed %}
  44.                             <option value="{{ number }}">{{ number }}</option>
  45.                         {% endfor %}
  46.                     </select>
  47.                 </div>
  48.             </div>
  49.             <div class="tag-buttons-mobile btn-group">
  50.                 <a class="col-12 col-sm-3 col-xs-6 btn btn-primary{% if selectedCategory is null %} tag-button-active {% endif %}"
  51.                    href="{{ document.getFullPath() }}">{{ 'Aktualitások' | upper }}</a>
  52.                 {% for category in categoryList %}
  53.                     {% if not category.hidden %}
  54.                         <a class="col-12 col-sm-3 col-xs-6 btn btn-primary{% if category == selectedCategory %} active{% endif %}"
  55.                            href="{{ pimcore_url({object: category}, null, true) }}">{{ category.name | upper }}
  56.                         </a>
  57.                     {% endif %}
  58.                 {% endfor %}
  59.             </div>
  60.         </div>
  61.     </div>
  62.     <div class="container product-container">
  63.         <div class="row d-flex">
  64.             {% for news in paginator.items %}
  65.                 {% include 'default/newslistitem.html.twig' with {news: news} only %}
  66.             {% endfor %}
  67.         </div>
  68.         <div class="col-12 pb-5 text-center">
  69.             {% include 'default/paginator.html.twig' with {
  70.                 paginator: paginator,
  71.                 category: null
  72.             } only %}
  73.         </div>
  74.     </div>
  75. {% endblock %}