var/cache/dev/twig/0b/0b776d4aac37e2541bffa22e43fa160eef7498d00ae3525847c9379bd95e836a.php line 55

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. /* project/archive.html.twig */
  16. class __TwigTemplate_898219b91a76b76447fefce3c1c45c3275a6833a149ee467cb55338209a27fb4 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 1
  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""project/archive.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""project/archive.html.twig"));
  45.         $this->parent $this->loadTemplate("app/layout.html.twig""project/archive.html.twig"1);
  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 2
  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 3
  64.         yield "
  65.     ";
  66.         // line 4
  67.         yield from $this->loadTemplate("app/partials/navigation/_breadcrumbs.html.twig""project/archive.html.twig"4)->unwrap()->yield($context);
  68.         // line 5
  69.         yield "
  70.     ";
  71.         // line 6
  72.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""hero-regular", ["type" => "hero-regular-brick""params" => ["hero-regular-brick" => ["headLineEnabled" => true]]]);
  73.         // line 13
  74.         yield "
  75.     ";
  76.         // line 15
  77.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'15$this->source); })())) {
  78.             // line 16
  79.             yield "        <h3>Product filter slugs (edit mode only)</h3>
  80.         ";
  81.             // line 17
  82.             $context['_parent'] = $context;
  83.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["productCategoryFilter"]) || array_key_exists("productCategoryFilter"$context) ? $context["productCategoryFilter"] : (function () { throw new RuntimeError('Variable "productCategoryFilter" does not exist.'17$this->source); })()));
  84.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  85.                 // line 18
  86.                 yield "            ";
  87.                 $context["name"] = ($this->sandbox->ensureToStringAllowed($context["item"], 18$this->source) . "-product-filter");
  88.                 // line 19
  89.                 yield "            <p>";
  90.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::lower($this->env->getCharset(), $this->extensions['Twig\Extra\String\StringExtension']->createSlug($this->sandbox->ensureToStringAllowed((isset($context["name"]) || array_key_exists("name"$context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.'19$this->source); })()), 19$this->source))), "html"nulltrue);
  91.                 yield "</p>
  92.         ";
  93.             }
  94.             $_parent $context['_parent'];
  95.             unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
  96.             $context array_intersect_key($context$_parent) + $_parent;
  97.             // line 21
  98.             yield "
  99.         <h3>Branch filter slugs</h3>
  100.         ";
  101.             // line 23
  102.             $context['_parent'] = $context;
  103.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["branchFilter"]) || array_key_exists("branchFilter"$context) ? $context["branchFilter"] : (function () { throw new RuntimeError('Variable "branchFilter" does not exist.'23$this->source); })()));
  104.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  105.                 // line 24
  106.                 yield "            ";
  107.                 $context["name"] = ($this->sandbox->ensureToStringAllowed($context["item"], 24$this->source) . "-branch-filter");
  108.                 // line 25
  109.                 yield "            <p>";
  110.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::lower($this->env->getCharset(), $this->extensions['Twig\Extra\String\StringExtension']->createSlug($this->sandbox->ensureToStringAllowed((isset($context["name"]) || array_key_exists("name"$context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.'25$this->source); })()), 25$this->source))), "html"nulltrue);
  111.                 yield "</p>
  112.         ";
  113.             }
  114.             $_parent $context['_parent'];
  115.             unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
  116.             $context array_intersect_key($context$_parent) + $_parent;
  117.             // line 27
  118.             yield "    ";
  119.         }
  120.         // line 28
  121.         yield "
  122.     ";
  123.         // line 29
  124.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""hero-projects-big-and-small", ["type" => "hero-projects-big-and-small-brick""params" => ["hero-projects-big-and-small-brick" => ["projectObjects" => $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source,         // line 33
  125. (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'33$this->source); })()), "items", [], "any"falsefalsetrue33), 33$this->source), "pagination" => $this->sandbox->ensureToStringAllowed(        // line 34
  126. (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'34$this->source); })()), 34$this->source), "paginationVariables" => $this->sandbox->ensureToStringAllowed(        // line 35
  127. (isset($context["paginationVariables"]) || array_key_exists("paginationVariables"$context) ? $context["paginationVariables"] : (function () { throw new RuntimeError('Variable "paginationVariables" does not exist.'35$this->source); })()), 35$this->source), "productCategoryFilter" => $this->sandbox->ensureToStringAllowed(        // line 36
  128. (isset($context["productCategoryFilter"]) || array_key_exists("productCategoryFilter"$context) ? $context["productCategoryFilter"] : (function () { throw new RuntimeError('Variable "productCategoryFilter" does not exist.'36$this->source); })()), 36$this->source), "branchFilter" => $this->sandbox->ensureToStringAllowed(        // line 37
  129. (isset($context["branchFilter"]) || array_key_exists("branchFilter"$context) ? $context["branchFilter"] : (function () { throw new RuntimeError('Variable "branchFilter" does not exist.'37$this->source); })()), 37$this->source)]]]);
  130.         // line 40
  131.         yield "
  132.     ";
  133.         // line 42
  134.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""content-brick-1", ["type" => "content-brick""params" => ["content-brick" => ["defaultLayout" => "text-image""defaultBackgroundColor" => "bg-white""defaultInverted" => false"defaultPrimaryLink" => ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Direct contact"), "link" => "#""target" => ""], "containerClasses" => "py-10 md:py-20"]]]);
  135.         // line 57
  136.         yield "
  137.     ";
  138.         // line 59
  139.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""project-overview-faq", ["type" => "faq-brick""params" => ["faq-brick" => ["showContact" => "false""containerSize" => "md:max-w-[1100px] container""containerClass" => "mx-auto"]]]);
  140.         // line 68
  141.         yield "
  142.     ";
  143.         // line 70
  144.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""contact-side-widget", ["type" => "contact-side-widget-brick"]);
  145.         // line 72
  146.         yield "
  147. ";
  148.         
  149.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  150.         
  151.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  152.         yield from [];
  153.     }
  154.     /**
  155.      * @codeCoverageIgnore
  156.      */
  157.     public function getTemplateName(): string
  158.     {
  159.         return "project/archive.html.twig";
  160.     }
  161.     /**
  162.      * @codeCoverageIgnore
  163.      */
  164.     public function isTraitable(): bool
  165.     {
  166.         return false;
  167.     }
  168.     /**
  169.      * @codeCoverageIgnore
  170.      */
  171.     public function getDebugInfo(): array
  172.     {
  173.         return array (  164 => 72,  162 => 70,  158 => 68,  156 => 59,  152 => 57,  150 => 42,  146 => 40,  144 => 37,  143 => 36,  142 => 35,  141 => 34,  140 => 33,  139 => 29,  136 => 28,  133 => 27,  124 => 25,  121 => 24,  117 => 23,  113 => 21,  104 => 19,  101 => 18,  97 => 17,  94 => 16,  92 => 15,  88 => 13,  86 => 6,  83 => 5,  81 => 4,  78 => 3,  65 => 2,  42 => 1,);
  174.     }
  175.     public function getSourceContext(): Source
  176.     {
  177.         return new Source("{% extends 'app/layout.html.twig' %}
  178. {% block content %}
  179.     {% include \"app/partials/navigation/_breadcrumbs.html.twig\" %}
  180.     {{ pimcore_area('hero-regular', {
  181.         'type':'hero-regular-brick',
  182.         'params': {
  183.             'hero-regular-brick' : {
  184.                 \"headLineEnabled\" : true
  185.             }
  186.         }
  187.     }) }}
  188.     {% if editmode %}
  189.         <h3>Product filter slugs (edit mode only)</h3>
  190.         {% for item in productCategoryFilter %}
  191.             {% set name = item ~ '-product-filter' %}
  192.             <p>{{ name | slug | lower }}</p>
  193.         {% endfor %}
  194.         <h3>Branch filter slugs</h3>
  195.         {% for item in branchFilter %}
  196.             {% set name = item ~ '-branch-filter' %}
  197.             <p>{{ name | slug | lower }}</p>
  198.         {% endfor %}
  199.     {% endif %}
  200.     {{ pimcore_area('hero-projects-big-and-small', {
  201.         type: 'hero-projects-big-and-small-brick',
  202.         params : {
  203.             'hero-projects-big-and-small-brick': {
  204.                 projectObjects: pagination.items,
  205.                 pagination: pagination,
  206.                 paginationVariables: paginationVariables,
  207.                 productCategoryFilter: productCategoryFilter,
  208.                 branchFilter: branchFilter,
  209.             }
  210.         }
  211.     }) }}
  212.     {{ pimcore_area('content-brick-1', {
  213.         'type':'content-brick',
  214.         'params':{
  215.             'content-brick': {
  216.                 'defaultLayout': 'text-image',
  217.                 'defaultBackgroundColor':'bg-white',
  218.                 'defaultInverted': false,
  219.                 'defaultPrimaryLink' : {
  220.                     'title' : \"Direct contact\"|trans,
  221.                     'link': '#',
  222.                     'target': \"\",
  223.                 },
  224.                 'containerClasses': 'py-10 md:py-20',
  225.             }
  226.         }
  227.     }) }}
  228.     {{ pimcore_area('project-overview-faq', {
  229.         type: 'faq-brick',
  230.         params: {
  231.             'faq-brick': {
  232.                 showContact: 'false',
  233.                 containerSize: 'md:max-w-[1100px] container',
  234.                 containerClass: 'mx-auto'
  235.             }
  236.         }
  237.     }) }}
  238.     {{ pimcore_area('contact-side-widget', {
  239.         type: 'contact-side-widget-brick'
  240.     }) }}
  241. {% endblock %}
  242. ""project/archive.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/project/archive.html.twig");
  243.     }
  244.     
  245.     public function checkSecurity()
  246.     {
  247.         static $tags = ["extends" => 1"include" => 4"if" => 15"for" => 17"set" => 18];
  248.         static $filters = ["escape" => 19"lower" => 19"slug" => 19"trans" => 50];
  249.         static $functions = ["pimcore_area" => 6];
  250.         try {
  251.             $this->sandbox->checkSecurity(
  252.                 ['extends''include''if''for''set'],
  253.                 ['escape''lower''slug''trans'],
  254.                 ['pimcore_area'],
  255.                 $this->source
  256.             );
  257.         } catch (SecurityError $e) {
  258.             $e->setSourceContext($this->source);
  259.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  260.                 $e->setTemplateLine($tags[$e->getTagName()]);
  261.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  262.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  263.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  264.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  265.             }
  266.             throw $e;
  267.         }
  268.     }
  269. }