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

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