var/cache/dev/twig/f0/f0cb4f1a7295d7889917e6bbf38bd8486b6d40faddd98588e9d702ec13800609.php line 50

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. /* areas/projects-card-slider-brick/view.html.twig */
  16. class __TwigTemplate_02a015471b780518a743af901574e75d519d6ca2e35d28e496993a8f1470e592 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->parent false;
  28.         $this->blocks = [
  29.         ];
  30.         $this->sandbox $this->extensions[SandboxExtension::class];
  31.         $this->checkSecurity();
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = []): iterable
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/projects-card-slider-brick/view.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/projects-card-slider-brick/view.html.twig"));
  40.         // line 1
  41.         yield from $this->loadTemplate("areas/projects-card-slider-brick/view.html.twig""areas/projects-card-slider-brick/view.html.twig"1"409838378")->unwrap()->yield($context);
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.         yield from [];
  47.     }
  48.     /**
  49.      * @codeCoverageIgnore
  50.      */
  51.     public function getTemplateName(): string
  52.     {
  53.         return "areas/projects-card-slider-brick/view.html.twig";
  54.     }
  55.     /**
  56.      * @codeCoverageIgnore
  57.      */
  58.     public function getDebugInfo(): array
  59.     {
  60.         return array (  50 => 1,);
  61.     }
  62.     public function getSourceContext(): Source
  63.     {
  64.         return new Source("{% embed 'app/area-brick-layout.html.twig' %}
  65.     {% block content %}
  66.         <!-- Cards 3 col -->
  67.         <section>
  68.             <div class=\"sm:container py-10 mx-auto md:py-20\">
  69.                 <h1 class=\"mx-4 sm:mx-0 mb-8 text-2xl leading-10 md:text-4xl md:mb-14\">
  70.                     {% if editmode %}
  71.                         {{ pimcore_input('title', { placeholder: defaultTitle ?? 'Kop' }) }}
  72.                     {% else %}
  73.                         {{ pimcore_input('title').getData() ?: defaultTitle ?? '' }}
  74.                     {% endif %}
  75.                 </h1>
  76.                 {% if editmode %}
  77.                     {% if (projects ?? null) is empty and pimcore_relations('projects').isEmpty() %}
  78.                         {% embed 'app/editmodenotice.html.twig' %}
  79.                             {% block title %} Er zijn nog geen projecten gekoppeld. {% endblock %}
  80.                             {% block information %}
  81.                                 {% if projects is defined %}
  82.                                     Je kunt gerelateerde projecten toevoegen dit Project Data Object,
  83.                                     onder het tabje \"Relaties en Media\".
  84.                                 {% else %}
  85.                                     Je kunt gerelateerde projecten toevoegen door op het potloodje te klikken.
  86.                                 {% endif %}
  87.                             {% endblock %}
  88.                         {% endembed %}
  89.                      {% endif %}
  90.                 {% endif %}
  91.                 <div class=\"grid grid-cols-12 gap-8\">
  92.                     {% set selectedProjects = (projects ?? pimcore_relations('projects').getElements())|slice(0, projectsLimit ?? null) %}
  93.                     {% for project in selectedProjects %}
  94.                         {% set output = (project.meta_description ?: (project.webdesq_content|striptags)) %}
  95.                         {% if (output and project.title is not empty) %}
  96.                         {{ include('includes/cards/default.html.twig', {
  97.                             project: project,
  98.                             class: 'md:col-span-4 mx-4 sm:mx-0',
  99.                             labelOverride: labelOverride
  100.                         }) }}
  101.                         {% endif %}
  102.                     {% endfor %}
  103.                 </div>
  104.             </div>
  105.         </section>
  106.     {% endblock %}
  107. {% endembed %}
  108. ""areas/projects-card-slider-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/projects-card-slider-brick/view.html.twig");
  109.     }
  110.     
  111.     public function checkSecurity()
  112.     {
  113.         static $tags = ["embed" => 1];
  114.         static $filters = [];
  115.         static $functions = [];
  116.         try {
  117.             $this->sandbox->checkSecurity(
  118.                 ['embed'],
  119.                 [],
  120.                 [],
  121.                 $this->source
  122.             );
  123.         } catch (SecurityError $e) {
  124.             $e->setSourceContext($this->source);
  125.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  126.                 $e->setTemplateLine($tags[$e->getTagName()]);
  127.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  128.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  129.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  130.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  131.             }
  132.             throw $e;
  133.         }
  134.     }
  135. }
  136. /* areas/projects-card-slider-brick/view.html.twig */
  137. class __TwigTemplate_02a015471b780518a743af901574e75d519d6ca2e35d28e496993a8f1470e592___409838378 extends Template
  138. {
  139.     private Source $source;
  140.     /**
  141.      * @var array<string, Template>
  142.      */
  143.     private array $macros = [];
  144.     public function __construct(Environment $env)
  145.     {
  146.         parent::__construct($env);
  147.         $this->source $this->getSourceContext();
  148.         $this->blocks = [
  149.             'content' => [$this'block_content'],
  150.         ];
  151.         $this->sandbox $this->extensions[SandboxExtension::class];
  152.         $this->checkSecurity();
  153.     }
  154.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  155.     {
  156.         return "app/area-brick-layout.html.twig";
  157.     }
  158.     protected function doDisplay(array $context, array $blocks = []): iterable
  159.     {
  160.         $macros $this->macros;
  161.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  162.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/projects-card-slider-brick/view.html.twig"));
  163.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  164.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/projects-card-slider-brick/view.html.twig"));
  165.         $this->parent $this->loadTemplate("app/area-brick-layout.html.twig""areas/projects-card-slider-brick/view.html.twig"1);
  166.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  167.         
  168.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  169.         
  170.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  171.     }
  172.     // line 2
  173.     /**
  174.      * @return iterable<null|scalar|\Stringable>
  175.      */
  176.     public function block_content(array $context, array $blocks = []): iterable
  177.     {
  178.         $macros $this->macros;
  179.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  180.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  181.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  182.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  183.         // line 3
  184.         yield "        <!-- Cards 3 col -->
  185.         <section>
  186.             <div class=\"sm:container py-10 mx-auto md:py-20\">
  187.                 <h1 class=\"mx-4 sm:mx-0 mb-8 text-2xl leading-10 md:text-4xl md:mb-14\">
  188.                     ";
  189.         // line 8
  190.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'8$this->source); })())) {
  191.             // line 9
  192.             yield "                        ";
  193.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""title", ["placeholder" => ($context["defaultTitle"] ?? "Kop")]);
  194.             yield "
  195.                     ";
  196.         } else {
  197.             // line 11
  198.             yield "                        ";
  199.             yield ((CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""title"), "getData", [], "method"falsefalsetrue11)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""title"), "getData", [], "method"falsefalsetrue11), 11$this->source), "html"nulltrue)) : (($context["defaultTitle"] ?? "")));
  200.             yield "
  201.                     ";
  202.         }
  203.         // line 13
  204.         yield "
  205.                 </h1>
  206.                 ";
  207.         // line 16
  208.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'16$this->source); })())) {
  209.             // line 17
  210.             yield "                    ";
  211.             if ((Twig\Extension\CoreExtension::testEmpty(($context["projects"] ?? null)) && CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""projects"), "isEmpty", [], "method"falsefalsetrue17))) {
  212.                 // line 18
  213.                 yield "                        ";
  214.                 yield from $this->loadTemplate("areas/projects-card-slider-brick/view.html.twig""areas/projects-card-slider-brick/view.html.twig"18"2065150578")->unwrap()->yield($context);
  215.                 // line 29
  216.                 yield "                     ";
  217.             }
  218.             // line 30
  219.             yield "                ";
  220.         }
  221.         // line 31
  222.         yield "                <div class=\"grid grid-cols-12 gap-8\">
  223.                     ";
  224.         // line 32
  225.         $context["selectedProjects"] = Twig\Extension\CoreExtension::slice($this->env->getCharset(), ($context["projects"] ?? CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""projects"), "getElements", [], "method"falsefalsetrue32)), 0, ($context["projectsLimit"] ?? null));
  226.         // line 33
  227.         yield "                    ";
  228.         $context['_parent'] = $context;
  229.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["selectedProjects"]) || array_key_exists("selectedProjects"$context) ? $context["selectedProjects"] : (function () { throw new RuntimeError('Variable "selectedProjects" does not exist.'33$this->source); })()));
  230.         $context['loop'] = [
  231.           'parent' => $context['_parent'],
  232.           'index0' => 0,
  233.           'index'  => 1,
  234.           'first'  => true,
  235.         ];
  236.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  237.             $length count($context['_seq']);
  238.             $context['loop']['revindex0'] = $length 1;
  239.             $context['loop']['revindex'] = $length;
  240.             $context['loop']['length'] = $length;
  241.             $context['loop']['last'] = === $length;
  242.         }
  243.         foreach ($context['_seq'] as $context["_key"] => $context["project"]) {
  244.             // line 34
  245.             yield "                        ";
  246.             $context["output"] = ((CoreExtension::getAttribute($this->env$this->source$context["project"], "meta_description", [], "any"falsefalsetrue34)) ? (CoreExtension::getAttribute($this->env$this->source$context["project"], "meta_description", [], "any"falsefalsetrue34)) : (Twig\Extension\CoreExtension::striptags($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["project"], "webdesq_content", [], "any"falsefalsetrue34), 34$this->source))));
  247.             // line 35
  248.             yield "                        ";
  249.             if (((isset($context["output"]) || array_key_exists("output"$context) ? $context["output"] : (function () { throw new RuntimeError('Variable "output" does not exist.'35$this->source); })()) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source$context["project"], "title", [], "any"falsefalsetrue35)))) {
  250.                 // line 36
  251.                 yield "                        ";
  252.                 yield Twig\Extension\CoreExtension::include($this->env$context"includes/cards/default.html.twig", ["project" => $this->sandbox->ensureToStringAllowed(                // line 37
  253. $context["project"], 37$this->source), "class" => "md:col-span-4 mx-4 sm:mx-0""labelOverride" => $this->sandbox->ensureToStringAllowed(                // line 39
  254. (isset($context["labelOverride"]) || array_key_exists("labelOverride"$context) ? $context["labelOverride"] : (function () { throw new RuntimeError('Variable "labelOverride" does not exist.'39$this->source); })()), 39$this->source)]);
  255.                 // line 40
  256.                 yield "
  257.                         ";
  258.             }
  259.             // line 42
  260.             yield "                    ";
  261.             ++$context['loop']['index0'];
  262.             ++$context['loop']['index'];
  263.             $context['loop']['first'] = false;
  264.             if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  265.                 --$context['loop']['revindex0'];
  266.                 --$context['loop']['revindex'];
  267.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  268.             }
  269.         }
  270.         $_parent $context['_parent'];
  271.         unset($context['_seq'], $context['_key'], $context['project'], $context['_parent'], $context['loop']);
  272.         $context array_intersect_key($context$_parent) + $_parent;
  273.         // line 43
  274.         yield "                </div>
  275.             </div>
  276.         </section>
  277.     ";
  278.         
  279.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  280.         
  281.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  282.         yield from [];
  283.     }
  284.     /**
  285.      * @codeCoverageIgnore
  286.      */
  287.     public function getTemplateName(): string
  288.     {
  289.         return "areas/projects-card-slider-brick/view.html.twig";
  290.     }
  291.     /**
  292.      * @codeCoverageIgnore
  293.      */
  294.     public function isTraitable(): bool
  295.     {
  296.         return false;
  297.     }
  298.     /**
  299.      * @codeCoverageIgnore
  300.      */
  301.     public function getDebugInfo(): array
  302.     {
  303.         return array (  313 => 43,  299 => 42,  295 => 40,  293 => 39,  292 => 37,  290 => 36,  287 => 35,  284 => 34,  266 => 33,  264 => 32,  261 => 31,  258 => 30,  255 => 29,  252 => 18,  249 => 17,  247 => 16,  242 => 13,  236 => 11,  230 => 9,  228 => 8,  221 => 3,  208 => 2,  50 => 1,);
  304.     }
  305.     public function getSourceContext(): Source
  306.     {
  307.         return new Source("{% embed 'app/area-brick-layout.html.twig' %}
  308.     {% block content %}
  309.         <!-- Cards 3 col -->
  310.         <section>
  311.             <div class=\"sm:container py-10 mx-auto md:py-20\">
  312.                 <h1 class=\"mx-4 sm:mx-0 mb-8 text-2xl leading-10 md:text-4xl md:mb-14\">
  313.                     {% if editmode %}
  314.                         {{ pimcore_input('title', { placeholder: defaultTitle ?? 'Kop' }) }}
  315.                     {% else %}
  316.                         {{ pimcore_input('title').getData() ?: defaultTitle ?? '' }}
  317.                     {% endif %}
  318.                 </h1>
  319.                 {% if editmode %}
  320.                     {% if (projects ?? null) is empty and pimcore_relations('projects').isEmpty() %}
  321.                         {% embed 'app/editmodenotice.html.twig' %}
  322.                             {% block title %} Er zijn nog geen projecten gekoppeld. {% endblock %}
  323.                             {% block information %}
  324.                                 {% if projects is defined %}
  325.                                     Je kunt gerelateerde projecten toevoegen dit Project Data Object,
  326.                                     onder het tabje \"Relaties en Media\".
  327.                                 {% else %}
  328.                                     Je kunt gerelateerde projecten toevoegen door op het potloodje te klikken.
  329.                                 {% endif %}
  330.                             {% endblock %}
  331.                         {% endembed %}
  332.                      {% endif %}
  333.                 {% endif %}
  334.                 <div class=\"grid grid-cols-12 gap-8\">
  335.                     {% set selectedProjects = (projects ?? pimcore_relations('projects').getElements())|slice(0, projectsLimit ?? null) %}
  336.                     {% for project in selectedProjects %}
  337.                         {% set output = (project.meta_description ?: (project.webdesq_content|striptags)) %}
  338.                         {% if (output and project.title is not empty) %}
  339.                         {{ include('includes/cards/default.html.twig', {
  340.                             project: project,
  341.                             class: 'md:col-span-4 mx-4 sm:mx-0',
  342.                             labelOverride: labelOverride
  343.                         }) }}
  344.                         {% endif %}
  345.                     {% endfor %}
  346.                 </div>
  347.             </div>
  348.         </section>
  349.     {% endblock %}
  350. {% endembed %}
  351. ""areas/projects-card-slider-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/projects-card-slider-brick/view.html.twig");
  352.     }
  353.     
  354.     public function checkSecurity()
  355.     {
  356.         static $tags = ["extends" => 1"if" => 8"embed" => 18"set" => 32"for" => 33];
  357.         static $filters = ["escape" => 11"slice" => 32"striptags" => 34];
  358.         static $functions = ["pimcore_input" => 9"pimcore_relations" => 17"include" => 36];
  359.         try {
  360.             $this->sandbox->checkSecurity(
  361.                 ['extends''if''embed''set''for'],
  362.                 ['escape''slice''striptags'],
  363.                 ['pimcore_input''pimcore_relations''include'],
  364.                 $this->source
  365.             );
  366.         } catch (SecurityError $e) {
  367.             $e->setSourceContext($this->source);
  368.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  369.                 $e->setTemplateLine($tags[$e->getTagName()]);
  370.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  371.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  372.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  373.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  374.             }
  375.             throw $e;
  376.         }
  377.     }
  378. }
  379. /* areas/projects-card-slider-brick/view.html.twig */
  380. class __TwigTemplate_02a015471b780518a743af901574e75d519d6ca2e35d28e496993a8f1470e592___2065150578 extends Template
  381. {
  382.     private Source $source;
  383.     /**
  384.      * @var array<string, Template>
  385.      */
  386.     private array $macros = [];
  387.     public function __construct(Environment $env)
  388.     {
  389.         parent::__construct($env);
  390.         $this->source $this->getSourceContext();
  391.         $this->blocks = [
  392.             'title' => [$this'block_title'],
  393.             'information' => [$this'block_information'],
  394.         ];
  395.         $this->sandbox $this->extensions[SandboxExtension::class];
  396.         $this->checkSecurity();
  397.     }
  398.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  399.     {
  400.         // line 18
  401.         return "app/editmodenotice.html.twig";
  402.     }
  403.     protected function doDisplay(array $context, array $blocks = []): iterable
  404.     {
  405.         $macros $this->macros;
  406.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  407.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/projects-card-slider-brick/view.html.twig"));
  408.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  409.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/projects-card-slider-brick/view.html.twig"));
  410.         $this->parent $this->loadTemplate("app/editmodenotice.html.twig""areas/projects-card-slider-brick/view.html.twig"18);
  411.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  412.         
  413.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  414.         
  415.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  416.     }
  417.     // line 19
  418.     /**
  419.      * @return iterable<null|scalar|\Stringable>
  420.      */
  421.     public function block_title(array $context, array $blocks = []): iterable
  422.     {
  423.         $macros $this->macros;
  424.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  425.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  426.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  427.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  428.         yield " Er zijn nog geen projecten gekoppeld. ";
  429.         
  430.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  431.         
  432.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  433.         yield from [];
  434.     }
  435.     // line 20
  436.     /**
  437.      * @return iterable<null|scalar|\Stringable>
  438.      */
  439.     public function block_information(array $context, array $blocks = []): iterable
  440.     {
  441.         $macros $this->macros;
  442.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  443.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""information"));
  444.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  445.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""information"));
  446.         // line 21
  447.         yield "                                ";
  448.         if (array_key_exists("projects"$context)) {
  449.             // line 22
  450.             yield "                                    Je kunt gerelateerde projecten toevoegen dit Project Data Object,
  451.                                     onder het tabje \"Relaties en Media\".
  452.                                 ";
  453.         } else {
  454.             // line 25
  455.             yield "                                    Je kunt gerelateerde projecten toevoegen door op het potloodje te klikken.
  456.                                 ";
  457.         }
  458.         // line 27
  459.         yield "                            ";
  460.         
  461.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  462.         
  463.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  464.         yield from [];
  465.     }
  466.     /**
  467.      * @codeCoverageIgnore
  468.      */
  469.     public function getTemplateName(): string
  470.     {
  471.         return "areas/projects-card-slider-brick/view.html.twig";
  472.     }
  473.     /**
  474.      * @codeCoverageIgnore
  475.      */
  476.     public function isTraitable(): bool
  477.     {
  478.         return false;
  479.     }
  480.     /**
  481.      * @codeCoverageIgnore
  482.      */
  483.     public function getDebugInfo(): array
  484.     {
  485.         return array (  534 => 27,  530 => 25,  525 => 22,  522 => 21,  509 => 20,  486 => 19,  463 => 18,  313 => 43,  299 => 42,  295 => 40,  293 => 39,  292 => 37,  290 => 36,  287 => 35,  284 => 34,  266 => 33,  264 => 32,  261 => 31,  258 => 30,  255 => 29,  252 => 18,  249 => 17,  247 => 16,  242 => 13,  236 => 11,  230 => 9,  228 => 8,  221 => 3,  208 => 2,  50 => 1,);
  486.     }
  487.     public function getSourceContext(): Source
  488.     {
  489.         return new Source("{% embed 'app/area-brick-layout.html.twig' %}
  490.     {% block content %}
  491.         <!-- Cards 3 col -->
  492.         <section>
  493.             <div class=\"sm:container py-10 mx-auto md:py-20\">
  494.                 <h1 class=\"mx-4 sm:mx-0 mb-8 text-2xl leading-10 md:text-4xl md:mb-14\">
  495.                     {% if editmode %}
  496.                         {{ pimcore_input('title', { placeholder: defaultTitle ?? 'Kop' }) }}
  497.                     {% else %}
  498.                         {{ pimcore_input('title').getData() ?: defaultTitle ?? '' }}
  499.                     {% endif %}
  500.                 </h1>
  501.                 {% if editmode %}
  502.                     {% if (projects ?? null) is empty and pimcore_relations('projects').isEmpty() %}
  503.                         {% embed 'app/editmodenotice.html.twig' %}
  504.                             {% block title %} Er zijn nog geen projecten gekoppeld. {% endblock %}
  505.                             {% block information %}
  506.                                 {% if projects is defined %}
  507.                                     Je kunt gerelateerde projecten toevoegen dit Project Data Object,
  508.                                     onder het tabje \"Relaties en Media\".
  509.                                 {% else %}
  510.                                     Je kunt gerelateerde projecten toevoegen door op het potloodje te klikken.
  511.                                 {% endif %}
  512.                             {% endblock %}
  513.                         {% endembed %}
  514.                      {% endif %}
  515.                 {% endif %}
  516.                 <div class=\"grid grid-cols-12 gap-8\">
  517.                     {% set selectedProjects = (projects ?? pimcore_relations('projects').getElements())|slice(0, projectsLimit ?? null) %}
  518.                     {% for project in selectedProjects %}
  519.                         {% set output = (project.meta_description ?: (project.webdesq_content|striptags)) %}
  520.                         {% if (output and project.title is not empty) %}
  521.                         {{ include('includes/cards/default.html.twig', {
  522.                             project: project,
  523.                             class: 'md:col-span-4 mx-4 sm:mx-0',
  524.                             labelOverride: labelOverride
  525.                         }) }}
  526.                         {% endif %}
  527.                     {% endfor %}
  528.                 </div>
  529.             </div>
  530.         </section>
  531.     {% endblock %}
  532. {% endembed %}
  533. ""areas/projects-card-slider-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/projects-card-slider-brick/view.html.twig");
  534.     }
  535.     
  536.     public function checkSecurity()
  537.     {
  538.         static $tags = ["extends" => 18"if" => 21];
  539.         static $filters = [];
  540.         static $functions = [];
  541.         try {
  542.             $this->sandbox->checkSecurity(
  543.                 ['extends''if'],
  544.                 [],
  545.                 [],
  546.                 $this->source
  547.             );
  548.         } catch (SecurityError $e) {
  549.             $e->setSourceContext($this->source);
  550.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  551.                 $e->setTemplateLine($tags[$e->getTagName()]);
  552.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  553.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  554.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  555.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  556.             }
  557.             throw $e;
  558.         }
  559.     }
  560. }