{% extends "@openform_front_templates/base.html.twig" %}
{% block bodyAttr %}data-page="detail-page"{% endblock %}
{% set pageSubTitle = entity.Translation[app.request.locale].title %}
{% set metaTitle = entity.Translation[app.request.locale].metaTitle ? entity.Translation[app.request.locale].metaTitle : entity.Translation[app.request.locale].title %}
{% set metaDescription = entity.Translation[app.request.locale].metaDescription %}
{% set metaKeywords = entity.Translation[app.request.locale].metaKeywords %}
{% set pageImage = entity.imagePath ? openform_front_util.getImagePathByType(entity.Thumb,'list') : '' %}
{% block contentClass %}{% if not entity.showHeader %}no-padding{% endif %}{% endblock %}
{% block header %}
{% include "@openform_front_templates/_includes/_header_mak.html.twig" with {version: 'relictPack', background: entity.headerBackgroundColor} %}
{% endblock %}
{% block content %}
{% set mobile = openform_front_util.isMobileDevice() %}
{% if mobile %}
{{ include('@openform_front_templates/RelictPack/_templates/template-mobile.html.twig', {entity: entity}) }}
{% else %}
<section class="collections {% if not entity.showHeader %} collections--full-height collections--full-heigh-{{entity.relictArrange}}{% endif %} collections--{{entity.relictArrange}} collections--{{entity.relictArrange}}{{entity.slideArrange is defined and entity.slideArrange ? entity.slideArrange == 1 ? 'a' : entity.slideArrange == 2 ? 'b' : entity.slideArrange == 3 ? 'c' : entity.slideArrange == 4 ? 'd' : entity.slideArrange == 5 ? 'e'}}
collections--{{entity.isInvertedTemplate is defined and entity.isInvertedTemplate ? entity.relictArrange ~(entity.slideArrange is defined and entity.slideArrange ? entity.slideArrange == 1 ? 'a' : entity.slideArrange == 2 ? 'b' : entity.slideArrange == 3 ? 'c' : entity.slideArrange == 4 ? 'd' : entity.slideArrange == 5 ? 'e') ~ '-revert'}}
collections--{{entity.isInvertedTemplate is defined and entity.isInvertedTemplate ? entity.relictArrange ~ '-revert'}} js-collections" style="{% if entity.relictArrange == 't3' %}height: calc(100vh - {{ rootParent.headerHeight|default(90) }}px);{% endif %}">
{% if entity.relictArrange and entity.relictArrange == 'o7' %}
{% for key, Relict in entity.RelictPack.getVisibleRelicts(app.request.locale) %}
{% if entity.id == Relict.id %}
{% if entity.RelictPack.getVisibleRelicts(app.request.locale)[key + 1] is defined %}
{% set nextElement = entity.RelictPack.getVisibleRelicts(app.request.locale)[key + 1] %}
{% if nextElement.relictArrange == 'o7' %}
{{ include('@openform_front_templates/RelictPack/_templates/template-' ~ entity.relictArrange ~ '.html.twig', {entity: entity, entity2: nextElement}) }}
{% else %}
{{ include('@openform_front_templates/RelictPack/_templates/template-' ~ entity.relictArrange ~ '.html.twig', {entity: entity}) }}
{% endif %}
{% endif%}
{% endif %}
{% endfor %}
{% elseif entity.relictArrange %}
{{ include('@openform_front_templates/RelictPack/_templates/template-' ~ entity.relictArrange ~ '.html.twig', {entity: entity}) }}
{% endif %}
{# <div class="links-block__items"> #}
{# Obiekt jest częścią kolekcji:
<h2 class="gallery-block__title home-title">
{{ entity.RelictPack.Translation[app.request.locale].title }}
</h2> #}
{# Kompletna kolekcja zawiera obiekty:
{% for item in entity.RelictPack.getVisibleRelicts(app.request.locale) %}
{% set href = toolkit_route_localizer.generate('relict_item',{ slug : item.Translation[app.request.locale].slug }, app.request.locale) %}
<a class="links-block__item link link--gray" href="{{ href }}">
- {{ item.Translation[app.request.locale].title }}<br><br>
</a>
{% endfor %} #}
{# </div> #}
</section>
{% endif %}
{% endblock %}
{% block newsletter %}
{% endblock %}
{% block footer %}
{% endblock %}