var/cache/dev/twig/c1/c1b1bf267e99f1a6dea17865ef58c56deeeff81f0d663539e7f5ec4d82b178fa.php line 62

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/content-brick/partials/override-image.html.twig */
  16. class __TwigTemplate_099b0189231df62082aff6cca3a307b6b1090bd8b093b9c5f5d17cb9975974e2 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/content-brick/partials/override-image.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/content-brick/partials/override-image.html.twig"));
  40.         // line 1
  41.         yield "
  42. ";
  43.         // line 2
  44.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'2$this->source); })())) {
  45.             // line 3
  46.             yield "    ";
  47.             yield from $this->loadTemplate("areas/content-brick/partials/override-image.html.twig""areas/content-brick/partials/override-image.html.twig"3"249182598")->unwrap()->yield($context);
  48.         }
  49.         // line 13
  50.         yield "
  51. ";
  52.         // line 14
  53.         yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["overrideImage"]) || array_key_exists("overrideImage"$context) ? $context["overrideImage"] : (function () { throw new RuntimeError('Variable "overrideImage" does not exist.'14$this->source); })()), "thumbnail", ["hero-image-card"], "method"falsefalsetrue14), "html", [["pictureAttributes" => ["class" => "block overflow-hidden rounded-md"]]], "method"falsefalsetrue14), 14$this->source);
  54.         // line 16
  55.         yield "
  56. ";
  57.         
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  59.         
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  61.         yield from [];
  62.     }
  63.     /**
  64.      * @codeCoverageIgnore
  65.      */
  66.     public function getTemplateName(): string
  67.     {
  68.         return "areas/content-brick/partials/override-image.html.twig";
  69.     }
  70.     /**
  71.      * @codeCoverageIgnore
  72.      */
  73.     public function isTraitable(): bool
  74.     {
  75.         return false;
  76.     }
  77.     /**
  78.      * @codeCoverageIgnore
  79.      */
  80.     public function getDebugInfo(): array
  81.     {
  82.         return array (  64 => 16,  62 => 14,  59 => 13,  55 => 3,  53 => 2,  50 => 1,);
  83.     }
  84.     public function getSourceContext(): Source
  85.     {
  86.         return new Source("
  87. {% if editmode %}
  88.     {% embed 'app/editmodenotice.html.twig' %}
  89.         {% block title %}Afwijkende afbeelding.{% endblock %}
  90.         {% block content %}
  91.             {{ pimcore_image('image', {width:500, thumbnail: 'content', reload: true, pictureAttributes: {class: 'block overflow-hidden rounded-md'}}) }}
  92.         {% endblock %}
  93.         {% block information %}
  94.             Indien gewenst kunt u hier alsnog een afwijkende afbeelding plaatsen. De gekozen afbeelding wordt dan hieronder geplaatst in plaats van de reeds gekoppelde DataObject afbeelding.
  95.         {% endblock %}
  96.     {% endembed %}
  97. {% endif %}
  98. {{ overrideImage.thumbnail('hero-image-card').html({
  99.     pictureAttributes: {class: 'block overflow-hidden rounded-md'}
  100. }) | raw }}
  101. ""areas/content-brick/partials/override-image.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/content-brick/partials/override-image.html.twig");
  102.     }
  103.     
  104.     public function checkSecurity()
  105.     {
  106.         static $tags = ["if" => 2"embed" => 3];
  107.         static $filters = ["raw" => 16];
  108.         static $functions = [];
  109.         try {
  110.             $this->sandbox->checkSecurity(
  111.                 ['if''embed'],
  112.                 ['raw'],
  113.                 [],
  114.                 $this->source
  115.             );
  116.         } catch (SecurityError $e) {
  117.             $e->setSourceContext($this->source);
  118.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  119.                 $e->setTemplateLine($tags[$e->getTagName()]);
  120.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  121.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  122.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  123.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  124.             }
  125.             throw $e;
  126.         }
  127.     }
  128. }
  129. /* areas/content-brick/partials/override-image.html.twig */
  130. class __TwigTemplate_099b0189231df62082aff6cca3a307b6b1090bd8b093b9c5f5d17cb9975974e2___249182598 extends Template
  131. {
  132.     private Source $source;
  133.     /**
  134.      * @var array<string, Template>
  135.      */
  136.     private array $macros = [];
  137.     public function __construct(Environment $env)
  138.     {
  139.         parent::__construct($env);
  140.         $this->source $this->getSourceContext();
  141.         $this->blocks = [
  142.             'title' => [$this'block_title'],
  143.             'content' => [$this'block_content'],
  144.             'information' => [$this'block_information'],
  145.         ];
  146.         $this->sandbox $this->extensions[SandboxExtension::class];
  147.         $this->checkSecurity();
  148.     }
  149.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  150.     {
  151.         // line 3
  152.         return "app/editmodenotice.html.twig";
  153.     }
  154.     protected function doDisplay(array $context, array $blocks = []): iterable
  155.     {
  156.         $macros $this->macros;
  157.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  158.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/content-brick/partials/override-image.html.twig"));
  159.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  160.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/content-brick/partials/override-image.html.twig"));
  161.         $this->parent $this->loadTemplate("app/editmodenotice.html.twig""areas/content-brick/partials/override-image.html.twig"3);
  162.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  163.         
  164.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  165.         
  166.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  167.     }
  168.     // line 4
  169.     /**
  170.      * @return iterable<null|scalar|\Stringable>
  171.      */
  172.     public function block_title(array $context, array $blocks = []): iterable
  173.     {
  174.         $macros $this->macros;
  175.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  176.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  177.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  178.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  179.         yield "Afwijkende afbeelding.";
  180.         
  181.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  182.         
  183.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  184.         yield from [];
  185.     }
  186.     // line 5
  187.     /**
  188.      * @return iterable<null|scalar|\Stringable>
  189.      */
  190.     public function block_content(array $context, array $blocks = []): iterable
  191.     {
  192.         $macros $this->macros;
  193.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  194.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  195.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  196.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  197.         // line 6
  198.         yield "            ";
  199.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""image", ["width" => 500"thumbnail" => "content""reload" => true"pictureAttributes" => ["class" => "block overflow-hidden rounded-md"]]);
  200.         yield "
  201.         ";
  202.         
  203.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  204.         
  205.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  206.         yield from [];
  207.     }
  208.     // line 8
  209.     /**
  210.      * @return iterable<null|scalar|\Stringable>
  211.      */
  212.     public function block_information(array $context, array $blocks = []): iterable
  213.     {
  214.         $macros $this->macros;
  215.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  216.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""information"));
  217.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  218.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""information"));
  219.         // line 9
  220.         yield "            Indien gewenst kunt u hier alsnog een afwijkende afbeelding plaatsen. De gekozen afbeelding wordt dan hieronder geplaatst in plaats van de reeds gekoppelde DataObject afbeelding.
  221.         ";
  222.         
  223.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  224.         
  225.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  226.         yield from [];
  227.     }
  228.     /**
  229.      * @codeCoverageIgnore
  230.      */
  231.     public function getTemplateName(): string
  232.     {
  233.         return "areas/content-brick/partials/override-image.html.twig";
  234.     }
  235.     /**
  236.      * @codeCoverageIgnore
  237.      */
  238.     public function isTraitable(): bool
  239.     {
  240.         return false;
  241.     }
  242.     /**
  243.      * @codeCoverageIgnore
  244.      */
  245.     public function getDebugInfo(): array
  246.     {
  247.         return array (  264 => 9,  251 => 8,  237 => 6,  224 => 5,  201 => 4,  178 => 3,  64 => 16,  62 => 14,  59 => 13,  55 => 3,  53 => 2,  50 => 1,);
  248.     }
  249.     public function getSourceContext(): Source
  250.     {
  251.         return new Source("
  252. {% if editmode %}
  253.     {% embed 'app/editmodenotice.html.twig' %}
  254.         {% block title %}Afwijkende afbeelding.{% endblock %}
  255.         {% block content %}
  256.             {{ pimcore_image('image', {width:500, thumbnail: 'content', reload: true, pictureAttributes: {class: 'block overflow-hidden rounded-md'}}) }}
  257.         {% endblock %}
  258.         {% block information %}
  259.             Indien gewenst kunt u hier alsnog een afwijkende afbeelding plaatsen. De gekozen afbeelding wordt dan hieronder geplaatst in plaats van de reeds gekoppelde DataObject afbeelding.
  260.         {% endblock %}
  261.     {% endembed %}
  262. {% endif %}
  263. {{ overrideImage.thumbnail('hero-image-card').html({
  264.     pictureAttributes: {class: 'block overflow-hidden rounded-md'}
  265. }) | raw }}
  266. ""areas/content-brick/partials/override-image.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/content-brick/partials/override-image.html.twig");
  267.     }
  268.     
  269.     public function checkSecurity()
  270.     {
  271.         static $tags = ["extends" => 3];
  272.         static $filters = [];
  273.         static $functions = ["pimcore_image" => 6];
  274.         try {
  275.             $this->sandbox->checkSecurity(
  276.                 ['extends'],
  277.                 [],
  278.                 ['pimcore_image'],
  279.                 $this->source
  280.             );
  281.         } catch (SecurityError $e) {
  282.             $e->setSourceContext($this->source);
  283.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  284.                 $e->setTemplateLine($tags[$e->getTagName()]);
  285.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  286.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  287.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  288.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  289.             }
  290.             throw $e;
  291.         }
  292.     }
  293. }