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/pageSliderSidebarWidget.html.twig")); // line 1 if ( !twig_test_empty((isset($context["pages"]) || array_key_exists("pages", $context) ? $context["pages"] : (function () { throw new RuntimeError('Variable "pages" does not exist.', 1, $this->source); })()))) { // line 2 echo "
env, (isset($context["target_widget"]) || array_key_exists("target_widget", $context) ? $context["target_widget"] : (function () { throw new RuntimeError('Variable "target_widget" does not exist.', 5, $this->source); })()), "html", null, true); echo "\" data-toggle=\"collapse\" aria-expanded=\"true\">"; echo twig_escape_filter($this->env, (isset($context["slider_title"]) || array_key_exists("slider_title", $context) ? $context["slider_title"] : (function () { throw new RuntimeError('Variable "slider_title" does not exist.', 5, $this->source); })()), "html", null, true); echo "
env, (isset($context["target_widget"]) || array_key_exists("target_widget", $context) ? $context["target_widget"] : (function () { throw new RuntimeError('Variable "target_widget" does not exist.', 7, $this->source); })()), "html", null, true); echo "\" aria-expanded=\"true\">
"; // line 10 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["pages"]) || array_key_exists("pages", $context) ? $context["pages"] : (function () { throw new RuntimeError('Variable "pages" does not exist.', 10, $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["page"]) { // line 11 echo "
env, $this->source, $context["loop"], "first", [], "any", false, false, false, 12)) ? (" active") : ("")); echo "\"> env, ((twig_get_attribute($this->env, $this->source, $context["page"], "urlPath", [], "any", true, true, false, 14)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["page"], "urlPath", [], "any", false, false, false, 14), "javascript:void(0);")) : ("javascript:void(0);")), "html", null, true); echo "\" class=\"item text-center\">
"; // line 16 $this->loadTemplate("default/components/pageBoxImage.html.twig", "default/components/sidebar/pageSliderSidebarWidget.html.twig", 16)->display($context); // line 17 echo "
"; // line 20 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "title", [], "any", false, false, false, 20), "html", null, true); echo "

"; // line 22 echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, $context["page"], "boxBody", [], "any", true, true, false, 22) && !(null === twig_get_attribute($this->env, $this->source, $context["page"], "boxBody", [], "any", false, false, false, 22)))) ? (twig_get_attribute($this->env, $this->source, $context["page"], "boxBody", [], "any", false, false, false, 22)) : (twig_get_attribute($this->env, $this->source, $context["page"], "description", [], "any", false, false, false, 22))), "html", null, true); echo "

"; // line 24 if (( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["page"], "travelProgram", [], "any", false, false, false, 24)) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["page"], "travelProgram", [], "any", false, false, false, 24), "lowestPrice", [], "any", false, false, false, 24) > 0))) { // line 25 echo "
Für "; // line 26 echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["page"], "travelProgram", [], "any", false, false, false, 26), "lowestPrice", [], "any", false, false, false, 26)), "html", null, true); echo ",- € p.P.
"; } // line 29 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['page'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 34 echo "
"; } $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); } public function getTemplateName() { return "default/components/sidebar/pageSliderSidebarWidget.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 136 => 34, 118 => 29, 112 => 26, 109 => 25, 107 => 24, 102 => 22, 97 => 20, 92 => 17, 90 => 16, 85 => 14, 80 => 12, 77 => 11, 60 => 10, 54 => 7, 47 => 5, 42 => 2, 40 => 1,); } public function getSourceContext() { return new Source("{% if pages is not empty %}
{{ slider_title }}
{% endif %}", "default/components/sidebar/pageSliderSidebarWidget.html.twig", "/Users/kadmin/Websites/sterntours-3/app/Resources/views/default/components/sidebar/pageSliderSidebarWidget.html.twig"); } }