templates/product_category/layouts/_main.html.twig line 84

Open in your IDE?
  1. {{ pimcore_area('content-brick-1', {
  2.     'type':'content-brick',
  3.     'params':{
  4.         'content-brick': {
  5.             'containerClasses': 'md:py-20',
  6.             'productCategory': productCategory,
  7.             'forceH1' : true,
  8.             'defaultLayout': 'text-gallery',
  9.             'defaultBackgroundColor':'bg-white',
  10.             'defaultInverted': true,
  11.             'defaultTitle' : productCategory.title ?? page.title,
  12.             'defaultHeadline' : productCategory.subtitle ?? null,
  13.             'defaultWysiwyg' : productCategory.desc ?? page.description,
  14.             'defaultGalleryItems' : productCategory.mediaGalleryItems is defined and (productCategory.mediaGalleryItems|length) > 1 ? (productCategory.mediaGalleryItems | slice(1, 4)) : null,
  15.             'defaultSecondaryLink' : {
  16.                 'title': 'Bekijk de {{ productCategory }}' | trans({ '{{ productCategory }}': (productCategory.name ?? page.title) }),
  17.                 'link': "#products-anchor",
  18.                 'target': "",
  19.             }
  20.         }
  21.     }
  22. }) }}
  23. {{ pimcore_area('features', {
  24.     'type':'features-brick',
  25.     'params':{
  26.         'features-brick': {
  27.             'brickBackgroundColor': 'bg-white',
  28.             'productCategory': productCategory
  29.         }
  30.     }
  31. }) }}
  32. <div id="products-anchor">
  33.     {{ pimcore_area('product-category-cards-brick', {
  34.         type: 'product-category-cards-brick',
  35.         params: {
  36.             'product-category-cards-brick': {
  37.                 backgroundColor: '',
  38.                 containerClasses: 'container py-10 md:py-20',
  39.                 showTitle: true,
  40.                 defaultTitle: ('Aanbod {{ productCategory }}') | trans({'{{ productCategory }}': (productCategory.name ?? page.title) }),
  41.                 fourColumns: true,
  42.                 productCategories: childCategoriesObjects
  43.             }
  44.         }
  45.     }) }}
  46. </div>
  47. {{ pimcore_area('text-and-links-brick-1', {
  48.     'type':'text-and-links-brick',
  49.     'params':{
  50.         'text-and-links-brick': {
  51.             brickBackgroundColor: 'bg-blue-200',
  52.             style: 'normal',
  53.         }
  54.     }
  55. }) }}
  56. {{ pimcore_area('content-brick-2', {
  57.     'type':'content-brick',
  58.     'params': {
  59.         'content-brick': {
  60.             'layout': 'text-image',
  61.             'brickBackgroundColor': 'bg-white',
  62.             'defaultInverted': true,
  63.         }
  64.     }
  65. }) }}
  66. <div id="applications-anchor">
  67.     {{ pimcore_area('unique-selling-point-brick-1', {
  68.         'type':'unique-selling-point-brick',
  69.         'params': {
  70.             'unique-selling-point-brick': {
  71.                 'brickBackgroundColor' : 'bg-blue-300',
  72.                 'defaultTitle': ('Toepassingen {{ productCategory }}') | trans({'{{ productCategory }}': (productCategory.name ?: productCategory.key) }),
  73.             }
  74.         }
  75.     }) }}
  76. </div>
  77. {{ pimcore_inc(document.getProperty('whyChooseCoolworldSnippet')) }}
  78. {{ pimcore_inc(document.getProperty('certificateSnippet')) }}
  79. <div id="projects-anchor">
  80.     {{ pimcore_area('projects-by-product-category-brick-1', {
  81.         'type':'projects-by-product-category-brick',
  82.         'params': {
  83.             'projects-by-product-category-brick': {
  84.                 'pages': pages,
  85.                 'defaultBackgroundColor' : 'bg-white',
  86.                 'defaultTitle': "Gerelateerde projecten"|trans,
  87.                 productCategory: productCategory
  88.             }
  89.         }
  90.     }) }}
  91. </div>
  92. {{ pimcore_area('content-brick-3', {
  93.     'type':'content-brick',
  94.     'params':{
  95.         'content-brick': {
  96.             'layout': 'text-image',
  97.             'defaultInverted': true,
  98.             'brickBackgroundColor':'bg-gray-200',
  99.         }
  100.     }
  101. }) }}
  102. {{ pimcore_area('content-brick-4', {
  103.     'type':'content-brick',
  104.     'params':{
  105.         'content-brick': {
  106.             'layout': 'text-below-text',
  107.             'whiteSpaceBottom': false,
  108.         }
  109.     }
  110. }) }}
  111. <div id="faq-anchor">
  112.     {{ pimcore_inc(document.getProperty('faqSnippet')) }}
  113. </div>