templates/areas/logo-brick/view.html.twig line 1

Open in your IDE?
  1. {% embed 'app/area-brick-layout.html.twig' %}
  2.     {% block content %}
  3.         <section class="py-5 md:py-10">
  4.             <div class="container relative">
  5.                 {% set logos = pimcore_block('logos', {reload: true, manual: true}) %}
  6.                 {% do logos.start() %}
  7.                     <div class="{{ editmode ? '' : '!px-5 !-mx-5 sm:!px-0 sm:!mx-auto swiper logo-swiper' }}">
  8.                         <div class="{{ editmode ? 'grid grid-cols-12 gap-8' : 'swiper-wrapper' }}">
  9.                             {% for logo in logos.iterator %}
  10.                                 {% do logos.blockConstruct() %}
  11.                                     <div class=" {{ editmode ? 'col-span-2' : 'swiper-slide bg-gray-200 rounded-md' }} ">
  12.                                         {% do logos.blockStart() %}
  13.                                             {% if editmode %}
  14.                                                 {{ pimcore_image('small-image', {
  15.                                                     thumbnail: 'testimonial-small',
  16.                                                     pictureAttributes: {class: ''},
  17.                                                     imgAttributes: {class: 'h-8 w-auto'},
  18.                                                 }) }}
  19.                                                 {{ pimcore_link('link') }}
  20.                                             {% else %}
  21.                                                 {% if logoClickable is defined and not logoClickable %}
  22.                                                     <div 
  23.                                                         class="flex justify-center items-center h-[60px]"
  24.                                                     >
  25.                                                         {{ pimcore_image('small-image', {
  26.                                                             thumbnail: 'testimonial-small',
  27.                                                             pictureAttributes: {class: ''},
  28.                                                             imgAttributes: {class: 'h-8 w-auto'},
  29.                                                         }) }}
  30.                                                     </div>
  31.                                                 {% else %}
  32.                                                     <a 
  33.                                                         href="{{ pimcore_link('link').getHref() | trimUrl }}"
  34.                                                         class="flex justify-center items-center h-[60px]"
  35.                                                     >
  36.                                                         {{ pimcore_image('small-image', {
  37.                                                             thumbnail: 'testimonial-small',
  38.                                                             pictureAttributes: {class: ''},
  39.                                                             imgAttributes: {class: 'h-8 w-auto'},
  40.                                                         }) }}
  41.                                                     </a>
  42.                                                 {% endif %}
  43.                                             {% endif %}
  44.                                         {% do logos.blockEnd() %}
  45.                                     </div>
  46.                                 {% do logos.blockDestruct() %}
  47.                             {% endfor %}
  48.                         </div>
  49.                         <div class="flex items-center justify-between gap-6 mt-6 lg:justify-end">
  50.                             <div class="flex items-center !w-auto custom-swiper-pagination"></div>
  51.                             <div class="flex gap-2.5 items-center text-blue">
  52.                                 <div class="arrow-swiper-button-prev">
  53.                                     <svg width="24px" height="18px" xmlns="http://www.w3.org/2000/svg"><g id="&gt;-Klimaatbeheersing-v2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" ><g id="coolworld-product-category-vd-375-v02.3" transform="translate(-296 -3452)" fill="currentColor"><g id="Group-4" transform="translate(0 3333)"><g id="components/navigation/mobile/carousel" transform="translate(21 116)"><g id="icons/ui/arrow-line-right-copy" transform="translate(275 3)"><path d="M22.659 7.643H5.095L9.92 2.817A1.328 1.328 0 1 0 8.044.939L.707 8.277a1 1 0 0 0 0 1.414l7.337 7.338a1.328 1.328 0 0 0 1.878-1.878l-4.827-4.826h17.564a1.341 1.341 0 0 0 0-2.682Z" id="arrow-line-left" transform="matrix(1 0 0 -1 0 17.968)"/></g></g></g></g></g></svg>
  54.                                 </div>
  55.                                 <div class="arrow-swiper-button-next">
  56.                                     <svg width="24px" height="18px" xmlns="http://www.w3.org/2000/svg"><g id="&gt;-Klimaatbeheersing-v2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="coolworld-product-category-vd-375-v02.3" transform="translate(-332 -3452)" fill="currentColor"><g id="Group-4" transform="translate(0 3333)"><g id="components/navigation/mobile/carousel" transform="translate(21 116)"><g id="icons/ui/arrow-line-right" transform="translate(311 3)"><path d="M22.659 7.643H5.095L9.92 2.817A1.328 1.328 0 1 0 8.044.939L.707 8.277a1 1 0 0 0 0 1.414l7.337 7.338a1.328 1.328 0 0 0 1.878-1.878l-4.827-4.826h17.564a1.341 1.341 0 0 0 0-2.682Z" id="arrow-line-right" transform="matrix(-1 0 0 1 24 0)"/></g></g></g></g></g></svg>
  57.                                 </div>
  58.                             </div>
  59.                         </div>
  60.                     </div>
  61.                 {% do logos.end() %}
  62.                 {# {% if not editmode %}
  63.                     <div class="logo-swiper-button-prev">
  64.                         <svg class="w-4 h-3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 12">
  65.                             <path fill="#0072BB"
  66.                                 fill-rule="evenodd"
  67.                                 d="M15.106 6.883H3.396l3.218 3.218a.885.885 0 1 1-1.252 1.252L.707 6.695a1 1 0 0 1 0-1.414L5.362.626a.885.885 0 1 1 1.252 1.252L3.396 5.095h11.71a.894.894 0 0 1 0 1.788Z" />
  68.                         </svg>
  69.                     </div>
  70.                     <div class="logo-swiper-button-next">
  71.                         <svg class="w-4 h-3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 12">
  72.                             <path fill="#0072BB"
  73.                                 fill-rule="evenodd"
  74.                                 d="M.894 5.095h11.71L9.386 1.878A.885.885 0 1 1 10.638.626l4.655 4.656a1 1 0 0 1 0 1.414l-4.655 4.656A.885.885 0 1 1 9.386 10.1l3.218-3.217H.894a.894.894 0 0 1 0-1.788Z"/>
  75.                         </svg>
  76.                     </div>
  77.                 {% endif %} #}
  78.             </div>
  79.         </section>
  80.     {% endblock %}
  81. {% endembed %}