var/cache/dev/twig/01/01ceafe8ad941bc08ebc11004aa4fe95.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. /* default/gallery_renderlet.html.twig */
  14. class __TwigTemplate_8905999acc707d6ae03807253a4e06ca 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""default/gallery_renderlet.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""default/gallery_renderlet.html.twig"));
  35.         // line 1
  36.         echo "<section class=\"row\">
  37.     ";
  38.         // line 2
  39.         if ((isset($context["asset"]) || array_key_exists("asset"$context) ? $context["asset"] : (function () { throw new RuntimeError('Variable "asset" does not exist.'2$this->source); })())) {
  40.             // line 3
  41.             echo "            ";
  42.             $context['_parent'] = $context;
  43.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["asset"]) || array_key_exists("asset"$context) ? $context["asset"] : (function () { throw new RuntimeError('Variable "asset" does not exist.'3$this->source); })()), "getChildren", [], "method"falsefalsetrue3));
  44.             foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  45.                 // line 4
  46.                 echo "                ";
  47.                 if ($this->env->getTest('instanceof')->getCallable()($context["image"], "\\Pimcore\\Model\\Asset\\Image")) {
  48.                     // line 5
  49.                     echo "                    <div class=\"col-md-4\">
  50.                         <a href=\"";
  51.                     // line 6
  52.                     echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["image"], "getThumbnail", ["galleryLightbox"], "method"falsefalsetrue6), 6$this->source);
  53.                     echo "\" class=\"thumbnail\">
  54.                             ";
  55.                     // line 7
  56.                     echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["image"], "getThumbnail", ["galleryThumbnail"], "method"falsefalsetrue7), "getHTML", [["imgAttributes" => ["class" => "img-thumbnail img-responsive"]]], "method"falsefalsetrue7), 7$this->source);
  57.                     echo "
  58.                         </a>
  59.                     </div>
  60.                 ";
  61.                 }
  62.                 // line 11
  63.                 echo "            ";
  64.             }
  65.             $_parent $context['_parent'];
  66.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  67.             $context array_intersect_key($context$_parent) + $_parent;
  68.             // line 12
  69.             echo "    ";
  70.         }
  71.         // line 13
  72.         echo "</section>
  73. ";
  74.         
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  76.         
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  78.     }
  79.     /**
  80.      * @codeCoverageIgnore
  81.      */
  82.     public function getTemplateName()
  83.     {
  84.         return "default/gallery_renderlet.html.twig";
  85.     }
  86.     /**
  87.      * @codeCoverageIgnore
  88.      */
  89.     public function isTraitable()
  90.     {
  91.         return false;
  92.     }
  93.     /**
  94.      * @codeCoverageIgnore
  95.      */
  96.     public function getDebugInfo()
  97.     {
  98.         return array (  81 => 13,  78 => 12,  72 => 11,  65 => 7,  61 => 6,  58 => 5,  55 => 4,  50 => 3,  48 => 2,  45 => 1,);
  99.     }
  100.     public function getSourceContext()
  101.     {
  102.         return new Source("<section class=\"row\">
  103.     {% if asset %}
  104.             {% for image in asset.getChildren() %}
  105.                 {% if image is instanceof('\\\\Pimcore\\\\Model\\\\Asset\\\\Image') %}
  106.                     <div class=\"col-md-4\">
  107.                         <a href=\"{{ image.getThumbnail('galleryLightbox')|raw }}\" class=\"thumbnail\">
  108.                             {{ image.getThumbnail('galleryThumbnail').getHTML({imgAttributes: {class: 'img-thumbnail img-responsive'}})|raw }}
  109.                         </a>
  110.                     </div>
  111.                 {% endif %}
  112.             {% endfor %}
  113.     {% endif %}
  114. </section>
  115. ""default/gallery_renderlet.html.twig""/var/www/dev-10/templates/default/gallery_renderlet.html.twig");
  116.     }
  117.     
  118.     public function checkSecurity()
  119.     {
  120.         static $tags = array("if" => 2"for" => 3);
  121.         static $filters = array("raw" => 6);
  122.         static $functions = array();
  123.         try {
  124.             $this->sandbox->checkSecurity(
  125.                 ['if''for'],
  126.                 ['raw'],
  127.                 []
  128.             );
  129.         } catch (SecurityError $e) {
  130.             $e->setSourceContext($this->source);
  131.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  132.                 $e->setTemplateLine($tags[$e->getTagName()]);
  133.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  134.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  135.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  136.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  137.             }
  138.             throw $e;
  139.         }
  140.     }
  141. }