templates/Magazine/topic.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--no-hero{% 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.                     Blog Theme
  16.                 </label>
  17.                 {{ pimcore_relation('blogTheme', {'types': ['object'], 'subtypes': ['object'], 'classes': ['BlogTheme']}) }}
  18.             </div>
  19.             <div>
  20.                 <label>
  21.                     Main Article
  22.                 </label>
  23.                 {{ pimcore_relation('mainArticle', {'types': ['object'], 'subtypes': ['object'], 'classes': ['BlogArticle']}) }}
  24.             </div>
  25.         </div>
  26.     {% endif %}
  27.     {% if not pimcore_relation('mainArticle').empty %}
  28.         {{ include('Magazine/Includes/heroTopic.html.twig', {
  29.             'article': pimcore_relation('mainArticle').element
  30.         }) }}
  31.     {% endif %}
  32.     {{ include('Includes/main-title-block-editable.html.twig', {
  33.         'isCentered': true
  34.     }) }}
  35.     {{ include('Includes/areablock.html.twig') }}
  36.     <div class="js-ajax-form position-relative">
  37.         {% do jsConfig().add('ajaxForm', true) %}
  38.         <div aria-live="polite">
  39.             <div class="container container-md">
  40.                 <form action="/404"
  41.                       data-action="{{ app.request.pathInfo }}"
  42.                       class="js-ajax-form__form content-block">
  43.                 </form>
  44.                 <div class="js-ajax-form__notifications mb-3" hidden></div>
  45.                 <div class="js-ajax-form__error-area mb-3" hidden>
  46.                     <button class="js-ajax-form__retry btn btn-info ml-2">Retry</button>
  47.                 </div>
  48.             </div>
  49.             <div class="container container-md">
  50.                 {{ include('Includes/loading-overlay.html.twig', {styleModifier: 'js-ajax-form__loading'}) }}
  51.                 <div class="js-ajax-form__result mt-5">
  52.                     {{ include('Magazine/Includes/articleTeaserGrid.html.twig', {'paginator': paginator})}}
  53.                 </div>
  54.             </div>
  55.         </div>
  56.     </div>
  57.     {{ include('Includes/areablock.html.twig', {'areaName': 'bottom'}) }}
  58. {% endblock %}
  59. {% block regionSlide %}
  60.     <aside class="content-block">
  61.         {{ include('Magazine/Includes/subscribe.html.twig') }}
  62.         {% if not document.property('hideRegionSlide') %}
  63.             {{ include('Includes/regionSlide.html.twig') }}
  64.         {% endif %}
  65.     </aside>
  66. {% endblock %}
  67.     {% block javascripts %}
  68.         {% if not app.request.get('onlyInlineCss') %}
  69.         {{ include('Layout/includes/encore.html.twig', {
  70.             'staticDebugMode': staticDebugMode,
  71.             'file': 'js/magazine'
  72.         }) }}
  73.         {% endif %}
  74.     {% endblock %}