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

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