src/Package/Openform/Front/Templates/RelictPack/_templates/template-o7.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, info, infoClose %}
  2. {% set ImageSlides = entity.ImageSlide|filterVisibles(app.request.locale) %}
  3. {% set key4 = 0 %}
  4. {% set height = entity.lineHeightBottom1 and entity.lineHeightTop2 ? 100 - entity.lineHeightBottom1 - entity.lineHeightTop2 : (entity.lineHeightBottom1 == null or entity.lineHeightBottom1 is same as(0)) and entity.lineHeightTop2 ? 94 - entity.lineHeightTop2 : entity.lineHeightBottom1 and (entity.lineHeightTop2 == null or entity.lineHeightTop2 is same as(0)) ? 94 - entity.lineHeightBottom1 : entity.lineHeightBottom1 is same as(0) and  entity.lineHeightTop2 is same as(0) ? 100 : 86 %}
  5. <style>
  6.   .collections__wrapper:nth-child(1)::after{
  7.     height: {{entity.lineHeightBottom1 is same as(0) ? 0 : entity.lineHeightBottom1 ? entity.lineHeightBottom1 : 6 }}% !important;  
  8.     background-color: {{entity.lineColorBottom1|default('#F6E9B5') }};
  9.   }
  10.   .collections__wrapper:nth-child(1)::before{
  11.     height: {{entity.lineHeightTop2 is same as(0) ? 0 : entity.lineHeightTop2 ? entity.lineHeightTop2 : 6 }}% !important; 
  12.     background-color: {{entity.lineColorTop2|default('#F6E9B5') }};
  13.   }
  14.   
  15. </style>
  16. <div style="{% if not entity.showHeader %}height:100vh; {% elseif rootParent is defined and rootParent.headerHeight is defined and rootParent.headerHeight %}height: calc(100vh - {{rootParent.headerHeight}}px);{% else %} height: calc( 100vh - 90px );{% endif %} display:flex; background: {{entity.imageBackgroundColor|default('#F8F7F0') }};">
  17.     <div class="collections__line" style="height: 92%; margin: auto 0; width: {{entity.lineWidthVertical1 is same as(0) ? 0 : entity.lineWidthVertical1 ? entity.lineWidthVertical1 : 1 }}%; background: {{entity.lineColorVertical1|default('#F6E9B5') }};"></div>
  18.     <div class="collections__container" style="width: {{entity.lineWidthVertical1 and entity.lineWidthVertical2 ? 100 - entity.lineWidthVertical1 - entity.lineWidthVertical2 : entity.lineWidthVertical1 and entity.lineWidthVertical2 == null ? 99 - entity.lineWidthVertical1 : entity.lineWidthVertical1 == null and entity.lineWidthVertical2 ? 99 - entity.lineWidthVertical2 : 98}}%; height: {{entity.lineHeightTop1 and entity.lineHeightBottom2 ? 90 - entity.lineHeightTop1 - entity.lineHeightBottom2 : entity.lineHeightTop1 and entity.lineHeightBottom2 == null ? 90 - entity.lineHeightTop1 : entity.lineHeightTop1 == null and entity.lineHeightBottom2 ? 90 - entity.lineHeightBottom2 : 90}}%;">
  19.         <div class="collections__container__wrapper">
  20.             <div class="collections__wrapper" style="width: {{entity.textAreaWidth|default('47') }}%; height:100%; {{entity.lineHeightBottom1 is same as(0) ? 'padding-bottom: 0;'}} {{entity.lineHeightTop2 is same as(0) ? 'padding-top: 0;'}}" data-lenis-prevent>
  21.                 <div class="collections__content" style="background: {{entity.background|default('#F5DB7B') }}; height: {{height}}%;">
  22.                     {% if entity.Translation[app.request.locale].titleHtml is defined and entity.Translation[app.request.locale].titleHtml %}
  23.                         <div class="collections__content__title block__h3">
  24.                             {{ entity.Translation[app.request.locale].titleHtml|raw }}
  25.                         </div>
  26.                     {% endif %}
  27.                     {% if entity.Translation[app.request.locale].attributesText is defined and entity.Translation[app.request.locale].attributesText %}
  28.                         <div class="collections__content__text block__text">
  29.                             {{ entity.Translation[app.request.locale].attributesText|raw }}
  30.                         </div>
  31.                     {% endif %}
  32.                     {% if entity.link is defined and entity.link %}
  33.                             <a href="{{entity.link}}" class="block-text__btns__btn button-read-more button-read-more--black">
  34.                                 <span>{{('T_RELICT_LINK')|trans({}, 'openform_front', app.request.locale)}}</span>
  35.                                 {{arrowright()}}
  36.                             </a>
  37.                     {% endif %}
  38.                     {% if entity.Translation[app.request.locale].text is defined and entity.Translation[app.request.locale].text %}
  39.                         <div class="collections__content__text block__text">
  40.                             {{ entity.Translation[app.request.locale].text|raw }}
  41.                         </div>
  42.                     {% endif %}
  43.                     {% if entity.Translation[app.request.locale].description is defined and entity.Translation[app.request.locale].description %}
  44.                         <div class="collections__content__text block__text">
  45.                             {{ entity.Translation[app.request.locale].description }}
  46.                         </div>
  47.                     {% endif %} 
  48.                     
  49.                     
  50.                 </div>
  51.             </div> 
  52.             <div class="collections__wrapper" style="width: {{entity.textAreaWidth ? 100 - entity.textAreaWidth : 53 }}%;">
  53.             {% if ImageSlides|length > 0 %}
  54.                 <div class="js-collection-gallery-standard" style="height: 100%;">
  55.                     <div class="splide js-collections-gallery-o8 collection-gallery" aria-label="Galeria" style="height: 100%;">
  56.                         <div class="splide__track">
  57.                             <ul class="splide__list" style="height: 100%;">
  58.                                 {% for image in ImageSlides %}
  59.                                         {% set key4 = key4 + 1 %}
  60.                                         {% set img = openform_front_util.getImagePathByType(image.Thumb ?? '','original') %}
  61.                                         {# {% set img = openform_front_util.getImagePathByType(image.Thumb ?? '','template8') %}
  62.                                         {% set imgPagination = openform_front_util.getImagePathByType(image.Thumb ?? '','list') %} #}
  63.                                         <li class="splide__slide" style="height: 100%;">
  64.                                             <div class="js-zoom" data-alt="{{image.Translation[app.request.locale].alt}}" style="height: 100%; display:flex; justify-content: center; align-items: center;">
  65.                                                 <div class="collection-gallery__item" style="{{image.imageWidth ? 'width:' ~ image.imageWidth ~ '%;' : 'width: 100%;'}}
  66.                                                 {{image.imageHeight ? 'height:' ~ image.imageHeight ~ '%;' : 'height: 100%;'}}
  67.                                                 {{image.imageWidth ? 'max-width:' ~ image.imageWidth ~ '%;' : 'max-width: 100%;'}}
  68.                                                 {{image.imageHeight ? 'max-height:' ~ image.imageHeight ~ '%;' : 'max-height: 100%;'}}
  69.                                                  ">
  70.                                                                 <style>
  71.                                                                     .my-zoomist-{{key4 - 1}} img{
  72.                                             collections__wrapper                            {% if image.imageBorderColor and image.imageBorderWidth %}border: {{image.imageBorderColor}} solid {{image.imageBorderWidth}}px;{% endif %}"
  73.                                                                     }
  74.                                                                     .my-zoomist-{{key4 - 1}} .zoomist-wrapper{
  75.                                                                         background:{{image.imageBackgroundColor ? image.imageBackgroundColor : entity.imageBackgroundColor ? entity.imageBackgroundColor : '#F8F7F0' }};
  76.                                                                     }
  77.                                                                 </style>
  78.                                                     <div class="my-zoomist my-zoomist-{{key4 - 1}}" data-zoomist-src="{{img}}"></div>
  79.                                                 </div>
  80.                                                 
  81.                                                 <div class="collection-gallery__wrap">
  82.                                                     <div class="collection-gallery__content block__text">
  83.                                                     </div>
  84.                                                     <style>
  85.                                                             .collection-gallery-buttons{{image.id}}{
  86.                                                                 {% if not image.Translation[app.request.locale].copyrights %}
  87.                                                                     .object__info--info::before {
  88.                                                                         left: 0px;
  89.                                                                     }
  90.                                                                 {% endif %}
  91.                                                             }
  92.                                                     </style>
  93.                                                     <div class="collection-gallery__buttons collection-gallery-buttons{{image.id}}">
  94.                                                         {% if image.Translation[app.request.locale].text is defined and image.Translation[app.request.locale].text %}
  95.                                                             <div class="object__info-wrap">
  96.                                                                 <button class="collection-gallery__buttons__btn" type="button" aria-expanded="false" data-expanded="js-info-{{image.id}}" tabindex="0">{{info(('T_INFO')|trans({}, 'openform_front', app.request.locale))}}</button>
  97.                                                                 <div class="object__info object__info--info js-info-{{image.id}}" data-lenis-prevent>
  98.                                                                     <div class="object__info__text block__text">{{image.Translation[app.request.locale].text|raw}}</div>
  99.                                                                     <button class="object__info__close js-expanded-close" type="button">{{infoClose()}}</button>
  100.                                                                 </div>
  101.                                                             </div>
  102.                                                         {% endif %}
  103.                                                         {% if image.Translation[app.request.locale].copyrights %}
  104.                                                             <div class="object__info-wrap">
  105.                                                                 <button class="collection-gallery__buttons__btn" type="button" aria-expanded="false" data-expanded="js-copyright-{{image.id}}" tabindex="0">{{copyrights(('T_INFO')|trans({}, 'openform_front', app.request.locale))}}</button>
  106.                                                                 <div class="object__info object__info--copyright js-copyright-{{image.id}}" data-lenis-prevent>
  107.                                                                     <div class="object__info__text block__text">{{image.Translation[app.request.locale].copyrights|raw}}</div>
  108.                                                                     <button class="object__info__close js-expanded-close" type="button">{{infoClose()}}</button>
  109.                                                                 </div>
  110.                                                             </div>
  111.                                                         {% endif %}
  112.                                                         <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 }}"
  113.                                                         data-image="{{img}}"
  114.                                                         data-description="{{image.Translation[app.request.locale].text}}"
  115.                                                         data-copyrights="{{image.Translation[app.request.locale].copyrights}}"
  116.                                                         data-start="{{key4 - 1}}"
  117.                                                         data-imagestyle="{% if image.imageBorderColor and image.imageBorderWidth %}border: {{image.imageBorderColor}} solid {{image.imageBorderWidth}}px;{% endif %}"
  118.                                                         >
  119.                                                             {{fullscreen(('T_FULLSCREEN')|trans({}, 'openform_front', app.request.locale))}}
  120.                                                         </button>
  121.                                                         <button class="collection-gallery__buttons__btn js-zoom-out">{{zoomout(('T_ZOOMOUT')|trans({}, 'openform_front', app.request.locale))}}</button>
  122.                                                         <button class="collection-gallery__buttons__btn js-zoom-in">{{zoomin(('T_ZOOMIN')|trans({}, 'openform_front', app.request.locale))}}</button>
  123.                                                     </div>
  124.                                                 </div>
  125.                                             </div>
  126.                                         </li>   
  127.                                 {% endfor %}                               
  128.                             </ul>
  129.                             <div class="splide__arrows{{ ImageSlides|length < 2 ? ' hide' }}">
  130.                                 <div class="slider-nav collection-gallery__nav collection-gallery__nav--o8">
  131.                                     <button class="splide__arrow splide__arrow--prev slider-nav__btn slider-nav__btn--prev" disabled>
  132.                                         {{ sliderprev('PREV_SLIDE'|trans({}, 'openform_front', app.request.locale)) }}
  133.                                     </button>
  134.                                     <ul class="splide__pagination collection-gallery__pagination"></ul>
  135.                                     <button class="splide__arrow splide__arrow--next slider-nav__btn slider-nav__btn--next">
  136.                                         {{ slidernext('NEXT_SLIDE'|trans({}, 'openform_front', app.request.locale)) }}
  137.                                     </button>
  138.                                 </div>
  139.                             </div>
  140.                         </div>
  141.                     </div>
  142.                 </div> 
  143.                 {% endif %}
  144.             </div>
  145.         </div>
  146.         <div class="collections__container__wrapper">
  147.         {% if entity2 is defined %}
  148.             {% set ImageSlides2 = entity2.ImageSlide|filterVisibles(app.request.locale) %}
  149.             <div class="collections__wrapper" style="width: {{entity.textAreaWidth|default('47') }}%;" data-lenis-prevent>
  150.                 <div class="collections__content" style="background: {{entity.background|default('#F5DB7B') }}; height: {{height}}%;">
  151.                     {% if entity2.Translation[app.request.locale].titleHtml is defined and entity2.Translation[app.request.locale].titleHtml %}
  152.                         <div class="collections__content__title block__h3">
  153.                             {{ entity2.Translation[app.request.locale].titleHtml|raw }}
  154.                         </div>
  155.                     {% endif %}
  156.                     {% if entity2.Translation[app.request.locale].attributesText is defined and entity2.Translation[app.request.locale].attributesText %}
  157.                         <div class="collections__content__text block__text">
  158.                             {{ entity2.Translation[app.request.locale].attributesText|raw }}
  159.                         </div>
  160.                     {% endif %}
  161.                     {% if entity2.link is defined and entity2.link %}
  162.                             <a href="{{entity2.link}}" class="block-text__btns__btn button-read-more button-read-more--black">
  163.                                 <span>{{('T_RELICT_LINK')|trans({}, 'openform_front', app.request.locale)}}</span>
  164.                                 {{arrowright()}}
  165.                             </a>
  166.                     {% endif %}
  167.                     {% if entity2.Translation[app.request.locale].text is defined and entity2.Translation[app.request.locale].text %}
  168.                         <div class="collections__content__text block__text">
  169.                             {{ entity2.Translation[app.request.locale].text|raw }}
  170.                         </div>
  171.                     {% endif %}
  172.                     {% if entity2.Translation[app.request.locale].description is defined and entity2.Translation[app.request.locale].description %}
  173.                         <div class="collections__content__text block__text">
  174.                             {{ entity2.Translation[app.request.locale].description|raw }}
  175.                         </div>
  176.                     {% endif %} 
  177.                     
  178.                     
  179.                 </div>
  180.             </div> 
  181.             <div class="collections__wrapper" style="width: {{entity.textAreaWidth ? 100 - entity.textAreaWidth : 53 }}%;">
  182.             {% if ImageSlides2|length > 0 %}
  183.                 <div class="js-collection-gallery-standard" style="height: 100%;">
  184.                     <div class="splide js-collections-gallery-o8 collection-gallery collection-gallery--o8" style="height: 100%;">
  185.                         <div class="splide__track">
  186.                             <ul class="splide__list" style="height: 100%;">
  187.                             {% set key3 = 0 %}
  188.                                 {% for image in ImageSlides2 %}
  189.                                     {% set img = openform_front_util.getImagePathByType(image.Thumb ?? '','original') %}
  190.                                     {# {% set img = openform_front_util.getImagePathByType(image.Thumb ?? '','template8') %}
  191.                                     {% set imgPagination = openform_front_util.getImagePathByType(image.Thumb ?? '','list') %} #}
  192.                                     {% set key3 = key3 + 1 %}
  193.                                         <li class="splide__slide" style="height: 100%;">
  194.                                             <div class="js-zoom" data-alt="{{image.Translation[app.request.locale].alt}}" style="height: 100%; display:flex; justify-content: center; align-items: center;">
  195.                                                 <div class="collection-gallery__item" style="{{image.imageWidth ? 'width:' ~ image.imageWidth ~ '%;' : 'width: 100%;'}}
  196.                                                 {{image.imageHeight ? 'height:' ~ image.imageHeight ~ '%;' : 'height: 100%;'}}
  197.                                                 {{image.imageWidth ? 'max-width:' ~ image.imageWidth ~ '%;' : 'max-width: 100%;'}}
  198.                                                 {{image.imageHeight ? 'max-height:' ~ image.imageHeight ~ '%;' : 'max-height: 100%;'}}
  199.                                                  ">
  200.                                                     <style>
  201.                                                                     .my-zoomist-{{key3 + key4 - 1}} img{
  202.                                                                         {% if image.imageBorderColor and image.imageBorderWidth %}border: {{image.imageBorderColor}} solid {{image.imageBorderWidth}}px;{% endif %}"
  203.                                                                     }
  204.                                                                     .my-zoomist-{{key3 + key4 - 1}} .zoomist-wrapper{
  205.                                                                         background:{{image.imageBackgroundColor ? image.imageBackgroundColor : entity.imageBackgroundColor ? entity.imageBackgroundColor : '#F8F7F0' }};
  206.                                                                     }
  207.                                                     </style>
  208.                                                     <div class="my-zoomist my-zoomist-{{key3 + key4 - 1}} " data-zoomist-src="{{img}}"></div>
  209.                                                 </div>
  210.                                                 
  211.                                                 <div class="collection-gallery__wrap">
  212.                                                     <div class="collection-gallery__content block__text">
  213.                                                     
  214.                                                     </div>
  215.                                                     <style>
  216.                                                             .collection-gallery-buttons{{image.id}}{
  217.                                                                 {% if not image.Translation[app.request.locale].copyrights %}
  218.                                                                     .object__info--info::before {
  219.                                                                         left: 0px;
  220.                                                                     }
  221.                                                                 {% endif %}
  222.                                                             }
  223.                                                     </style>
  224.                                                     <div class="collection-gallery__buttons collection-gallery-buttons{{image.id}}">
  225.                                                         {% if image.Translation[app.request.locale].text is defined and image.Translation[app.request.locale].text %}
  226.                                                             <div class="object__info-wrap">
  227.                                                                 <button class="collection-gallery__buttons__btn" type="button" aria-expanded="false" data-expanded="js-info-{{image.id}}" tabindex="0">{{info(('T_INFO')|trans({}, 'openform_front', app.request.locale))}}</button>
  228.                                                                 <div class="object__info object__info--info js-info-{{image.id}}" data-lenis-prevent>
  229.                                                                     <div class="object__info__text block__text">{{image.Translation[app.request.locale].text|raw}}</div>
  230.                                                                     <button class="object__info__close js-expanded-close" type="button">{{infoClose()}}</button>
  231.                                                                 </div>
  232.                                                             </div>
  233.                                                         {% endif %}
  234.                                                         {% if image.Translation[app.request.locale].copyrights %}
  235.                                                             <div class="object__info-wrap">
  236.                                                                 <button class="collection-gallery__buttons__btn" type="button" aria-expanded="false" data-expanded="js-copyright-{{image.id}}" tabindex="0">{{copyrights(('T_INFO')|trans({}, 'openform_front', app.request.locale))}}</button>
  237.                                                                 <div class="object__info object__info--copyright js-copyright-{{image.id}}" data-lenis-prevent>
  238.                                                                     <div class="object__info__text block__text">{{image.Translation[app.request.locale].copyrights|raw}}</div>
  239.                                                                     <button class="object__info__close js-expanded-close" type="button">{{infoClose()}}</button>
  240.                                                                 </div>
  241.                                                             </div>
  242.                                                         {% endif %}
  243.                                                         <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 }}"
  244.                                                         data-image="{{img}}"
  245.                                                         data-description="{{image.Translation[app.request.locale].text}}"
  246.                                                         data-copyrights="{{image.Translation[app.request.locale].copyrights}}"
  247.                                                         data-start="{{key3 + key4 - 1}}"
  248.                                                         data-imagestyle="{% if image.imageBorderColor and image.imageBorderWidth %}border: {{image.imageBorderColor}} solid {{image.imageBorderWidth}}px;{% endif %}"
  249.                                                         >
  250.                                                             {{fullscreen(('T_FULLSCREEN')|trans({}, 'openform_front', app.request.locale))}}
  251.                                                         </button>
  252.                                                         <button class="collection-gallery__buttons__btn js-zoom-out">{{zoomout(('T_ZOOMOUT')|trans({}, 'openform_front', app.request.locale))}}</button>
  253.                                                         <button class="collection-gallery__buttons__btn js-zoom-in">{{zoomin(('T_ZOOMIN')|trans({}, 'openform_front', app.request.locale))}}</button>
  254.                                                     </div>
  255.                                                 </div>
  256.                                             </div>
  257.                                         </li>  
  258.                                 {% endfor %}                               
  259.                             </ul>
  260.                             <div class="splide__arrows{{ ImageSlides|length < 2 ? ' hide' }}">
  261.                                 <div class="slider-nav collection-gallery__nav collection-gallery__nav--o8">
  262.                                     <button class="splide__arrow splide__arrow--prev slider-nav__btn slider-nav__btn--prev" disabled>
  263.                                         {{ sliderprev('PREV_SLIDE'|trans({}, 'openform_front', app.request.locale)) }}
  264.                                     </button>
  265.                                     <ul class="splide__pagination collection-gallery__pagination"></ul>
  266.                                     <button class="splide__arrow splide__arrow--next slider-nav__btn slider-nav__btn--next">
  267.                                         {{ slidernext('NEXT_SLIDE'|trans({}, 'openform_front', app.request.locale)) }}
  268.                                     </button>
  269.                                 </div>
  270.                             </div>
  271.                         </div>
  272.                     </div>
  273.                 </div>
  274.                 {% endif %}
  275.             </div>   
  276.             {% endif %}        
  277.         </div>
  278.             <div class="collections__arrows">
  279.             {% for key, Relict in entity.RelictPack.getVisibleRelicts(app.request.locale) %}
  280.                 {% if entity.id == Relict.id  %}
  281.                     {% if entity.RelictPack.getVisibleRelicts(app.request.locale)[key - 1] is defined %}
  282.                         {% set prevElement = entity.RelictPack.getVisibleRelicts(app.request.locale)[key - 1] %}
  283.                         {% set href = toolkit_route_localizer.generate('relict_item',{ slug : prevElement.Translation[app.request.locale].slug }, app.request.locale) %}
  284.                         <a href="{{href}}" class="slider-nav__btn slider-nav__btn--prev">
  285.                             {{ sliderprev('PREV_Relict'|trans({}, 'openform_front', app.request.locale)) }}
  286.                         </a>
  287.                     {% endif%}
  288.                     {% if entity2 is defined %}
  289.                         {% if entity.RelictPack.getVisibleRelicts(app.request.locale)[key + 2] is defined %}
  290.                             {% set nextElement = entity.RelictPack.getVisibleRelicts(app.request.locale)[key + 1] %}
  291.                             {% set href = toolkit_route_localizer.generate('relict_item',{ slug : nextElement.Translation[app.request.locale].slug }, app.request.locale) %}
  292.                             <a href="{{href}}" class="slider-nav__btn slider-nav__btn--next">
  293.                                 {{ slidernext('Next_Relict'|trans({}, 'openform_front', app.request.locale)) }}
  294.                             </a>
  295.                         {% endif%}
  296.                     {% else %}
  297.                         {% if entity.RelictPack.getVisibleRelicts(app.request.locale)[key + 1] is defined %}
  298.                             {% set nextElement = entity.RelictPack.getVisibleRelicts(app.request.locale)[key + 1] %}
  299.                             {% set href = toolkit_route_localizer.generate('relict_item',{ slug : nextElement.Translation[app.request.locale].slug }, app.request.locale) %}
  300.                             <a href="{{href}}" class="slider-nav__btn slider-nav__btn--next">
  301.                                 {{ slidernext('Next_Relict'|trans({}, 'openform_front', app.request.locale)) }}
  302.                             </a>
  303.                         {% endif%}
  304.                     {% endif %}
  305.                 {% endif %}
  306.     {% endfor %}
  307.             </div>
  308.         </div>
  309.         <div class="collections__line" style="height: 92%; margin: auto 0; width: {{entity.lineWidthVertical2 is same as(0) ? 0 : entity.lineWidthVertical2|default('1') }}%; background: {{entity.lineColorVertical2|default('#F6E9B5') }};"></div>
  310.         <div class="collections__line-top" style="width: 96%; height: {{entity.lineHeightTop1 is same as(0) ? 0 : entity.lineHeightTop1|default('1') }}%; background: {{entity.lineColorTop1|default('#F5DB7B') }}; position: absolute; 
  311.         {% if not entity.showHeader %}top: 13%;{% else %}top: 4%;{% endif %} left: 50%; transform: translateX(-50%);"></div>
  312.         <div class="collections__line-bottom" style="width: 98%; height: {{entity.lineHeightBottom2 is same as(0) ? 0 : entity.lineHeightBottom2|default('3.2') }}%; background: {{entity.lineColorBottom2|default('#F5DB7B') }}; position: absolute; bottom: 0.5%; right: 0;"></div>
  313.     </div>
  314.