var/cache/dev/twig/47/47f963776b003391483140181d0ceb99.php line 47

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. /* includes/sidebar.html.twig */
  14. class __TwigTemplate_b3126b0ff1a0787253413f3b22ebfb33 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.         // line 1
  24.         $_trait_0 $this->loadTemplate("includes/editmode-layout.html.twig""includes/sidebar.html.twig"1);
  25.         if (!$_trait_0->isTraitable()) {
  26.             throw new RuntimeError('Template "'."includes/editmode-layout.html.twig".'" cannot be used as a trait.'1$this->source);
  27.         }
  28.         $_trait_0_blocks $_trait_0->getBlocks();
  29.         $this->traits $_trait_0_blocks;
  30.         $this->blocks array_merge(
  31.             $this->traits,
  32.             [
  33.             ]
  34.         );
  35.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  36.         $this->checkSecurity();
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = [])
  39.     {
  40.         $macros $this->macros;
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/sidebar.html.twig"));
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/sidebar.html.twig"));
  45.         // line 2
  46.         echo "
  47. ";
  48.         // line 3
  49.         $this->displayBlock("editmode_header"$context$blocks);
  50.         echo "
  51. <div class=\"teasers\">
  52.     ";
  53.         // line 6
  54.         $context['_parent'] = $context;
  55.         $context['_seq'] = twig_ensure_traversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->getBlockIterator($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""teasers")));
  56.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  57.             // line 7
  58.             echo "        ";
  59.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"snippet""teaser");
  60.             echo "
  61.     ";
  62.         }
  63.         $_parent $context['_parent'];
  64.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  65.         $context array_intersect_key($context$_parent) + $_parent;
  66.         // line 9
  67.         echo "</div>
  68. ";
  69.         // line 11
  70.         $this->displayBlock("editmode_footer"$context$blocks);
  71.         echo "
  72. ";
  73.         
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  75.         
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  77.     }
  78.     /**
  79.      * @codeCoverageIgnore
  80.      */
  81.     public function getTemplateName()
  82.     {
  83.         return "includes/sidebar.html.twig";
  84.     }
  85.     /**
  86.      * @codeCoverageIgnore
  87.      */
  88.     public function isTraitable()
  89.     {
  90.         return false;
  91.     }
  92.     /**
  93.      * @codeCoverageIgnore
  94.      */
  95.     public function getDebugInfo()
  96.     {
  97.         return array (  83 => 11,  79 => 9,  70 => 7,  66 => 6,  60 => 3,  57 => 2,  30 => 1,);
  98.     }
  99.     public function getSourceContext()
  100.     {
  101.         return new Source("{% use 'includes/editmode-layout.html.twig' %}
  102. {{ block('editmode_header') }}
  103. <div class=\"teasers\">
  104.     {% for i in pimcore_iterate_block(pimcore_block('teasers')) %}
  105.         {{ pimcore_snippet('teaser') }}
  106.     {% endfor %}
  107. </div>
  108. {{ block('editmode_footer') }}
  109. ""includes/sidebar.html.twig""/var/www/dev-10/templates/includes/sidebar.html.twig");
  110.     }
  111.     
  112.     public function checkSecurity()
  113.     {
  114.         static $tags = array("for" => 6);
  115.         static $filters = array();
  116.         static $functions = array("pimcore_iterate_block" => 6"pimcore_block" => 6"pimcore_snippet" => 7);
  117.         try {
  118.             $this->sandbox->checkSecurity(
  119.                 ['for'],
  120.                 [],
  121.                 ['pimcore_iterate_block''pimcore_block''pimcore_snippet']
  122.             );
  123.         } catch (SecurityError $e) {
  124.             $e->setSourceContext($this->source);
  125.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  126.                 $e->setTemplateLine($tags[$e->getTagName()]);
  127.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  128.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  129.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  130.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  131.             }
  132.             throw $e;
  133.         }
  134.     }
  135. }