var/cache/dev/twig/f2/f206a3ba4420cccc5461b5ef2ec8f813.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. /* areas/gallery-single-images/view.html.twig */
  14. class __TwigTemplate_24ab47e17e156dcc5ecb818223c7147c 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""areas/gallery-single-images/view.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""areas/gallery-single-images/view.html.twig"));
  33.         // line 1
  34.         $macros["macros"] = $this->macros["macros"] = $this->loadTemplate("includes/macros.html.twig""areas/gallery-single-images/view.html.twig"1)->unwrap();
  35.         // line 2
  36.         echo "
  37. <section class=\"area-gallery-single-images ";
  38.         // line 3
  39.         echo (( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'3$this->source); })())) ? ("row") : (""));
  40.         echo "\">
  41.         ";
  42.         // line 4
  43.         $context['_parent'] = $context;
  44.         $context['_seq'] = twig_ensure_traversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->getBlockIterator($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""gallery")));
  45.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  46.             // line 5
  47.             echo "                ";
  48.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'5$this->source); })())) {
  49.                 // line 6
  50.                 echo "                        ";
  51.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""image", ["thumbnail" => "galleryThumbnail""imgAttributes" => ["class" => "img-thumbnail"]]);
  52.                 echo "
  53.                 ";
  54.             } else {
  55.                 // line 8
  56.                 echo "                        <div class=\"col-md-4\">
  57.                                 ";
  58.                 // line 9
  59.                 echo twig_call_macro($macros["macros"], "macro_image_link", [$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""image", ["thumbnail" => "galleryThumbnail""imgAttributes" => ["class" => "img-thumbnail"]]), (isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'9$this->source); })()), "galleryLightbox"], 9$context$this->getSourceContext());
  60.                 echo "
  61.                          </div>
  62.                 ";
  63.             }
  64.             // line 12
  65.             echo "
  66.         ";
  67.         }
  68.         $_parent $context['_parent'];
  69.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  70.         $context array_intersect_key($context$_parent) + $_parent;
  71.         // line 14
  72.         echo "</section>
  73. ";
  74.         
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  76.         
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  78.     }
  79.     public function getTemplateName()
  80.     {
  81.         return "areas/gallery-single-images/view.html.twig";
  82.     }
  83.     public function isTraitable()
  84.     {
  85.         return false;
  86.     }
  87.     public function getDebugInfo()
  88.     {
  89.         return array (  81 => 14,  74 => 12,  68 => 9,  65 => 8,  59 => 6,  56 => 5,  52 => 4,  48 => 3,  45 => 2,  43 => 1,);
  90.     }
  91.     public function getSourceContext()
  92.     {
  93.         return new Source("{% import 'includes/macros.html.twig' as macros %}
  94. <section class=\"area-gallery-single-images {{ ( not editmode ? 'row':'') }}\">
  95.         {% for i in pimcore_iterate_block(pimcore_block('gallery')) %}
  96.                 {% if editmode %}
  97.                         {{ pimcore_image('image', { thumbnail: 'galleryThumbnail', imgAttributes: {class: 'img-thumbnail'}}) }}
  98.                 {% else %}
  99.                         <div class=\"col-md-4\">
  100.                                 {{ macros.image_link(pimcore_image('image', { thumbnail: 'galleryThumbnail', imgAttributes: {class: 'img-thumbnail'}}), editmode, 'galleryLightbox') }}
  101.                          </div>
  102.                 {% endif %}
  103.         {% endfor %}
  104. </section>
  105. ""areas/gallery-single-images/view.html.twig""/var/www/html/siteone/templates/areas/gallery-single-images/view.html.twig");
  106.     }
  107. }