<?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;
/* areas/projects-card-slider-brick/view.html.twig */
class __TwigTemplate_02a015471b780518a743af901574e75d519d6ca2e35d28e496993a8f1470e592 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->parent = false;
$this->blocks = [
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
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", "areas/projects-card-slider-brick/view.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/projects-card-slider-brick/view.html.twig"));
// line 1
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);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/projects-card-slider-brick/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
<!-- Cards 3 col -->
<section>
<div class=\"sm:container py-10 mx-auto md:py-20\">
<h1 class=\"mx-4 sm:mx-0 mb-8 text-2xl leading-10 md:text-4xl md:mb-14\">
{% if editmode %}
{{ pimcore_input('title', { placeholder: defaultTitle ?? 'Kop' }) }}
{% else %}
{{ pimcore_input('title').getData() ?: defaultTitle ?? '' }}
{% endif %}
</h1>
{% if editmode %}
{% if (projects ?? null) is empty and pimcore_relations('projects').isEmpty() %}
{% embed 'app/editmodenotice.html.twig' %}
{% block title %} Er zijn nog geen projecten gekoppeld. {% endblock %}
{% block information %}
{% if projects is defined %}
Je kunt gerelateerde projecten toevoegen dit Project Data Object,
onder het tabje \"Relaties en Media\".
{% else %}
Je kunt gerelateerde projecten toevoegen door op het potloodje te klikken.
{% endif %}
{% endblock %}
{% endembed %}
{% endif %}
{% endif %}
<div class=\"grid grid-cols-12 gap-8\">
{% set selectedProjects = (projects ?? pimcore_relations('projects').getElements())|slice(0, projectsLimit ?? null) %}
{% for project in selectedProjects %}
{% set output = (project.meta_description ?: (project.webdesq_content|striptags)) %}
{% if (output and project.title is not empty) %}
{{ include('includes/cards/default.html.twig', {
project: project,
class: 'md:col-span-4 mx-4 sm:mx-0',
labelOverride: labelOverride
}) }}
{% endif %}
{% endfor %}
</div>
</div>
</section>
{% endblock %}
{% endembed %}
", "areas/projects-card-slider-brick/view.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/projects-card-slider-brick/view.html.twig");
}
public function checkSecurity()
{
static $tags = ["embed" => 1];
static $filters = [];
static $functions = [];
try {
$this->sandbox->checkSecurity(
['embed'],
[],
[],
$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;
}
}
}
/* areas/projects-card-slider-brick/view.html.twig */
class __TwigTemplate_02a015471b780518a743af901574e75d519d6ca2e35d28e496993a8f1470e592___409838378 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
{
return "app/area-brick-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", "areas/projects-card-slider-brick/view.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/projects-card-slider-brick/view.html.twig"));
$this->parent = $this->loadTemplate("app/area-brick-layout.html.twig", "areas/projects-card-slider-brick/view.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 2
/**
* @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 3
yield " <!-- Cards 3 col -->
<section>
<div class=\"sm:container py-10 mx-auto md:py-20\">
<h1 class=\"mx-4 sm:mx-0 mb-8 text-2xl leading-10 md:text-4xl md:mb-14\">
";
// line 8
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 8, $this->source); })())) {
// line 9
yield " ";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title", ["placeholder" => ($context["defaultTitle"] ?? "Kop")]);
yield "
";
} else {
// line 11
yield " ";
yield ((CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title"), "getData", [], "method", false, false, true, 11)) ? ($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", false, false, true, 11), 11, $this->source), "html", null, true)) : (($context["defaultTitle"] ?? "")));
yield "
";
}
// line 13
yield "
</h1>
";
// line 16
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 16, $this->source); })())) {
// line 17
yield " ";
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", false, false, true, 17))) {
// line 18
yield " ";
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);
// line 29
yield " ";
}
// line 30
yield " ";
}
// line 31
yield " <div class=\"grid grid-cols-12 gap-8\">
";
// line 32
$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", false, false, true, 32)), 0, ($context["projectsLimit"] ?? null));
// line 33
yield " ";
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["project"]) {
// line 34
yield " ";
$context["output"] = ((CoreExtension::getAttribute($this->env, $this->source, $context["project"], "meta_description", [], "any", false, false, true, 34)) ? (CoreExtension::getAttribute($this->env, $this->source, $context["project"], "meta_description", [], "any", false, false, true, 34)) : (Twig\Extension\CoreExtension::striptags($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["project"], "webdesq_content", [], "any", false, false, true, 34), 34, $this->source))));
// line 35
yield " ";
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", false, false, true, 35)))) {
// line 36
yield " ";
yield Twig\Extension\CoreExtension::include($this->env, $context, "includes/cards/default.html.twig", ["project" => $this->sandbox->ensureToStringAllowed( // line 37
$context["project"], 37, $this->source), "class" => "md:col-span-4 mx-4 sm:mx-0", "labelOverride" => $this->sandbox->ensureToStringAllowed( // line 39
(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)]);
// line 40
yield "
";
}
// line 42
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['project'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 43
yield " </div>
</div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/projects-card-slider-brick/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
<!-- Cards 3 col -->
<section>
<div class=\"sm:container py-10 mx-auto md:py-20\">
<h1 class=\"mx-4 sm:mx-0 mb-8 text-2xl leading-10 md:text-4xl md:mb-14\">
{% if editmode %}
{{ pimcore_input('title', { placeholder: defaultTitle ?? 'Kop' }) }}
{% else %}
{{ pimcore_input('title').getData() ?: defaultTitle ?? '' }}
{% endif %}
</h1>
{% if editmode %}
{% if (projects ?? null) is empty and pimcore_relations('projects').isEmpty() %}
{% embed 'app/editmodenotice.html.twig' %}
{% block title %} Er zijn nog geen projecten gekoppeld. {% endblock %}
{% block information %}
{% if projects is defined %}
Je kunt gerelateerde projecten toevoegen dit Project Data Object,
onder het tabje \"Relaties en Media\".
{% else %}
Je kunt gerelateerde projecten toevoegen door op het potloodje te klikken.
{% endif %}
{% endblock %}
{% endembed %}
{% endif %}
{% endif %}
<div class=\"grid grid-cols-12 gap-8\">
{% set selectedProjects = (projects ?? pimcore_relations('projects').getElements())|slice(0, projectsLimit ?? null) %}
{% for project in selectedProjects %}
{% set output = (project.meta_description ?: (project.webdesq_content|striptags)) %}
{% if (output and project.title is not empty) %}
{{ include('includes/cards/default.html.twig', {
project: project,
class: 'md:col-span-4 mx-4 sm:mx-0',
labelOverride: labelOverride
}) }}
{% endif %}
{% endfor %}
</div>
</div>
</section>
{% endblock %}
{% endembed %}
", "areas/projects-card-slider-brick/view.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/projects-card-slider-brick/view.html.twig");
}
public function checkSecurity()
{
static $tags = ["extends" => 1, "if" => 8, "embed" => 18, "set" => 32, "for" => 33];
static $filters = ["escape" => 11, "slice" => 32, "striptags" => 34];
static $functions = ["pimcore_input" => 9, "pimcore_relations" => 17, "include" => 36];
try {
$this->sandbox->checkSecurity(
['extends', 'if', 'embed', 'set', 'for'],
['escape', 'slice', 'striptags'],
['pimcore_input', 'pimcore_relations', 'include'],
$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;
}
}
}
/* areas/projects-card-slider-brick/view.html.twig */
class __TwigTemplate_02a015471b780518a743af901574e75d519d6ca2e35d28e496993a8f1470e592___2065150578 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 = [
'title' => [$this, 'block_title'],
'information' => [$this, 'block_information'],
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 18
return "app/editmodenotice.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", "areas/projects-card-slider-brick/view.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/projects-card-slider-brick/view.html.twig"));
$this->parent = $this->loadTemplate("app/editmodenotice.html.twig", "areas/projects-card-slider-brick/view.html.twig", 18);
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 19
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(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", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield " Er zijn nog geen projecten gekoppeld. ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
// line 20
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_information(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", "information"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "information"));
// line 21
yield " ";
if (array_key_exists("projects", $context)) {
// line 22
yield " Je kunt gerelateerde projecten toevoegen dit Project Data Object,
onder het tabje \"Relaties en Media\".
";
} else {
// line 25
yield " Je kunt gerelateerde projecten toevoegen door op het potloodje te klikken.
";
}
// line 27
yield " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/projects-card-slider-brick/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
<!-- Cards 3 col -->
<section>
<div class=\"sm:container py-10 mx-auto md:py-20\">
<h1 class=\"mx-4 sm:mx-0 mb-8 text-2xl leading-10 md:text-4xl md:mb-14\">
{% if editmode %}
{{ pimcore_input('title', { placeholder: defaultTitle ?? 'Kop' }) }}
{% else %}
{{ pimcore_input('title').getData() ?: defaultTitle ?? '' }}
{% endif %}
</h1>
{% if editmode %}
{% if (projects ?? null) is empty and pimcore_relations('projects').isEmpty() %}
{% embed 'app/editmodenotice.html.twig' %}
{% block title %} Er zijn nog geen projecten gekoppeld. {% endblock %}
{% block information %}
{% if projects is defined %}
Je kunt gerelateerde projecten toevoegen dit Project Data Object,
onder het tabje \"Relaties en Media\".
{% else %}
Je kunt gerelateerde projecten toevoegen door op het potloodje te klikken.
{% endif %}
{% endblock %}
{% endembed %}
{% endif %}
{% endif %}
<div class=\"grid grid-cols-12 gap-8\">
{% set selectedProjects = (projects ?? pimcore_relations('projects').getElements())|slice(0, projectsLimit ?? null) %}
{% for project in selectedProjects %}
{% set output = (project.meta_description ?: (project.webdesq_content|striptags)) %}
{% if (output and project.title is not empty) %}
{{ include('includes/cards/default.html.twig', {
project: project,
class: 'md:col-span-4 mx-4 sm:mx-0',
labelOverride: labelOverride
}) }}
{% endif %}
{% endfor %}
</div>
</div>
</section>
{% endblock %}
{% endembed %}
", "areas/projects-card-slider-brick/view.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/projects-card-slider-brick/view.html.twig");
}
public function checkSecurity()
{
static $tags = ["extends" => 18, "if" => 21];
static $filters = [];
static $functions = [];
try {
$this->sandbox->checkSecurity(
['extends', 'if'],
[],
[],
$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;
}
}
}