<?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;
/* product_category/single.html.twig */
class __TwigTemplate_730c12fe1ad6c204003460e542b11bae76fa89e01b5eee4a6f3cc7cce5c9dff0 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 39
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", "product_category/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", "product_category/single.html.twig"));
$this->parent = $this->loadTemplate("app/layout.html.twig", "product_category/single.html.twig", 39);
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 40
/**
* @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 41
yield "
";
// line 42
yield from $this->loadTemplate("product_category/partials/editmode/_options.html.twig", "product_category/single.html.twig", 42)->unwrap()->yield($context);
// line 43
yield "
";
// line 44
yield from $this->loadTemplate("app/partials/navigation/_breadcrumbs.html.twig", "product_category/single.html.twig", 44)->unwrap()->yield($context);
// line 45
yield "
";
// line 46
if (CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relation", "productCategory"), "getElement", [], "method", false, false, true, 46)) {
// line 47
yield "
";
// line 48
if (((isset($context["layout"]) || array_key_exists("layout", $context) ? $context["layout"] : (function () { throw new RuntimeError('Variable "layout" does not exist.', 48, $this->source); })()) == "main")) {
// line 49
yield " ";
yield from $this->loadTemplate("product_category/layouts/_main.html.twig", "product_category/single.html.twig", 49)->unwrap()->yield($context);
// line 50
yield " ";
}
// line 51
yield "
";
// line 52
if (((isset($context["layout"]) || array_key_exists("layout", $context) ? $context["layout"] : (function () { throw new RuntimeError('Variable "layout" does not exist.', 52, $this->source); })()) == "sub")) {
// line 53
yield " ";
yield from $this->loadTemplate("product_category/layouts/_sub.html.twig", "product_category/single.html.twig", 53)->unwrap()->yield($context);
// line 54
yield " ";
}
// line 55
yield "
";
}
// line 57
yield "
";
// line 58
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "contact-side-widget", ["type" => "contact-side-widget-brick"]);
// line 60
yield "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "product_category/single.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 124 => 60, 122 => 58, 119 => 57, 115 => 55, 112 => 54, 109 => 53, 107 => 52, 104 => 51, 101 => 50, 98 => 49, 96 => 48, 93 => 47, 91 => 46, 88 => 45, 86 => 44, 83 => 43, 81 => 42, 78 => 41, 65 => 40, 42 => 39,);
}
public function getSourceContext(): Source
{
return new Source("{#
This template has two options as there are two variants for the product category single display:
1. (main category) https://projects.invisionapp.com/d/main#/console/21605959/457678051/preview
2. (sub-category) https://projects.invisionapp.com/d/main#/console/21605959/457678052/preview
Main category:
- breadcrumbs : Aanbod, Toepassingen, Projectcases, FAQ
- Content H1
- product-category-properties
- aanbod
- call-to-action
- content
- toepassingen
- daarom kiest u voor coolworld
- gerelateerde projecten
- content
- content text links
- faq
sub category
- breadcrumbs: toepassingen, werking & accessoires, Gebruik, FAQ
- Content H1
- product-category-properties
- table
- cta
- toepassingen
- text titel links tekst rechts + usp 2 kolommen
- klantenverhalen
- alternatieve categorieen
- content tekst + image
- content image + tekst
- faq
If this page has a parent, and that parent uses the ProductCategory::singleAction method,
then this is a subcategory page.
#}
{% extends 'app/layout.html.twig' %}
{% block content %}
{% include 'product_category/partials/editmode/_options.html.twig' %}
{% include \"app/partials/navigation/_breadcrumbs.html.twig\" %}
{% if pimcore_relation(\"productCategory\").getElement() %}
{% if layout == \"main\" %}
{% include 'product_category/layouts/_main.html.twig' %}
{% endif %}
{% if layout == \"sub\" %}
{% include 'product_category/layouts/_sub.html.twig' %}
{% endif %}
{% endif %}
{{ pimcore_area('contact-side-widget', {
type: 'contact-side-widget-brick'
}) }}
{% endblock %}
", "product_category/single.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/product_category/single.html.twig");
}
public function checkSecurity()
{
static $tags = ["extends" => 39, "include" => 42, "if" => 46];
static $filters = [];
static $functions = ["pimcore_relation" => 46, "pimcore_area" => 58];
try {
$this->sandbox->checkSecurity(
['extends', 'include', 'if'],
[],
['pimcore_relation', 'pimcore_area'],
$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;
}
}
}