{% extends "Layout/default.html.twig" %}
{% do pimcore_placeholder('magazine').set('true') %}
{% block mainContainerStyling %}main-content--spacing{% endblock %}
{% block navigation %}
{{ include('Navigation/magazine-navbar.html.twig') }}
{% endblock %}
{% block content %}
{#{% if editmode %}
<div class="editmode-box editmode-box--info">
<div class="editmode-box__header">
Settings
</div>
<div>
<label>
Main Article
</label>
{{ pimcore_relation('mainArticle', {'types': ['object'], 'subtypes': ['object'], 'classes': ['BlogArticle']}) }}
</div>
</div>
{% endif %}#}
{{ include('Includes/main-title-block-editable.html.twig', {
'isCentered': true
}) }}
<div class="js-ajax-form position-relative pt-3" data-ajax-form-submit-on-change="true">
{% do jsConfig().add('ajaxForm', true) %}
<div aria-live="polite">
<div class="container container-md">
<form action="/404"
data-action="{{ app.request.pathInfo }}"
class="js-ajax-form__form content-block">
<div class="timeline-wrapper">
<div class="timeline">
{% for item in archiveYears %}
<label class="timeline__item">
<input class="timeline__item-input"
{{ currentYear == item.articleDate.year ? 'checked' : '' }}
type="radio"
name="timeline"
value="{{ item.articleDate.year }}"
id="timeline">
<span class="timeline__item-circle" aria-hidden="true"></span>
<span class="timeline__item-text">{{ item.articleDate.year }}</span>
</label>
{% endfor %}
</div>
<span class="timeline__scroll-indicator icon icon-arrow-double-down icon-rotate-270" aria-hidden="true"></span>
</div>
</form>
<div class="js-ajax-form__notifications mb-3" hidden></div>
<div class="js-ajax-form__error-area mb-3" hidden>
<button class="js-ajax-form__retry btn btn-info ml-2">{{ 'ajax.Retry'|trans }}</button>
</div>
</div>
<div class="container container-md">
{{ include('Includes/loading-overlay.html.twig', {
styleModifier: 'js-ajax-form__loading'
}) }}
<div class="js-ajax-form__result mt-5">
{{ include('Magazine/Includes/archiveContainer.html.twig', {
paginator: paginator,
currentYear: currentYear
}) }}
</div>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{% if not app.request.get('onlyInlineCss') %}
{{ include('Layout/includes/encore.html.twig', {
'staticDebugMode': staticDebugMode,
'file': 'js/magazine'
}) }}
{% endif %}
{% endblock %}