templates/sector/single.html.twig line 1

Open in your IDE?
  1. {% extends 'app/layout.html.twig' %}
  2. {% block content %}
  3.     {% if editmode %}
  4.         Selecteer hieronder een sector.
  5.         {{ pimcore_relation("sector", {
  6.             "types": ["object"],
  7.             "classes": ["Sector"]
  8.         }) }}
  9.     {% endif %}
  10.     {% include "app/partials/navigation/_breadcrumbs.html.twig" %}
  11.     {#
  12.     Note area name 'content-brick-1' is used in @see templates/sector/_card.html.twig
  13.     and in @see templates/sector/partials/breadcrumbs/breadcrumbs.html.twig
  14.     #}
  15.     {{ pimcore_area('content-brick-1', {
  16.         'type':'content-brick',
  17.         'params':{
  18.             'content-brick': {
  19.                 'forceH1' : true,
  20.                 'defaultLayout': 'text-image',
  21.                 'defaultBackgroundColor':'bg-blue-200',
  22.                 'defaultInverted': false,
  23.                 "defaultHeadline" : sector.branchename ?? null,
  24.                 "defaultTitle" : sector.title ?? null,
  25.                 "defaultWysiwyg" : sector.description ?? null,
  26.                 'overrideIcon' : sector.icon ?? null,
  27.                 "overrideImage" : sector.visuals.items[0] ?? null,
  28.                 'preHeadlineIconActive' : true,
  29.                 'defaultpreHeadlineIconActive' : true,
  30.                 'defaultPrimaryLink' : {
  31.                     'title' : "Advies aanvragen"|trans,
  32.                     'link': document.getProperty('contactPage').url() ?? null,
  33.                     'target': "",
  34.                 },
  35.                 'defaultSecondaryLink' : {
  36.                     'title' : "Bekijk de oplossingen"|trans,
  37.                     'link': "#related-product-anchor",
  38.                     'target': "",
  39.                 }
  40.             }
  41.         }
  42.     }) }}
  43.     {{ pimcore_area("sector-cards", {
  44.         'type' : "sector-cards-brick",
  45.         'params':{
  46.             'sector-cards-brick': {
  47.                 'defaultBackgroundColor':'md:bg-blue-200',
  48.                 'defaultSecondBackgroundColor':'md:bg-blue-300',
  49.                 'defaultSecondBackgroundPosition':'bottom-0',
  50.                 'style': 'images'
  51.             }
  52.         }
  53.     }) }}
  54.     <div id="applications-anchor">
  55.         {{ pimcore_area('unique-selling-point-brick-1', {
  56.             'type':'unique-selling-point-brick',
  57.             'params': {
  58.                 'unique-selling-point-brick': {
  59.                     'brickBackgroundColor' : 'bg-blue-300',
  60.                     'defaultBackgroundColor' : 'bg-blue-300',
  61.                     'defaultTitle': ('Toepassingen {{ sector }}') | trans({'{{ sector }}': sector.branchename }),
  62.                 }
  63.             }
  64.         }) }}
  65.     </div>
  66.     <div id="solutions-anchor">
  67.         {{ pimcore_area('content-brick-2', {
  68.             'type':'content-brick',
  69.             'params':{
  70.                 'content-brick': {
  71.                     'layout': 'text-below-text',
  72.                     'defaultLayout': "text-below-text",
  73.                     'defaultBackgroundColor':'bg-white',
  74.                     'defaultTitle': ('Oplossingen {{ sector }}') | trans({'{{ sector }}': sector.branchename }),
  75.                 }
  76.             }
  77.         }) }}
  78.     </div>
  79.     {{ pimcore_area("media-brick-multiple", { 'type' : "media-brick" }) }}
  80.     {{ pimcore_area("testimonial-brick", {
  81.         type: "testimonial-brick"
  82.     }) }}
  83.     {{ pimcore_area('content-brick-3', {
  84.         'type':'content-brick',
  85.         'params':{
  86.             'content-brick': {
  87.                 'layout': 'text-image',
  88.                 'defaultLayout': 'text-image',
  89.                 'defaultBackgroundColor':'bg-white',
  90.                 'defaultInverted': true,
  91.                 'uspsActive' : true,
  92.                 'defaultUspsActive' : true,
  93.             }
  94.         }
  95.     }) }}
  96.     {{ pimcore_inc(document.getProperty('textAndLinksSnippet')) }}
  97.     <div id="certificates-anchor">
  98.         {{ pimcore_inc(document.getProperty('certificateSnippet')) }}
  99.     </div>
  100.     {{ pimcore_area("sector-cards-2", {
  101.         'type' : "sector-cards-brick",
  102.         'params':{
  103.             'sector-cards-brick': {
  104.                 'defaultTitle': "Oplossingen voor aanverwante sectoren"|trans,
  105.                 'defaultBackgroundColor':'bg-blue-200',
  106.                 'defaultSecondBackgroundColor':'bg-blue-300',
  107.                 'defaultSecondBackgroundPosition':'bottom-0',
  108.                 'style': 'icons'
  109.             }
  110.         }
  111.     }) }}
  112.     <div id="related-items-anchor">
  113.         {{ pimcore_area('related-projects', {
  114.             'type': 'projects-card-slider-brick',
  115.             'params': {
  116.                 'projects-card-slider-brick' : {
  117.                     'defaultTitle' : "Gerelateerde items"|trans,
  118.                     'projects': sector.projects ?? null,
  119.                     'projectsLimit': 3,
  120.                     'labelOverride': 'Project' | trans
  121.                 }
  122.             }
  123.         }) }}
  124.     </div>
  125.     <div id="related-product-anchor">
  126.         {{ pimcore_area('product-category-cards-brick', {
  127.             type: 'product-category-cards-brick',
  128.             params: {
  129.                 'product-category-cards-brick': {
  130.                     'brickBackgroundColor': 'bg-blue-200',
  131.                     'containerClasses': 'container py-10 md:py-20',
  132.                     'showTitle': true,
  133.                     'defaultTitle' : "Gerelateerde producten"|trans,
  134.                     'fourColumns': false
  135.                 }
  136.             }
  137.         }) }}
  138.     </div>
  139.     <div id="faq-anchor">
  140.         {{ pimcore_inc(document.getProperty('faqSnippet')) }}
  141.     </div>
  142.     {{ pimcore_area('contact-side-widget', {
  143.         type: 'contact-side-widget-brick'
  144.     }) }}
  145. {% endblock %}