templates/areas/content-brick/layouts/text-gallery.html.twig line 1

Open in your IDE?
  1. {% set hideMediaOnMobile = pimcore_checkbox('hideMediaOnMobile').getData() %}
  2. {% set showRentalFormButton = pimcore_checkbox('showRentalFormButton').getData() %}
  3. {% set showRentalFormButtonColor = pimcore_select('showRentalFormButtonColor').getData() %}
  4. {% set showCustomButtonComment = pimcore_checkbox('showCustomButtonComment').getData() %}
  5. {% set customButtonComment = pimcore_input('customButtonComment').getData() %}
  6. <div class="container grid justify-center grid-cols-1 gap-6 mx-auto text-base md:text-lg md:grid-cols-2">
  7.     {# Defined as param or EditableDialog field #}
  8.     {% set inverted = inverted ?? pimcore_select('inverted').data %}
  9.     <div class="order-2 md:flex md:items-center lg:pl-16 
  10.         {{ inverted ? 'md:order-2 lg:pl-16' : 'md:order-1 lg:pr-16' }}
  11.         {{ hideMediaOnMobile ? 'pt-4 md:pt-0' : '' }}
  12.     ">
  13.         <div>
  14.             {% include 'areas/content-brick/partials/_headline.html.twig' %}
  15.             {% include 'areas/content-brick/partials/_title.html.twig' %}
  16.             {% include 'areas/content-brick/partials/_wysiwyg.html.twig' %}
  17.             {% include 'areas/content-brick/partials/_usps.html.twig' %}
  18.             {% include 'areas/content-brick/partials/_form-builder.html.twig' with {
  19.                 'fieldName' : 'formbuilder-select_text-gallery' }
  20.             %}
  21.             {% include 'areas/content-brick/partials/_buttons.html.twig' with {
  22.                 product: product ?? null,
  23.                 productCategory: productCategory ?? null,
  24.                 showRentalFormButton: showRentalFormButton ?? null,
  25.                 showRentalFormButtonColor: showRentalFormButtonColor ?? null,
  26.                 greenButton: true,
  27.                 showCustomButtonComment: showCustomButtonComment ?? null,
  28.                 buttonComment: customButtonComment !== '' ? customButtonComment : 'Binnen één dag vrijblijvend een offerte'|trans
  29.             } %}
  30.         </div>
  31.     </div>
  32.     <div class="order-1 
  33.         {{ inverted ? 'md:order-1' : 'md:order-2' }}
  34.         {{ hideMediaOnMobile ? 'hidden md:block' : '' }}
  35.     ">
  36.         {% include 'areas/content-brick/partials/_gallery.html.twig' %}
  37.     </div>
  38. </div>