var/cache/dev/twig/5c/5c43789f176555e9e95ab6641d8a0843.php line 33

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_d4628ae8b15cecf6101c1303dd119670 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.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/gallery_renderlet.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/gallery_renderlet.html.twig"));
  33.         // line 1
  34.         echo "<section class=\"row\">
  35.     ";
  36.         // line 2
  37.         if ((isset($context["asset"]) || array_key_exists("asset"$context) ? $context["asset"] : (function () { throw new RuntimeError('Variable "asset" does not exist.'2$this->source); })())) {
  38.             // line 3
  39.             echo "            ";
  40.             $context['_parent'] = $context;
  41.             $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"falsefalsefalse3));
  42.             foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  43.                 // line 4
  44.                 echo "                ";
  45.                 if (call_user_func_array($this->env->getTest('instanceof')->getCallable(), [$context["image"], "\\Pimcore\\Model\\Asset\\Image"])) {
  46.                     // line 5
  47.                     echo "                    <div class=\"col-md-4\">
  48.                         <a href=\"";
  49.                     // line 6
  50.                     echo twig_get_attribute($this->env$this->source$context["image"], "getThumbnail", [=> "galleryLightbox"], "method"falsefalsefalse6);
  51.                     echo "\" class=\"thumbnail\">
  52.                             ";
  53.                     // line 7
  54.                     echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["image"], "getThumbnail", [=> "galleryThumbnail"], "method"falsefalsefalse7), "getHTML", [=> ["imgAttributes" => ["class" => "img-thumbnail img-responsive"]]], "method"falsefalsefalse7);
  55.                     echo "
  56.                         </a>
  57.                     </div>
  58.                 ";
  59.                 }
  60.                 // line 11
  61.                 echo "            ";
  62.             }
  63.             $_parent $context['_parent'];
  64.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  65.             $context array_intersect_key($context$_parent) + $_parent;
  66.             // line 12
  67.             echo "    ";
  68.         }
  69.         // line 13
  70.         echo "</section>
  71. ";
  72.         
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  74.         
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  76.     }
  77.     public function getTemplateName()
  78.     {
  79.         return "default/gallery_renderlet.html.twig";
  80.     }
  81.     public function isTraitable()
  82.     {
  83.         return false;
  84.     }
  85.     public function getDebugInfo()
  86.     {
  87.         return array (  79 => 13,  76 => 12,  70 => 11,  63 => 7,  59 => 6,  56 => 5,  53 => 4,  48 => 3,  46 => 2,  43 => 1,);
  88.     }
  89.     public function getSourceContext()
  90.     {
  91.         return new Source("<section class=\"row\">
  92.     {% if asset %}
  93.             {% for image in asset.getChildren() %}
  94.                 {% if image is instanceof('\\\\Pimcore\\\\Model\\\\Asset\\\\Image') %}
  95.                     <div class=\"col-md-4\">
  96.                         <a href=\"{{ image.getThumbnail('galleryLightbox')|raw }}\" class=\"thumbnail\">
  97.                             {{ image.getThumbnail('galleryThumbnail').getHTML({imgAttributes: {class: 'img-thumbnail img-responsive'}})|raw }}
  98.                         </a>
  99.                     </div>
  100.                 {% endif %}
  101.             {% endfor %}
  102.     {% endif %}
  103. </section>
  104. ""default/gallery_renderlet.html.twig""/var/www/html/siteone/templates/default/gallery_renderlet.html.twig");
  105.     }
  106. }