templates/Magazine/archive.html.twig line 1

Open in your IDE?
  1. {% extends "Layout/default.html.twig" %}
  2. {% do pimcore_placeholder('magazine').set('true') %}
  3. {% block mainContainerStyling %}main-content--spacing{% endblock %}
  4. {% block navigation %}
  5.     {{ include('Navigation/magazine-navbar.html.twig') }}
  6. {% endblock %}
  7. {% block content %}
  8.     {#{% if editmode %}
  9.         <div class="editmode-box editmode-box--info">
  10.             <div class="editmode-box__header">
  11.                 Settings
  12.             </div>
  13.             <div>
  14.                 <label>
  15.                     Main Article
  16.                 </label>
  17.                 {{ pimcore_relation('mainArticle', {'types': ['object'], 'subtypes': ['object'], 'classes': ['BlogArticle']}) }}
  18.             </div>
  19.         </div>
  20.     {% endif %}#}
  21.     {{ include('Includes/main-title-block-editable.html.twig', {
  22.         'isCentered': true
  23.     }) }}
  24.     <div class="js-ajax-form position-relative pt-3"  data-ajax-form-submit-on-change="true">
  25.         {% do jsConfig().add('ajaxForm', true) %}
  26.         <div aria-live="polite">
  27.             <div class="container container-md">
  28.                 <form action="/404"
  29.                       data-action="{{ app.request.pathInfo }}"
  30.                       class="js-ajax-form__form content-block">
  31.                     <div class="timeline-wrapper">
  32.                         <div class="timeline">
  33.                             {% for item in archiveYears %}
  34.                                 <label class="timeline__item">
  35.                                     <input class="timeline__item-input"
  36.                                         {{ currentYear == item.articleDate.year ? 'checked' : '' }}
  37.                                            type="radio"
  38.                                            name="timeline"
  39.                                            value="{{ item.articleDate.year }}"
  40.                                            id="timeline">
  41.                                     <span class="timeline__item-circle" aria-hidden="true"></span>
  42.                                     <span class="timeline__item-text">{{ item.articleDate.year }}</span>
  43.                                 </label>
  44.                             {% endfor %}
  45.                         </div>
  46.                         <span class="timeline__scroll-indicator icon icon-arrow-double-down icon-rotate-270" aria-hidden="true"></span>
  47.                     </div>
  48.                 </form>
  49.                 <div class="js-ajax-form__notifications mb-3" hidden></div>
  50.                 <div class="js-ajax-form__error-area mb-3" hidden>
  51.                     <button class="js-ajax-form__retry btn btn-info ml-2">{{ 'ajax.Retry'|trans }}</button>
  52.                 </div>
  53.             </div>
  54.             <div class="container container-md">
  55.                 {{ include('Includes/loading-overlay.html.twig', {
  56.                     styleModifier: 'js-ajax-form__loading'
  57.                 }) }}
  58.                 <div class="js-ajax-form__result mt-5">
  59.                     {{ include('Magazine/Includes/archiveContainer.html.twig', {
  60.                         paginator: paginator,
  61.                         currentYear: currentYear
  62.                     }) }}
  63.                 </div>
  64.             </div>
  65.         </div>
  66.     </div>
  67. {% endblock %}
  68.     {% block javascripts %}
  69.         {% if not app.request.get('onlyInlineCss') %}
  70.         {{ include('Layout/includes/encore.html.twig', {
  71.             'staticDebugMode': staticDebugMode,
  72.             'file': 'js/magazine'
  73.         }) }}
  74.         {% endif %}
  75.     {% endblock %}