var/cache/dev/twig/61/61d3a1a93f0111d8b3908404c983318c.php line 35

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* areas/image/view.html.twig */
  14. class __TwigTemplate_1ba16693ded8bc5a50b53022a221f706 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/image/view.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/image/view.html.twig"));
  35.         // line 1
  36.         $macros["macros"] = $this->macros["macros"] = $this->loadTemplate("includes/macros.html.twig""areas/image/view.html.twig"1)->unwrap();
  37.         // line 2
  38.         echo "
  39. <section class=\"area-image d-block\">
  40.     ";
  41.         // line 4
  42.         echo twig_call_macro($macros["macros"], "macro_image_link", [$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""image", ["thumbnail" => "content""imgAttributes" => ["class" => "img-responsive"]]), (isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'4$this->source); })()), "galleryLightbox"], 4$context$this->getSourceContext());
  43.         echo "
  44. </section>
  45. ";
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     /**
  52.      * @codeCoverageIgnore
  53.      */
  54.     public function getTemplateName()
  55.     {
  56.         return "areas/image/view.html.twig";
  57.     }
  58.     /**
  59.      * @codeCoverageIgnore
  60.      */
  61.     public function isTraitable()
  62.     {
  63.         return false;
  64.     }
  65.     /**
  66.      * @codeCoverageIgnore
  67.      */
  68.     public function getDebugInfo()
  69.     {
  70.         return array (  51 => 4,  47 => 2,  45 => 1,);
  71.     }
  72.     public function getSourceContext()
  73.     {
  74.         return new Source("{% import 'includes/macros.html.twig' as macros %}
  75. <section class=\"area-image d-block\">
  76.     {{ macros.image_link(pimcore_image('image', { thumbnail: 'content', imgAttributes: {class: 'img-responsive'}}), editmode, 'galleryLightbox') }}
  77. </section>
  78. ""areas/image/view.html.twig""/var/www/dev-10/templates/areas/image/view.html.twig");
  79.     }
  80.     
  81.     public function checkSecurity()
  82.     {
  83.         static $tags = array("import" => 1);
  84.         static $filters = array();
  85.         static $functions = array("pimcore_image" => 4);
  86.         try {
  87.             $this->sandbox->checkSecurity(
  88.                 ['import'],
  89.                 [],
  90.                 ['pimcore_image']
  91.             );
  92.         } catch (SecurityError $e) {
  93.             $e->setSourceContext($this->source);
  94.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  95.                 $e->setTemplateLine($tags[$e->getTagName()]);
  96.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  97.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  98.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  99.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  100.             }
  101.             throw $e;
  102.         }
  103.     }
  104. }