<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* sector/single.html.twig */
class __TwigTemplate_525c797aa81ff00b5e000e6834a2a3bcee5c2e026a0988eafedc889525681ed5 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "app/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "sector/single.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "sector/single.html.twig"));
$this->parent = $this->loadTemplate("app/layout.html.twig", "sector/single.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
yield "
";
// line 5
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 5, $this->source); })())) {
// line 6
yield " Selecteer hieronder een sector.
";
// line 7
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relation", "sector", ["types" => ["object"], "classes" => ["Sector"]]);
// line 10
yield "
";
}
// line 12
yield "
";
// line 13
yield from $this->loadTemplate("app/partials/navigation/_breadcrumbs.html.twig", "sector/single.html.twig", 13)->unwrap()->yield($context);
// line 14
yield "
";
// line 19
yield "
";
// line 20
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "content-brick-1", ["type" => "content-brick", "params" => ["content-brick" => ["forceH1" => true, "defaultLayout" => "text-image", "defaultBackgroundColor" => "bg-blue-200", "defaultInverted" => false, "defaultHeadline" => (((CoreExtension::getAttribute($this->env, $this->source, // line 28
($context["sector"] ?? null), "branchename", [], "any", true, true, true, 28) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["sector"] ?? null), "branchename", [], "any", false, false, true, 28)))) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["sector"] ?? null), "branchename", [], "any", false, false, true, 28)) : (null)), "defaultTitle" => (((CoreExtension::getAttribute($this->env, $this->source, // line 29
($context["sector"] ?? null), "title", [], "any", true, true, true, 29) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["sector"] ?? null), "title", [], "any", false, false, true, 29)))) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["sector"] ?? null), "title", [], "any", false, false, true, 29)) : (null)), "defaultWysiwyg" => (((CoreExtension::getAttribute($this->env, $this->source, // line 30
($context["sector"] ?? null), "description", [], "any", true, true, true, 30) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["sector"] ?? null), "description", [], "any", false, false, true, 30)))) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["sector"] ?? null), "description", [], "any", false, false, true, 30)) : (null)), "overrideIcon" => (((CoreExtension::getAttribute($this->env, $this->source, // line 31
($context["sector"] ?? null), "icon", [], "any", true, true, true, 31) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["sector"] ?? null), "icon", [], "any", false, false, true, 31)))) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["sector"] ?? null), "icon", [], "any", false, false, true, 31)) : (null)), "overrideImage" => (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 32
($context["sector"] ?? null), "visuals", [], "any", false, true, true, 32), "items", [], "any", false, true, true, 32), 0, [], "array", true, true, true, 32) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["sector"] ?? null), "visuals", [], "any", false, true, true, 32), "items", [], "any", false, true, true, 32), 0, [], "array", false, false, true, 32)))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["sector"] ?? null), "visuals", [], "any", false, true, true, 32), "items", [], "any", false, true, true, 32), 0, [], "array", false, false, true, 32)) : (null)), "preHeadlineIconActive" => true, "defaultpreHeadlineIconActive" => true, "defaultPrimaryLink" => ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Advies aanvragen"), "link" => (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 37
($context["document"] ?? null), "getProperty", ["contactPage"], "method", false, true, true, 37), "url", [], "method", true, true, true, 37) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", ["contactPage"], "method", false, true, true, 37), "url", [], "method", false, false, true, 37)))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", ["contactPage"], "method", false, true, true, 37), "url", [], "method", false, false, true, 37)) : (null)), "target" => ""], "defaultSecondaryLink" => ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Bekijk de oplossingen"), "link" => "#related-product-anchor", "target" => ""]]]]);
// line 47
yield "
";
// line 49
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "sector-cards", ["type" => "sector-cards-brick", "params" => ["sector-cards-brick" => ["defaultBackgroundColor" => "md:bg-blue-200", "defaultSecondBackgroundColor" => "md:bg-blue-300", "defaultSecondBackgroundPosition" => "bottom-0", "style" => "images"]]]);
// line 59
yield "
<div id=\"applications-anchor\">
";
// line 62
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "unique-selling-point-brick-1", ["type" => "unique-selling-point-brick", "params" => ["unique-selling-point-brick" => ["brickBackgroundColor" => "bg-blue-300", "defaultBackgroundColor" => "bg-blue-300", "defaultTitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Toepassingen {{ sector }}", ["{{ sector }}" => $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, // line 68
(isset($context["sector"]) || array_key_exists("sector", $context) ? $context["sector"] : (function () { throw new RuntimeError('Variable "sector" does not exist.', 68, $this->source); })()), "branchename", [], "any", false, false, true, 68), 68, $this->source)])]]]);
// line 71
yield "
</div>
<div id=\"solutions-anchor\">
";
// line 75
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "content-brick-2", ["type" => "content-brick", "params" => ["content-brick" => ["layout" => "text-below-text", "defaultLayout" => "text-below-text", "defaultBackgroundColor" => "bg-white", "defaultTitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Oplossingen {{ sector }}", ["{{ sector }}" => $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, // line 82
(isset($context["sector"]) || array_key_exists("sector", $context) ? $context["sector"] : (function () { throw new RuntimeError('Variable "sector" does not exist.', 82, $this->source); })()), "branchename", [], "any", false, false, true, 82), 82, $this->source)])]]]);
// line 85
yield "
</div>
";
// line 88
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "media-brick-multiple", ["type" => "media-brick"]);
yield "
";
// line 90
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "testimonial-brick", ["type" => "testimonial-brick"]);
// line 92
yield "
";
// line 94
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "content-brick-3", ["type" => "content-brick", "params" => ["content-brick" => ["layout" => "text-image", "defaultLayout" => "text-image", "defaultBackgroundColor" => "bg-white", "defaultInverted" => true, "uspsActive" => true, "defaultUspsActive" => true]]]);
// line 106
yield "
";
// line 108
yield $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 108, $this->source); })()), "getProperty", ["textAndLinksSnippet"], "method", false, false, true, 108), 108, $this->source));
yield "
<div id=\"certificates-anchor\">
";
// line 111
yield $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 111, $this->source); })()), "getProperty", ["certificateSnippet"], "method", false, false, true, 111), 111, $this->source));
yield "
</div>
";
// line 114
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "sector-cards-2", ["type" => "sector-cards-brick", "params" => ["sector-cards-brick" => ["defaultTitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Oplossingen voor aanverwante sectoren"), "defaultBackgroundColor" => "bg-blue-200", "defaultSecondBackgroundColor" => "bg-blue-300", "defaultSecondBackgroundPosition" => "bottom-0", "style" => "icons"]]]);
// line 125
yield "
<div id=\"related-items-anchor\">
";
// line 128
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "related-projects", ["type" => "projects-card-slider-brick", "params" => ["projects-card-slider-brick" => ["defaultTitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Gerelateerde items"), "projects" => (((CoreExtension::getAttribute($this->env, $this->source, // line 133
($context["sector"] ?? null), "projects", [], "any", true, true, true, 133) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["sector"] ?? null), "projects", [], "any", false, false, true, 133)))) ? (CoreExtension::getAttribute($this->env, $this->source, ($context["sector"] ?? null), "projects", [], "any", false, false, true, 133)) : (null)), "projectsLimit" => 3, "labelOverride" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Project")]]]);
// line 138
yield "
</div>
<div id=\"related-product-anchor\">
";
// line 142
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "product-category-cards-brick", ["type" => "product-category-cards-brick", "params" => ["product-category-cards-brick" => ["brickBackgroundColor" => "bg-blue-200", "containerClasses" => "container py-10 md:py-20", "showTitle" => true, "defaultTitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Gerelateerde producten"), "fourColumns" => false]]]);
// line 153
yield "
</div>
<div id=\"faq-anchor\">
";
// line 157
yield $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 157, $this->source); })()), "getProperty", ["faqSnippet"], "method", false, false, true, 157), 157, $this->source));
yield "
</div>
";
// line 160
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "contact-side-widget", ["type" => "contact-side-widget-brick"]);
// line 162
yield "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "sector/single.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 200 => 162, 198 => 160, 192 => 157, 186 => 153, 184 => 142, 178 => 138, 176 => 133, 175 => 128, 170 => 125, 168 => 114, 162 => 111, 156 => 108, 152 => 106, 150 => 94, 146 => 92, 144 => 90, 139 => 88, 134 => 85, 132 => 82, 131 => 75, 125 => 71, 123 => 68, 122 => 62, 117 => 59, 115 => 49, 111 => 47, 109 => 37, 108 => 32, 107 => 31, 106 => 30, 105 => 29, 104 => 28, 103 => 20, 100 => 19, 97 => 14, 95 => 13, 92 => 12, 88 => 10, 86 => 7, 83 => 6, 81 => 5, 78 => 4, 65 => 3, 42 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'app/layout.html.twig' %}
{% block content %}
{% if editmode %}
Selecteer hieronder een sector.
{{ pimcore_relation(\"sector\", {
\"types\": [\"object\"],
\"classes\": [\"Sector\"]
}) }}
{% endif %}
{% include \"app/partials/navigation/_breadcrumbs.html.twig\" %}
{#
Note area name 'content-brick-1' is used in @see templates/sector/_card.html.twig
and in @see templates/sector/partials/breadcrumbs/breadcrumbs.html.twig
#}
{{ pimcore_area('content-brick-1', {
'type':'content-brick',
'params':{
'content-brick': {
'forceH1' : true,
'defaultLayout': 'text-image',
'defaultBackgroundColor':'bg-blue-200',
'defaultInverted': false,
\"defaultHeadline\" : sector.branchename ?? null,
\"defaultTitle\" : sector.title ?? null,
\"defaultWysiwyg\" : sector.description ?? null,
'overrideIcon' : sector.icon ?? null,
\"overrideImage\" : sector.visuals.items[0] ?? null,
'preHeadlineIconActive' : true,
'defaultpreHeadlineIconActive' : true,
'defaultPrimaryLink' : {
'title' : \"Advies aanvragen\"|trans,
'link': document.getProperty('contactPage').url() ?? null,
'target': \"\",
},
'defaultSecondaryLink' : {
'title' : \"Bekijk de oplossingen\"|trans,
'link': \"#related-product-anchor\",
'target': \"\",
}
}
}
}) }}
{{ pimcore_area(\"sector-cards\", {
'type' : \"sector-cards-brick\",
'params':{
'sector-cards-brick': {
'defaultBackgroundColor':'md:bg-blue-200',
'defaultSecondBackgroundColor':'md:bg-blue-300',
'defaultSecondBackgroundPosition':'bottom-0',
'style': 'images'
}
}
}) }}
<div id=\"applications-anchor\">
{{ pimcore_area('unique-selling-point-brick-1', {
'type':'unique-selling-point-brick',
'params': {
'unique-selling-point-brick': {
'brickBackgroundColor' : 'bg-blue-300',
'defaultBackgroundColor' : 'bg-blue-300',
'defaultTitle': ('Toepassingen {{ sector }}') | trans({'{{ sector }}': sector.branchename }),
}
}
}) }}
</div>
<div id=\"solutions-anchor\">
{{ pimcore_area('content-brick-2', {
'type':'content-brick',
'params':{
'content-brick': {
'layout': 'text-below-text',
'defaultLayout': \"text-below-text\",
'defaultBackgroundColor':'bg-white',
'defaultTitle': ('Oplossingen {{ sector }}') | trans({'{{ sector }}': sector.branchename }),
}
}
}) }}
</div>
{{ pimcore_area(\"media-brick-multiple\", { 'type' : \"media-brick\" }) }}
{{ pimcore_area(\"testimonial-brick\", {
type: \"testimonial-brick\"
}) }}
{{ pimcore_area('content-brick-3', {
'type':'content-brick',
'params':{
'content-brick': {
'layout': 'text-image',
'defaultLayout': 'text-image',
'defaultBackgroundColor':'bg-white',
'defaultInverted': true,
'uspsActive' : true,
'defaultUspsActive' : true,
}
}
}) }}
{{ pimcore_inc(document.getProperty('textAndLinksSnippet')) }}
<div id=\"certificates-anchor\">
{{ pimcore_inc(document.getProperty('certificateSnippet')) }}
</div>
{{ pimcore_area(\"sector-cards-2\", {
'type' : \"sector-cards-brick\",
'params':{
'sector-cards-brick': {
'defaultTitle': \"Oplossingen voor aanverwante sectoren\"|trans,
'defaultBackgroundColor':'bg-blue-200',
'defaultSecondBackgroundColor':'bg-blue-300',
'defaultSecondBackgroundPosition':'bottom-0',
'style': 'icons'
}
}
}) }}
<div id=\"related-items-anchor\">
{{ pimcore_area('related-projects', {
'type': 'projects-card-slider-brick',
'params': {
'projects-card-slider-brick' : {
'defaultTitle' : \"Gerelateerde items\"|trans,
'projects': sector.projects ?? null,
'projectsLimit': 3,
'labelOverride': 'Project' | trans
}
}
}) }}
</div>
<div id=\"related-product-anchor\">
{{ pimcore_area('product-category-cards-brick', {
type: 'product-category-cards-brick',
params: {
'product-category-cards-brick': {
'brickBackgroundColor': 'bg-blue-200',
'containerClasses': 'container py-10 md:py-20',
'showTitle': true,
'defaultTitle' : \"Gerelateerde producten\"|trans,
'fourColumns': false
}
}
}) }}
</div>
<div id=\"faq-anchor\">
{{ pimcore_inc(document.getProperty('faqSnippet')) }}
</div>
{{ pimcore_area('contact-side-widget', {
type: 'contact-side-widget-brick'
}) }}
{% endblock %}
", "sector/single.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/sector/single.html.twig");
}
public function checkSecurity()
{
static $tags = ["extends" => 1, "if" => 5, "include" => 13];
static $filters = ["trans" => 36];
static $functions = ["pimcore_relation" => 7, "pimcore_area" => 20, "pimcore_inc" => 108];
try {
$this->sandbox->checkSecurity(
['extends', 'if', 'include'],
['trans'],
['pimcore_relation', 'pimcore_area', 'pimcore_inc'],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}