var/cache/dev/twig/b1/b17d83c7f387ed94dc70e3586a124f5ea99814a720b7032a5281fc429d2e4e35.php line 45

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* product_category/single.html.twig */
  16. class __TwigTemplate_730c12fe1ad6c204003460e542b11bae76fa89e01b5eee4a6f3cc7cce5c9dff0 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'content' => [$this'block_content'],
  29.         ];
  30.         $this->sandbox $this->extensions[SandboxExtension::class];
  31.         $this->checkSecurity();
  32.     }
  33.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34.     {
  35.         // line 39
  36.         return "app/layout.html.twig";
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = []): iterable
  39.     {
  40.         $macros $this->macros;
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""product_category/single.html.twig"));
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""product_category/single.html.twig"));
  45.         $this->parent $this->loadTemplate("app/layout.html.twig""product_category/single.html.twig"39);
  46.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.     }
  52.     // line 40
  53.     /**
  54.      * @return iterable<null|scalar|\Stringable>
  55.      */
  56.     public function block_content(array $context, array $blocks = []): iterable
  57.     {
  58.         $macros $this->macros;
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  63.         // line 41
  64.         yield "
  65.     ";
  66.         // line 42
  67.         yield from $this->loadTemplate("product_category/partials/editmode/_options.html.twig""product_category/single.html.twig"42)->unwrap()->yield($context);
  68.         // line 43
  69.         yield "
  70.     ";
  71.         // line 44
  72.         yield from $this->loadTemplate("app/partials/navigation/_breadcrumbs.html.twig""product_category/single.html.twig"44)->unwrap()->yield($context);
  73.         // line 45
  74.         yield "
  75.     ";
  76.         // line 46
  77.         if (CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relation""productCategory"), "getElement", [], "method"falsefalsetrue46)) {
  78.             // line 47
  79.             yield "
  80.         ";
  81.             // line 48
  82.             if (((isset($context["layout"]) || array_key_exists("layout"$context) ? $context["layout"] : (function () { throw new RuntimeError('Variable "layout" does not exist.'48$this->source); })()) == "main")) {
  83.                 // line 49
  84.                 yield "            ";
  85.                 yield from $this->loadTemplate("product_category/layouts/_main.html.twig""product_category/single.html.twig"49)->unwrap()->yield($context);
  86.                 // line 50
  87.                 yield "        ";
  88.             }
  89.             // line 51
  90.             yield "
  91.         ";
  92.             // line 52
  93.             if (((isset($context["layout"]) || array_key_exists("layout"$context) ? $context["layout"] : (function () { throw new RuntimeError('Variable "layout" does not exist.'52$this->source); })()) == "sub")) {
  94.                 // line 53
  95.                 yield "            ";
  96.                 yield from $this->loadTemplate("product_category/layouts/_sub.html.twig""product_category/single.html.twig"53)->unwrap()->yield($context);
  97.                 // line 54
  98.                 yield "        ";
  99.             }
  100.             // line 55
  101.             yield "
  102.     ";
  103.         }
  104.         // line 57
  105.         yield "
  106.     ";
  107.         // line 58
  108.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""contact-side-widget", ["type" => "contact-side-widget-brick"]);
  109.         // line 60
  110.         yield "
  111. ";
  112.         
  113.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  114.         
  115.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  116.         yield from [];
  117.     }
  118.     /**
  119.      * @codeCoverageIgnore
  120.      */
  121.     public function getTemplateName(): string
  122.     {
  123.         return "product_category/single.html.twig";
  124.     }
  125.     /**
  126.      * @codeCoverageIgnore
  127.      */
  128.     public function isTraitable(): bool
  129.     {
  130.         return false;
  131.     }
  132.     /**
  133.      * @codeCoverageIgnore
  134.      */
  135.     public function getDebugInfo(): array
  136.     {
  137.         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,);
  138.     }
  139.     public function getSourceContext(): Source
  140.     {
  141.         return new Source("{#
  142.     This template has two options as there are two variants for the product category single display:
  143.     1. (main category) https://projects.invisionapp.com/d/main#/console/21605959/457678051/preview
  144.     2. (sub-category) https://projects.invisionapp.com/d/main#/console/21605959/457678052/preview
  145.     Main category:
  146.         - breadcrumbs : Aanbod, Toepassingen, Projectcases, FAQ
  147.         - Content H1
  148.         - product-category-properties
  149.         - aanbod
  150.         - call-to-action
  151.         - content
  152.         - toepassingen
  153.         - daarom kiest u voor coolworld
  154.         - gerelateerde projecten
  155.         - content
  156.         - content text links
  157.         - faq
  158.     sub category
  159.         - breadcrumbs: toepassingen, werking & accessoires, Gebruik, FAQ
  160.         - Content H1
  161.         - product-category-properties
  162.         - table
  163.         - cta
  164.         - toepassingen
  165.         - text titel links tekst rechts + usp 2 kolommen
  166.         - klantenverhalen
  167.         - alternatieve categorieen
  168.         - content tekst + image
  169.         - content image + tekst
  170.         - faq
  171.     If this page has a parent, and that parent uses the ProductCategory::singleAction method,
  172.     then this is a subcategory page.
  173. #}
  174. {% extends 'app/layout.html.twig' %}
  175. {% block content %}
  176.     {% include 'product_category/partials/editmode/_options.html.twig' %}
  177.     {% include \"app/partials/navigation/_breadcrumbs.html.twig\" %}
  178.     {% if pimcore_relation(\"productCategory\").getElement() %}
  179.         {% if layout == \"main\" %}
  180.             {% include 'product_category/layouts/_main.html.twig' %}
  181.         {% endif %}
  182.         {% if layout == \"sub\" %}
  183.             {% include 'product_category/layouts/_sub.html.twig' %}
  184.         {% endif %}
  185.     {% endif %}
  186.     {{ pimcore_area('contact-side-widget', {
  187.         type: 'contact-side-widget-brick'
  188.     }) }}
  189. {% endblock %}
  190. ""product_category/single.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/product_category/single.html.twig");
  191.     }
  192.     
  193.     public function checkSecurity()
  194.     {
  195.         static $tags = ["extends" => 39"include" => 42"if" => 46];
  196.         static $filters = [];
  197.         static $functions = ["pimcore_relation" => 46"pimcore_area" => 58];
  198.         try {
  199.             $this->sandbox->checkSecurity(
  200.                 ['extends''include''if'],
  201.                 [],
  202.                 ['pimcore_relation''pimcore_area'],
  203.                 $this->source
  204.             );
  205.         } catch (SecurityError $e) {
  206.             $e->setSourceContext($this->source);
  207.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  208.                 $e->setTemplateLine($tags[$e->getTagName()]);
  209.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  210.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  211.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  212.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  213.             }
  214.             throw $e;
  215.         }
  216.     }
  217. }