var/cache/dev/twig/7f/7f5bedff4fcaa2c38d85563f4fade835.php line 70

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_60d5ffffbedcc1fda199122c98234232 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/gallery-single-images/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/gallery-single-images/view.html.twig"));
  35.         // line 1
  36.         $macros["macros"] = $this->macros["macros"] = $this->loadTemplate("includes/macros.html.twig""areas/gallery-single-images/view.html.twig"1)->unwrap();
  37.         // line 2
  38.         echo "
  39. <section class=\"area-gallery-single-images ";
  40.         // line 3
  41.         echo (( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'3$this->source); })())) ? ("row") : (""));
  42.         echo "\">
  43.         ";
  44.         // line 4
  45.         $context['_parent'] = $context;
  46.         $context['_seq'] = twig_ensure_traversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->getBlockIterator($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""gallery")));
  47.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  48.             // line 5
  49.             echo "                ";
  50.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'5$this->source); })())) {
  51.                 // line 6
  52.                 echo "                        ";
  53.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""image", ["thumbnail" => "galleryThumbnail""imgAttributes" => ["class" => "img-thumbnail"]]);
  54.                 echo "
  55.                 ";
  56.             } else {
  57.                 // line 8
  58.                 echo "                        <div class=\"col-md-4\">
  59.                                 ";
  60.                 // line 9
  61.                 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());
  62.                 echo "
  63.                          </div>
  64.                 ";
  65.             }
  66.             // line 12
  67.             echo "
  68.         ";
  69.         }
  70.         $_parent $context['_parent'];
  71.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  72.         $context array_intersect_key($context$_parent) + $_parent;
  73.         // line 14
  74.         echo "</section>
  75. ";
  76.         
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  78.         
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  80.     }
  81.     /**
  82.      * @codeCoverageIgnore
  83.      */
  84.     public function getTemplateName()
  85.     {
  86.         return "areas/gallery-single-images/view.html.twig";
  87.     }
  88.     /**
  89.      * @codeCoverageIgnore
  90.      */
  91.     public function isTraitable()
  92.     {
  93.         return false;
  94.     }
  95.     /**
  96.      * @codeCoverageIgnore
  97.      */
  98.     public function getDebugInfo()
  99.     {
  100.         return array (  83 => 14,  76 => 12,  70 => 9,  67 => 8,  61 => 6,  58 => 5,  54 => 4,  50 => 3,  47 => 2,  45 => 1,);
  101.     }
  102.     public function getSourceContext()
  103.     {
  104.         return new Source("{% import 'includes/macros.html.twig' as macros %}
  105. <section class=\"area-gallery-single-images {{ ( not editmode ? 'row':'') }}\">
  106.         {% for i in pimcore_iterate_block(pimcore_block('gallery')) %}
  107.                 {% if editmode %}
  108.                         {{ pimcore_image('image', { thumbnail: 'galleryThumbnail', imgAttributes: {class: 'img-thumbnail'}}) }}
  109.                 {% else %}
  110.                         <div class=\"col-md-4\">
  111.                                 {{ macros.image_link(pimcore_image('image', { thumbnail: 'galleryThumbnail', imgAttributes: {class: 'img-thumbnail'}}), editmode, 'galleryLightbox') }}
  112.                          </div>
  113.                 {% endif %}
  114.         {% endfor %}
  115. </section>
  116. ""areas/gallery-single-images/view.html.twig""/var/www/dev-10/templates/areas/gallery-single-images/view.html.twig");
  117.     }
  118.     
  119.     public function checkSecurity()
  120.     {
  121.         static $tags = array("import" => 1"for" => 4"if" => 5);
  122.         static $filters = array();
  123.         static $functions = array("pimcore_iterate_block" => 4"pimcore_block" => 4"pimcore_image" => 6);
  124.         try {
  125.             $this->sandbox->checkSecurity(
  126.                 ['import''for''if'],
  127.                 [],
  128.                 ['pimcore_iterate_block''pimcore_block''pimcore_image']
  129.             );
  130.         } catch (SecurityError $e) {
  131.             $e->setSourceContext($this->source);
  132.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  133.                 $e->setTemplateLine($tags[$e->getTagName()]);
  134.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  135.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  136.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  137.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  138.             }
  139.             throw $e;
  140.         }
  141.     }
  142. }