src/Package/Openform/Front/Templates/AntiqueSuit/_templates/_template-8.html.twig line 1

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