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