var/cache/dev/twig/7a/7ac9d1e382ccd8f42859f98c10bf4ad4aeb36aa588af96a21e28ab4738776e6f.php line 40

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. /* includes/partials/_contact-snippet.html.twig */
  16. class __TwigTemplate_adfb1f04a3224ff7fd6f1a0ff62d524bdbcdfc027eb15c896109ad5f5b9f3e24 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""includes/partials/_contact-snippet.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""includes/partials/_contact-snippet.html.twig"));
  40.         // line 2
  41.         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"falsefalsetrue2)) {
  42.             // line 3
  43.             yield "    ";
  44.             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"falsefalsetrue3), 3$this->source));
  45.             yield "
  46. ";
  47.         }
  48.         // line 5
  49.         yield "
  50. ";
  51.         // line 6
  52.         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"falsefalsetrue6)))) {
  53.             // line 7
  54.             yield "    ";
  55.             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'");
  56.             yield "
  57. ";
  58.         }
  59.         
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  61.         
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  63.         yield from [];
  64.     }
  65.     /**
  66.      * @codeCoverageIgnore
  67.      */
  68.     public function getTemplateName(): string
  69.     {
  70.         return "includes/partials/_contact-snippet.html.twig";
  71.     }
  72.     /**
  73.      * @codeCoverageIgnore
  74.      */
  75.     public function isTraitable(): bool
  76.     {
  77.         return false;
  78.     }
  79.     /**
  80.      * @codeCoverageIgnore
  81.      */
  82.     public function getDebugInfo(): array
  83.     {
  84.         return array (  63 => 7,  61 => 6,  58 => 5,  52 => 3,  50 => 2,);
  85.     }
  86.     public function getSourceContext(): Source
  87.     {
  88.         return new Source("{# include a document-snippet - in this case the shared contact snippet templates/includes/shared/contact.html.twig #}
  89. {% if document.getproperty('contactSnippet') %}
  90.     {{ pimcore_inc(document.getproperty('contactSnippet')) }}
  91. {% endif %}
  92. {% if editmode and document.getproperty('contactSnippet') is null %}
  93.     {{ 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 }}
  94. {% endif %}""includes/partials/_contact-snippet.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/includes/partials/_contact-snippet.html.twig");
  95.     }
  96.     
  97.     public function checkSecurity()
  98.     {
  99.         static $tags = ["if" => 2];
  100.         static $filters = ["raw" => 7];
  101.         static $functions = ["pimcore_inc" => 3"alert" => 7];
  102.         try {
  103.             $this->sandbox->checkSecurity(
  104.                 ['if'],
  105.                 ['raw'],
  106.                 ['pimcore_inc''alert'],
  107.                 $this->source
  108.             );
  109.         } catch (SecurityError $e) {
  110.             $e->setSourceContext($this->source);
  111.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  112.                 $e->setTemplateLine($tags[$e->getTagName()]);
  113.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  114.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  115.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  116.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  117.             }
  118.             throw $e;
  119.         }
  120.     }
  121. }