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/multiPageBoxCarousel.html.twig")); // line 1 echo "
"; // line 3 $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.', 3, $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 4 echo "
"; // line 9 $this->loadTemplate("default/components/pageBoxImage.html.twig", "default/components/multiPageBoxCarousel.html.twig", 9)->display($context); // line 10 echo "
"; // line 13 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "title", [], "any", false, false, false, 13), "html", null, true); echo "
"; // line 15 if ( !twig_test_empty((((twig_get_attribute($this->env, $this->source, $context["page"], "boxBody", [], "any", true, true, false, 15) && !(null === twig_get_attribute($this->env, $this->source, $context["page"], "boxBody", [], "any", false, false, false, 15)))) ? (twig_get_attribute($this->env, $this->source, $context["page"], "boxBody", [], "any", false, false, false, 15)) : (twig_get_attribute($this->env, $this->source, $context["page"], "description", [], "any", false, false, false, 15))))) { // line 16 echo "

"; echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["page"], "boxBody", [], "any", true, true, false, 16)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["page"], "boxBody", [], "any", false, false, false, 16), twig_get_attribute($this->env, $this->source, $context["page"], "description", [], "any", false, false, false, 16))) : (twig_get_attribute($this->env, $this->source, $context["page"], "description", [], "any", false, false, false, 16))), "html", null, true); echo "

"; } // line 18 echo " "; // line 19 if (( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["page"], "travelProgram", [], "any", false, false, false, 19)) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["page"], "travelProgram", [], "any", false, false, false, 19), "lowestPrice", [], "any", false, false, false, 19) > 0))) { // line 20 echo "
Für "; // line 21 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, 21), "lowestPrice", [], "any", false, false, false, 21)), "html", null, true); echo ",- € p.P.
"; } // line 24 echo "
env, twig_get_attribute($this->env, $this->source, $context["page"], "urlPath", [], "any", false, false, false, 26), "html", null, true); echo "\">ansehen
"; ++$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 31 echo "
"; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); } public function getTemplateName() { return "default/components/multiPageBoxCarousel.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 125 => 31, 106 => 26, 102 => 24, 96 => 21, 93 => 20, 91 => 19, 88 => 18, 82 => 16, 80 => 15, 75 => 13, 70 => 10, 68 => 9, 61 => 4, 44 => 3, 40 => 1,); } public function getSourceContext() { return new Source("
{% for page in pages %}
{% include 'default/components/pageBoxImage.html.twig' %}
{{ page.title }}
{% if (page.boxBody ?? page.description) is not empty %}

{{ page.boxBody|default(page.description) }}

{% endif %} {% if page.travelProgram is not empty and page.travelProgram.lowestPrice > 0 %}
Für {{ page.travelProgram.lowestPrice|number_format }},- € p.P.
{% endif %}
ansehen
{% endfor %}
", "default/components/multiPageBoxCarousel.html.twig", "/Users/kadmin/Websites/sterntours-3/app/Resources/views/default/components/multiPageBoxCarousel.html.twig"); } }