<?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;
/* includes/partials/_contact-snippet.html.twig */
class __TwigTemplate_adfb1f04a3224ff7fd6f1a0ff62d524bdbcdfc027eb15c896109ad5f5b9f3e24 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", "includes/partials/_contact-snippet.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/partials/_contact-snippet.html.twig"));
// line 2
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 2, $this->source); })()), "getproperty", ["contactSnippet"], "method", false, false, true, 2)) {
// line 3
yield " ";
yield $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 3, $this->source); })()), "getproperty", ["contactSnippet"], "method", false, false, true, 3), 3, $this->source));
yield "
";
}
// line 5
yield "
";
// line 6
if (((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 6, $this->source); })()) && (null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 6, $this->source); })()), "getproperty", ["contactSnippet"], "method", false, false, true, 6)))) {
// line 7
yield " ";
yield $this->extensions['App\Twig\AlertExtension']->alert("Zo te zien is er nog geen contactSnippet ingesteld voor deze pagina (en mogelijk taal). Stel dit in via 'Navigation & Properties -> Predefined properties -> contact Snippet'");
yield "
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "includes/partials/_contact-snippet.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 63 => 7, 61 => 6, 58 => 5, 52 => 3, 50 => 2,);
}
public function getSourceContext(): Source
{
return new Source("{# include a document-snippet - in this case the shared contact snippet templates/includes/shared/contact.html.twig #}
{% if document.getproperty('contactSnippet') %}
{{ pimcore_inc(document.getproperty('contactSnippet')) }}
{% endif %}
{% if editmode and document.getproperty('contactSnippet') is null %}
{{ alert(\"Zo te zien is er nog geen contactSnippet ingesteld voor deze pagina (en mogelijk taal). Stel dit in via 'Navigation & Properties -> Predefined properties -> contact Snippet'\")|raw }}
{% endif %}", "includes/partials/_contact-snippet.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/includes/partials/_contact-snippet.html.twig");
}
public function checkSecurity()
{
static $tags = ["if" => 2];
static $filters = ["raw" => 7];
static $functions = ["pimcore_inc" => 3, "alert" => 7];
try {
$this->sandbox->checkSecurity(
['if'],
['raw'],
['pimcore_inc', 'alert'],
$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;
}
}
}