source = $this->getSourceContext(); $this->parent = false; $this->blocks = [ ]; } protected function doDisplay(array $context, array $blocks = []) { $macros = $this->macros; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", ":default/components/sidebar:sidebar.html.twig")); // line 2 echo "
"; // line 4 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["widgets"]) || array_key_exists("widgets", $context) ? $context["widgets"] : (function () { throw new RuntimeError('Variable "widgets" does not exist.', 4, $this->source); })())); $context['loop'] = [ 'parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true, ]; if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["widget"]) { // line 5 echo " "; if (twig_get_attribute($this->env, $this->source, $context["widget"], "component", [], "any", true, true, false, 5)) { // line 6 echo " "; $this->loadTemplate((("default/components/sidebar/" . twig_get_attribute($this->env, $this->source, $context["widget"], "component", [], "any", false, false, false, 6)) . ".html.twig"), ":default/components/sidebar:sidebar.html.twig", 6)->display($context); // line 7 echo " "; if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 7) == (isset($context["loop_half"]) || array_key_exists("loop_half", $context) ? $context["loop_half"] : (function () { throw new RuntimeError('Variable "loop_half" does not exist.', 7, $this->source); })()))) { // line 8 echo "
"; } // line 11 echo " "; } // line 12 echo " "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['widget'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 13 echo "

"; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); } public function getTemplateName() { return ":default/components/sidebar:sidebar.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 92 => 13, 78 => 12, 75 => 11, 70 => 8, 67 => 7, 64 => 6, 61 => 5, 44 => 4, 40 => 2,); } public function getSourceContext() { return new Source("{# @var page \\AppBundle\\Entity\\Page #}
{% for widget in widgets %} {% if widget.component is defined %} {% include 'default/components/sidebar/' ~ widget.component ~ '.html.twig' %} {% if(loop.index == loop_half ) %}
{% endif %} {% endif %} {% endfor %}

", ":default/components/sidebar:sidebar.html.twig", "/Users/kadmin/Websites/sterntours-3/app/Resources/views/default/components/sidebar/sidebar.html.twig"); } }