src/Package/Openform/Front/Templates/AntiqueSuit/_templates/_template-2.html.twig line 64

Open in your IDE?
  1. {% from '@openform_front_templates/_includes/_icons.html.twig' import fullscreen, zoomin, zoomout, sliderprev, slidernext, arrowright, copyrights, arrowObjectPrev, arrowObjectNext, infoClose, info %}
  2. {% set ImageSlides = entity.ImageSlide|filterVisibles(app.request.locale) %}
  3. <section class="object {{entity.isInvertedTemplate is defined and entity.isInvertedTemplate ? 'object--inverted-2'}} object--{{entity.templateId}} js-collections">
  4.     <div class="object__container-flex"> 
  5.         <div class="object__section" style="width: {{entity.textAreaWidth is same as(0) ? '0' : entity.textAreaWidth ? entity.textAreaWidth : '36'}}%; {{entity.textAreaWidth is same as(0) ? 'overflow: hidden; padding: 0;'}} max-height:calc(100vh - {{ rootParent.headerHeight|default(90) }}px);" data-lenis-prevent>
  6.             <div class="object__arrows object__arrows--dark" style="{% if entity.naviBackgroundColor %}background-color: {{entity.naviBackgroundColor}};{% endif %}">
  7.                 {% for key, Antique in entity.AntiqueSuit.getVisibleAntiques(app.request.locale) %}
  8.                             {% if entity.id == Antique.id  %}
  9.                                 {% if entity.AntiqueSuit.getVisibleAntiques(app.request.locale)[key - 1] is defined %}
  10.                                     {% set prevElement = entity.AntiqueSuit.getVisibleAntiques(app.request.locale)[key - 1] %}
  11.                                     {% set href = toolkit_route_localizer.generate('antique_item',{ slug : prevElement.Translation[app.request.locale].slug }, app.request.locale) %}
  12.                                     <a href="{{href}}" class="object__nav__button-white" disabled>
  13.                                         {{ sliderprev('PREV_Relict'|trans({}, 'openform_front', app.request.locale)) }}
  14.                                     </a>
  15.                                 {% else %}
  16.                                     <div>
  17.                                         
  18.                                     </div>
  19.                                 {% endif%}
  20.                                 {% set href = toolkit_route_localizer.generate('antique_suit_item', {
  21.                                         'slug': entity.AntiqueSuit.Translation[app.request.locale].slug
  22.                                         }, app.request.locale) %} 
  23.                                 <a href="{{href}}" class="object__item__collection object__item__collection--text-center">{{ entity.AntiqueSuit.Translation[app.request.locale].title }}</a>
  24.                                 {% if entity.AntiqueSuit.getVisibleAntiques(app.request.locale)[key + 1] is defined %}
  25.                                     {% set nextElement = entity.AntiqueSuit.getVisibleAntiques(app.request.locale)[key + 1] %}
  26.                                     {% set href = toolkit_route_localizer.generate('antique_item',{ slug : nextElement.Translation[app.request.locale].slug }, app.request.locale) %}
  27.                                     <a href="{{href}}" class="object__nav__button-white object__nav__button-white-next" disabled>
  28.                                         {{ slidernext('Next_Relict'|trans({}, 'openform_front', app.request.locale)) }}
  29.                                     </a>
  30.                                 {% endif %}
  31.                             {% endif %}
  32.                 {% endfor %}
  33.             </div>
  34.             {% if entity.AntiqueSuit and entity.AntiqueSuit.AntiqueFormDesign == constant('\\App\\Package\\Openform\\Entity\\AntiqueSuit::ANTIQUE_FORM_DESIGN_MUSEUM') %}
  35.         
  36.         <div class="object__item" style="{% if entity.background is defined or rootParent.background is defined %}background-color: {{entity.background is defined and entity.background|length > 0 and entity.background ? entity.background : rootParent.background is defined and rootParent.background|length > 0 ? rootParent.background}}{% endif %};">
  37.             
  38.             <div class="object__item__title">{{ entity.Translation[app.request.locale].titleHtml|raw }}</div>
  39.             <div class="object__item__section">
  40.                
  41.                 {% if entity.Artist|length > 0 %}
  42.                     <div class="object__item-wrap object__item-wrap--author">
  43.                         <h3 class="object__item-wrap__title">{{('T_ANTIQUE_AUTHOR')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  44.                         <div class="object__item-wrap__text">
  45.                             {% for artist in entity.Artist %}
  46.                                 <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?artist={{ artist.fullName }}">
  47.                                     {{artist.fullName ? artist.fullName }}
  48.                                 </a>{{entity.Artist|length > 1 ? ', '}}
  49.                             {% endfor %}
  50.                         </div>
  51.                     </div>
  52.                 {% endif %}
  53.                 {% if (entity.date or entity.dateTo or entity.age or  entity.ageTo or entity.year or entity.yearTo) %}
  54.                     <div class="object__item-wrap">
  55.                         <h3 class="object__item-wrap__title">{{('T_ANTIQUE_DATE')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  56.                         <div class="object__item-wrap__text">
  57.                             {% include('@openform_front_templates/AntiqueSuit/_templates/_fields/_dates_and_ages.html.twig') with {
  58.                                 'dateFrom': entity.date, 
  59.                                 'dateTo': entity.dateTo,
  60.                                 'ageFrom': entity.age, 
  61.                                 'ageTo': entity.ageTo,
  62.                                 'yearFrom': entity.year ?? entity.shownObjectYear, 
  63.                                 'yearTo': entity.yearTo ?? entity.shownObjectAge,
  64.                             } %}
  65.                         </div>
  66.                     </div>
  67.                 {% endif %}
  68.                 {% if entity.AntiqueType|length > 0 %}
  69.                     <div class="object__item-wrap">
  70.                         <h3 class="object__item-wrap__title">{{('T_OBJECT_TYPE')|trans({}, 'openform_front', app.request.locale) ~ ': ' }}</h3>
  71.                         <div class="object__item-wrap__text">
  72.                             {% for key, item in entity.AntiqueType %}
  73.                                 <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?antiqueType={{ item.Translation[app.request.locale].title }}">
  74.                                     {{ item.Translation[app.request.locale].title }}
  75.                                 </a>{% if not loop.last %}, {% endif %}
  76.                             {% endfor %}
  77.                         </div>
  78.                     </div>
  79.                 {% endif %}
  80.                 {% if entity.AntiqueTechnique|length > 0 %}
  81.                     <div class="object__item-wrap">
  82.                         <h3 class="object__item-wrap__title">{{('T_MATERIALS_AND_TECHNIQUES')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  83.                         <div class="object__item-wrap__text">
  84.                             {% for item in entity.AntiqueTechnique %}
  85.                                 <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?antiqueTechnique={{ item.Translation[app.request.locale].title }}">
  86.                                     {{item.Translation[app.request.locale].title ? item.Translation[app.request.locale].title}}
  87.                                 </a>{% if not loop.last %}, {% endif %}
  88.                             {% endfor %}
  89.                         </div>
  90.                     </div>
  91.                 {% endif %}
  92.                 {% if entity.Translation[app.request.locale].text %}
  93.                     <div class="object__item-wrap object__item-wrap--description object__item-wrap--description-master js-text-dropdown" data-limit="6" data-lineHeight="22">
  94.                         <h3 class="object__item-wrap__title">{{('T_ANTIQUE_DESCRIPTION')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  95.                         <div class="object__item-wrap__text">
  96.                         <span class="js-text-dropdown-content">{{entity.Translation[app.request.locale].text|raw}}</span> <button class="js-text-dropdown-btn hide"><span>{{('T_TEXT_SHOW_MORE')|trans({}, 'openform_front', app.request.locale) }} ▼</span><span>{{('T_TEXT_SHOW_LESS')|trans({}, 'openform_front', app.request.locale) }} ▲</span></button>
  97.                             
  98.                         </div>
  99.                     </div>
  100.                 {% endif %}
  101.                 {% if entity.AntiqueCopyrights|length > 0 %}
  102.                     <div class="object__item-wrap">
  103.                         <h3 class="object__item-wrap__title">{{('T_ANTIQUE_COPYRIGHTS')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  104.                         <div class="object__item-wrap__text object__item-wrap__copyright">
  105.                             {% for key, item in entity.AntiqueCopyrights %}
  106.                                 <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?antiqueCopyrights={{ item.Translation[app.request.locale].title }}">
  107.                                     {{ item.Translation[app.request.locale].title }}
  108.                                 </a>{% if not loop.last %}, {% endif %}
  109.                             {% endfor %}
  110.                         </div>
  111.                     </div>
  112.                 {% endif %}
  113.                             
  114.             </div>
  115.             
  116.         </div>
  117.         {% else %}
  118.             
  119.         {# ------------------------Archive--------------------------- #}
  120.         <div class="object__item" style="{% if entity.background is defined or rootParent.background is defined %}background-color: {{entity.background is defined and entity.background|length > 0 and entity.background ? entity.background : rootParent.background is defined and rootParent.background|length > 0 ? rootParent.background}}{% endif %};">
  121.             {% set href = toolkit_route_localizer.generate('antique_suit_item', {
  122.                     'slug': entity.AntiqueSuit.Translation[app.request.locale].slug
  123.                     }, app.request.locale) %} 
  124.                 <a href="{{href}}" class="object__item__collection object__item__collection--text-center">{{ entity.AntiqueSuit.Translation[app.request.locale].title }}</a>
  125.             <div class="object__item__title">{{ entity.Translation[app.request.locale].titleHtml|raw }}</div>
  126.             <div class="object__item__section">
  127.                 {% if entity.Translation[app.request.locale].descPlace %}
  128.                     <div class="object__item-wrap">
  129.                         <h3 class="object__item-wrap__title">{{('T_ANTIQUE_PLACE_DESC')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  130.                         <div class="object__item-wrap__text">
  131.                             {{entity.Translation[app.request.locale].descPlace}}
  132.                         </div>
  133.                     </div>
  134.                 {% endif %}
  135.                 {% if entity.AntiquePlace %}
  136.                     <div class="object__item-wrap">
  137.                         <h3 class="object__item-wrap__title">{{('T_ANTIQUE_OBJECT_PLACE')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  138.                         <div class="object__item-wrap__text">
  139.                             {{entity.AntiquePlace.Translation[app.request.locale].title}}
  140.                         </div>
  141.                     </div>
  142.                 {% endif %}
  143.                 {% if entity.documentDate or entity.documentAge or entity.documentYear %}
  144.                     <div class="object__item-wrap">
  145.                         <h3 class="object__item-wrap__title">{{('T_ANTIQUE_DOCUMENT_DATE')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  146.                         <div class="object__item-wrap__text">
  147.                             {% include('@openform_front_templates/AntiqueSuit/_templates/_fields/_date_and_age_search.html.twig') with {
  148.                                 'date': entity.documentDate,
  149.                                 'age': entity.documentAge,
  150.                                 'year': entity.documentYear,
  151.                             } %}
  152.                         </div>
  153.                     </div>
  154.                 {% endif %}
  155.                 {% if entity.Artist|length > 0 %}
  156.                     <div class="object__item-wrap">
  157.                         <h3 class="object__item-wrap__title">{{('T_ANTIQUE_AUTHOR_OF_THE_PHOTOGRAPH_OR_DOCUMENT')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  158.                         <div class="object__item-wrap__text">
  159.                             {% for artist in entity.Artist %}
  160.                                 <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?artist={{ artist.fullName }}">
  161.                                     {{artist.fullName ? artist.fullName }} {{ artist.authorNickName ? '"' ~ artist.authorNickName ~ '"'}}
  162.                                 </a>{{entity.Artist|length > 1 ? ', '}}
  163.                             {% endfor %}
  164.                         </div>
  165.                     </div>
  166.                 {% endif %}
  167.                 {% if entity.AntiqueType|length > 0 %}
  168.                     <div class="object__item-wrap">
  169.                         <h3 class="object__item-wrap__title">{{('T_OBJECT_TYPE')|trans({}, 'openform_front', app.request.locale) ~ ': ' }}</h3>
  170.                         <div class="object__item-wrap__text">
  171.                             {% for key, item in entity.AntiqueType %}
  172.                                 <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?antiqueType={{ item.Translation[app.request.locale].title }}">
  173.                                     {{ item.Translation[app.request.locale].title }}
  174.                                 </a>{% if not loop.last %}, {% endif %}
  175.                             {% endfor %}
  176.                         </div>
  177.                     </div>
  178.                 {% endif %}
  179.                 {% if entity.AntiqueTechnique|length > 0 %}
  180.                     <div class="object__item-wrap">
  181.                         <h3 class="object__item-wrap__title">{{('T_MATERIALS_AND_TECHNIQUES')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  182.                         <div class="object__item-wrap__text">
  183.                             {% for item in entity.AntiqueTechnique %}
  184.                                 <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?antiqueTechnique={{ item.Translation[app.request.locale].title }}">
  185.                                     {{item.Translation[app.request.locale].title ? item.Translation[app.request.locale].title}}
  186.                                 </a>{% if not loop.last %}, {% endif %}
  187.                             {% endfor %}
  188.                         </div>
  189.                     </div>
  190.                 {% endif %}
  191.                 {% if entity.Translation[app.request.locale].text %}
  192.                     <div class="object__item-wrap object__item-wrap--description object__item-wrap--description-master js-text-dropdown" data-limit="6" data-lineHeight="22">
  193.                         <h3 class="object__item-wrap__title">{{('T_ANTIQUE_DESCRIPTION')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  194.                         <div class="object__item-wrap__text">
  195.                         <span class="js-text-dropdown-content">{{entity.Translation[app.request.locale].text|raw}}</span> <button class="js-text-dropdown-btn hide"><span>{{('T_TEXT_SHOW_MORE')|trans({}, 'openform_front', app.request.locale) }} ▼</span><span>{{('T_TEXT_SHOW_LESS')|trans({}, 'openform_front', app.request.locale) }} ▲</span></button>
  196.                             
  197.                         </div>
  198.                     </div>
  199.                 {% endif %}
  200.                 {% if entity.AntiqueCopyrights|length > 0 %}
  201.                     <div class="object__item-wrap">
  202.                         <h3 class="object__item-wrap__title">{{('T_ANTIQUE_COPYRIGHTS')|trans({}, 'openform_front', app.request.locale) }}:</h3>
  203.                         <div class="object__item-wrap__text object__item-wrap__copyright">
  204.                             {% for key, item in entity.AntiqueCopyrights %}
  205.                                 <a href="{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?antiqueCopyrights={{ item.Translation[app.request.locale].title }}">
  206.                                     {{ item.Translation[app.request.locale].title }}
  207.                                 </a>{% if not loop.last %}, {% endif %}
  208.                             {% endfor %}
  209.                         </div>
  210.                     </div>
  211.                 {% endif %}
  212.                             
  213.             </div>
  214.             
  215.         </div>
  216.         {% endif %}
  217.         
  218.         {% include '@openform_front_templates/AntiqueSuit/_templates/_sections/_all-sections.html.twig' with {design: entity.colsDesign} %}
  219.         </div>
  220.        
  221.         <div class="object__gallery" style="width: {{entity.textAreaWidth is same as(0) ? '100' : entity.textAreaWidth ? 100 - entity.textAreaWidth : '64'}}%; {{entity.textAreaWidth is same as(100) ? 'overflow: hidden;'}} background-color: {{entity.sliderThumbsBackgroundColor|default('#F8F7F0')}}; max-height:calc(100vh - {{ rootParent.headerHeight|default(90) }}px);">
  222.                 {% if ImageSlides|length > 0 %}
  223.                     <div class="object__gallery__splide collection-gallery js-collection-gallery-standard" style="background-color: {{entity.imageBackgroundColor|default('#F8F7F0')}}; height:100%;">
  224.                         <div class="splide js-collections-gallery2 collection-gallery__gallery" style="height: {{entity.thumbsHeight ? ( 100 - entity.thumbsHeight) ~ '%' : '65%'}};">
  225.                             <div class="splide__track">
  226.                                 <ul class="splide__list" style="height: 100%;">
  227.                                     {% for key, image in ImageSlides %}
  228.                                         {% set img = openform_front_util.getImagePathByType(image.Thumb ?? '','original') %}
  229.                                         {# {% set imgSmall = openform_front_util.getImagePathByType(image.Thumb ?? '','detal') %}
  230.                                         {% set imgPagination = openform_front_util.getImagePathByType(image.Thumb ?? '','list') %} #}
  231.                                         <li class="splide__slide" style="height: 100%;">
  232.                                             {# <img src="{{img}}" alt="{{image.Translation[app.request.locale].alt ? image.Translation[app.request.locale].alt}}"> #}
  233.                                              <div class="js-zoom" data-alt="{{image.Translation[app.request.locale].alt}}" style="height: 100%;">
  234.                                                 <div style="width:100%; height:100%; display:flex; justify-content: center; align-items: center;">
  235.                                                     <div class="collection-gallery__item" style="{% if entity.imageWidthPercent %}width: {{entity.imageWidthPercent}}%; max-width: {{entity.imageWidthPercent}}%;{% endif %} height: {{entity.imageHeight ? entity.imageHeight ~ 'px' : '100%'}}; height:100%;" >
  236.                                                         <style>
  237.                                                             .my-zoomist-{{key}} img{
  238.                                                                 {% if image.imageBorderColor and image.imageBorderWidth %}border: {{image.imageBorderColor}} solid {{image.imageBorderWidth}}px;{% endif %}"
  239.                                                             }
  240.                                                             .my-zoomist-{{key}} .zoomist-wrapper{
  241.                                                                 background:{{image.imageBackgroundColor ? image.imageBackgroundColor : entity.imageBackgroundColor ? entity.imageBackgroundColor : '#F8F7F0' }};
  242.                                                             }
  243.                                                         </style>
  244.                                                         <div class="my-zoomist my-zoomist-{{key}}" data-alt="{{image.Translation[app.request.locale].alt}}" style="{% if entity.imageHeight %} height: {{entity.imageHeight}}px;{% endif %}" data-zoomist-src="{{img}}" tabindex="0"></div>
  245.                                                     </div>
  246.                                                 </div>
  247.                                                 <div class="collection-gallery__wrap">
  248.                                                     <div class="collection-gallery__buttons">
  249.                                                         {% if image.Translation[app.request.locale].text is defined and image.Translation[app.request.locale].text %}
  250.                                                             <div class="object__info-wrap">
  251.                                                                 <button class="collection-gallery__buttons__btn" type="button" aria-expanded="false" data-expanded="js-info-{{key}}" tabindex="0">{{info(('T_INFO')|trans({}, 'openform_front', app.request.locale))}}</button>
  252.                                                                 <div class="object__info object__info--info js-info-{{key}}" data-lenis-prevent>
  253.                                                                     <div class="object__info__text block__text">{{image.Translation[app.request.locale].text|raw}}</div>
  254.                                                                     <button class="object__info__close js-expanded-close" type="button">{{infoClose()}}</button>
  255.                                                                 </div>
  256.                                                             </div>
  257.                                                         {% endif %}
  258.                                                         {% if image.Translation[app.request.locale].copyrights %}
  259.                                                             <div class="object__info-wrap">
  260.                                                                 <button class="collection-gallery__buttons__btn" type="button" aria-expanded="false" data-expanded="js-copyright-{{key}}" tabindex="0">{{copyrights(('T_INFO')|trans({}, 'openform_front', app.request.locale))}}</button>
  261.                                                                 <div class="object__info object__info--copyright js-copyright-{{key}}" data-lenis-prevent>
  262.                                                                     <div class="object__info__text block__text">{{image.Translation[app.request.locale].copyrights|raw}}</div>
  263.                                                                     <button class="object__info__close js-expanded-close" type="button">{{infoClose()}}</button>
  264.                                                                 </div>
  265.                                                             </div>
  266.                                                         {% endif %}
  267.                                                         <button class="collection-gallery__buttons__btn js-fullscreen" data-alt="{{image.Translation[app.request.locale].alt}}" tabindex="0" data-color="{{image.imageBackgroundColor is defined and image.imageBackgroundColor ? image.imageBackgroundColor }}"
  268.                                                             data-image="{{img}}"
  269.                                                             data-description="{{image.Translation[app.request.locale].text}}"
  270.                                                             data-copyrights="{{image.Translation[app.request.locale].copyrights}}"
  271.                                                             data-start="{{key}}"
  272.                                                                         data-imagestyle="{% if image.imageBorderColor and image.imageBorderWidth %}border: {{image.imageBorderColor}} solid {{image.imageBorderWidth}}px;{% endif %}"
  273.                                                         >
  274.                                                             {{fullscreen(('T_FULLSCREEN')|trans({}, 'openform_front', app.request.locale))}}
  275.                                                         </button>
  276.                                                         <button class="collection-gallery__buttons__btn js-zoom-out" tabindex="0">{{zoomout(('T_ZOOMOUT')|trans({}, 'openform_front', app.request.locale))}}</button>
  277.                                                         <button class="collection-gallery__buttons__btn js-zoom-in" tabindex="0">{{zoomin(('T_ZOOMIN')|trans({}, 'openform_front', app.request.locale))}}</button>
  278.                                                     </div>
  279.                                                 </div>
  280.                                             </div>
  281.                                         </li>    
  282.                                         
  283.                                     {% endfor %}                               
  284.                                 </ul>
  285.                             </div>
  286.                         </div>
  287.                         {% if entity.thumbsBackgroundColor %}
  288.                             <style>
  289.                                 .collection-gallery__navigation .splide__slide.is-active {
  290.                                     border-color: {{entity.thumbsBackgroundColor}};
  291.                                 }
  292.                                 .collection-gallery__navigation .splide__slide.is-active::after{
  293.                                     border-bottom: 34px solid {{entity.thumbsBackgroundColor}};
  294.                                 }   
  295.                             </style>
  296.                         {% endif %}
  297.                         <div style="background-color: {{entity.sliderThumbsBackgroundColor|default('#F8F7F0')}}; height: {{entity.thumbsHeight ? entity.thumbsHeight ~ '%' : '35%'}};">
  298.                             
  299.                         
  300.                         <div class="splide js-collections-navigation2 collection-gallery__navigation {{ ImageSlides|length < 2 ? ' hide' }}"  data-height="100%" data-disabled="true" style="height:100%">
  301.                             <div class="splide__track">
  302.                                 <ul class="splide__list"  style="position: relative; z-index: 2; height: 15vh;" style="height:100%">
  303.                                     {% for image in ImageSlides %}
  304.                                         {% set img = openform_front_util.getImagePathByType(image.Thumb ?? '','original') %}
  305.                                         {% set imgSmall = openform_front_util.getImagePathByType(image.Thumb ?? '','detal') %}
  306.                                         {% set imgPagination = openform_front_util.getImagePathByType(image.Thumb ?? '','list') %}
  307.                                         <li class="splide__slide" style="aspect-ratio: 13 / 9;"> 
  308.                                             <img src="{{img}}" alt="{{image.Translation[app.request.locale].alt ? image.Translation[app.request.locale].alt}}">
  309.                                         </li>    
  310.                                     {% endfor %}                               
  311.                                 </ul>
  312.                                 <div class="splide__arrows{{ ImageSlides|length < 2 ? ' hide' }}">
  313.                                     <div class="slider-nav collection-gallery__nav" style="z-index: 0;">
  314.                                         <button class="splide__arrow splide__arrow--white splide__arrow--prev slider-nav__btn slider-nav__btn--prev" disabled>
  315.                                             {{ sliderprev('PREV_SLIDE'|trans({}, 'openform_front', app.request.locale)) }}
  316.                                         </button>
  317.                                         <button class="splide__arrow splide__arrow--white splide__arrow--next slider-nav__btn slider-nav__btn--next">
  318.                                             {{ slidernext('NEXT_SLIDE'|trans({}, 'openform_front', app.request.locale)) }}
  319.                                         </button>
  320.                                     </div>
  321.                                 </div>
  322.                             </div>
  323.                         </div>
  324.                         </div>
  325.                     </div>
  326.                 {% endif %}
  327.             </div>
  328.         </div>
  329.         {# <div class="object__nav">
  330.             {% for key, Antique in entity.AntiqueSuit.getVisibleAntiques(app.request.locale) %}
  331.                 {% if entity.id == Antique.id  %}
  332.                     {% if entity.AntiqueSuit.getVisibleAntiques(app.request.locale)[key - 1] is defined %}
  333.                         {% set prevElement = entity.AntiqueSuit.getVisibleAntiques(app.request.locale)[key - 1] %}
  334.                         {% set href = toolkit_route_localizer.generate('antique_item',{ slug : prevElement.Translation[app.request.locale].slug }, app.request.locale) %}
  335.                         <a href="{{href}}" class="object__nav__button">{{arrowObjectPrev(('T_OBJECT_PREV')|trans({}, 'openform_front', app.request.locale))}}{{ ('T_OBJECT_PREV')|trans({}, 'openform_front', app.request.locale) }}</a>
  336.                     {% endif%}
  337.                     {% if entity.AntiqueSuit.getVisibleAntiques(app.request.locale)[key + 1] is defined %}
  338.                         {% set nextElement = entity.AntiqueSuit.getVisibleAntiques(app.request.locale)[key + 1] %}
  339.                         {% set href = toolkit_route_localizer.generate('antique_item',{ slug : nextElement.Translation[app.request.locale].slug }, app.request.locale) %}
  340.                         <a href="{{href}}" class="object__nav__button object__nav__button--next">{{ ('T_OBJECT_NEXT')|trans({}, 'openform_front', app.request.locale) }}{{arrowObjectNext(('T_OBJECT_NEXT')|trans({}, 'openform_front', app.request.locale))}}</a>
  341.                     {% endif%}
  342.                 {% endif %}
  343.             {% endfor %}    
  344.         </div> #}
  345.             {% include "@openform_front_templates/_blocks_sections/block.html.twig" with { sections: openform_front_util.getSections(entity) } %}
  346.     
  347.     
  348.     <div class="object__nav container" style="{% if entity.naviBackgroundColor %}background-color: {{entity.naviBackgroundColor}};{% endif %}">
  349.         {% for key, Antique in entity.AntiqueSuit.getVisibleAntiques(app.request.locale) %}
  350.             {% if entity.id == Antique.id  %}
  351.                 {% if entity.AntiqueSuit.getVisibleAntiques(app.request.locale)[key - 1] is defined %}
  352.                     {% set prevElement = entity.AntiqueSuit.getVisibleAntiques(app.request.locale)[key - 1] %}
  353.                     {% set href = toolkit_route_localizer.generate('antique_item',{ slug : prevElement.Translation[app.request.locale].slug }, app.request.locale) %}
  354.                     <a href="{{href}}" class="object__nav__button">{{arrowObjectPrev(('T_OBJECT_PREV')|trans({}, 'openform_front', app.request.locale))}}{{ ('T_OBJECT_PREV')|trans({}, 'openform_front', app.request.locale) }}</a>
  355.                 {% endif%}
  356.                 {% if entity.AntiqueSuit.getVisibleAntiques(app.request.locale)[key + 1] is defined %}
  357.                     {% set nextElement = entity.AntiqueSuit.getVisibleAntiques(app.request.locale)[key + 1] %}
  358.                     {% set href = toolkit_route_localizer.generate('antique_item',{ slug : nextElement.Translation[app.request.locale].slug }, app.request.locale) %}
  359.                     <a href="{{href}}" class="object__nav__button object__nav__button--next">{{ ('T_OBJECT_NEXT')|trans({}, 'openform_front', app.request.locale) }}{{arrowObjectNext(('T_OBJECT_NEXT')|trans({}, 'openform_front', app.request.locale))}}</a>
  360.                 {% endif%}
  361.             {% endif %}
  362.         {% endfor %}    
  363.     </div>
  364.     </section>
  365.     
  366.