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

Open in your IDE?
  1. {% embed 'app/area-brick-layout.html.twig' %}
  2.     {% block content %}
  3.         {% set brickLayout = layout ?? pimcore_select("layout").getData() %}
  4.         {% if editmode or pimcore_input("title").data is not empty or pimcore_input("headline").data is not empty or pimcore_wysiwyg("wysiwyg").data is not empty or defaultTitle is defined %}
  5.             <section class="
  6.                 {% if containerClasses is defined and containerClasses %}
  7.                     {{ containerClasses }}
  8.                 {% else %}
  9.                     {{ 'py-10 lg:py-20' }}
  10.                 {% endif %}
  11.                 {{ defaultBackgroundColor ?? '' }}
  12.                 ">
  13.                 {% if brickLayout == "text-image" %}
  14.                     {% include 'areas/content-brick/layouts/text-image.html.twig'  with {
  15.                         product: product ?? null,
  16.                         productCategory: productCategory ?? null
  17.                     } %}
  18.                 {% elseif brickLayout == "text-video"  %}
  19.                     {% include 'areas/content-brick/layouts/text-video.html.twig' with {
  20.                         product: product ?? null,
  21.                         productCategory: productCategory ?? null
  22.                     } %}
  23.                 {% elseif brickLayout == "text-gallery" %}
  24.                     {% include 'areas/content-brick/layouts/text-gallery.html.twig' with {
  25.                         product: product ?? null,
  26.                         productCategory: productCategory ?? null
  27.                     } %}
  28.                 {% elseif brickLayout == "text-below-text" %}
  29.                     {% include 'areas/content-brick/layouts/text-below-text.html.twig' %}
  30.                 {% elseif brickLayout == "text-usps" %}
  31.                     {% include 'areas/content-brick/layouts/text-usps.html.twig' %}
  32.                 {% else %}{# DEFAULT #}
  33.                     {% include 'areas/content-brick/layouts/text-image.html.twig' %}
  34.                 {% endif %}
  35.                 {% if showFloatingBanner is defined and showFloatingBanner %}
  36.                     {% include 'areas/content-brick/partials/_floating_banner.html.twig' %}
  37.                 {% endif %}
  38.             </section>
  39.         {% endif %}
  40.         {% include 'areas/content-brick/partials/editmode/styling.html.twig' %}
  41.     {% endblock %}
  42. {% endembed %}