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/pageBoxImage.html.twig")); // line 1 if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 1, $this->source); })()), "boxImageUrl", [], "any", false, false, false, 1))) { // line 2 echo " "; $context["image_url"] = twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 2, $this->source); })()), "boxImageUrl", [], "any", false, false, false, 2); // line 3 echo " "; $context["image_alt"] = ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "travelProgram", [], "any", false, true, false, 3), "title", [], "any", true, true, false, 3)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "travelProgram", [], "any", false, true, false, 3), "title", [], "any", false, false, false, 3), twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 3, $this->source); })()), "title", [], "any", false, false, false, 3))) : (twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 3, $this->source); })()), "title", [], "any", false, false, false, 3))); } elseif (( !twig_test_empty(twig_get_attribute($this->env, $this->source, // line 4 (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 4, $this->source); })()), "travelProgram", [], "any", false, false, false, 4)) && !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 4, $this->source); })()), "travelProgram", [], "any", false, false, false, 4), "previewImage", [], "any", false, false, false, 4)))) { // line 5 echo " "; $context["image_url"] = ("uploads/travel_program/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 5, $this->source); })()), "travelProgram", [], "any", false, false, false, 5), "previewImage", [], "any", false, false, false, 5), "fileNameWithExtension", [], "any", false, false, false, 5)); // line 6 echo " "; $context["image_alt"] = twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 6, $this->source); })()), "title", [], "any", false, false, false, 6); } elseif ((( !twig_test_empty(twig_get_attribute($this->env, $this->source, // line 7 (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 7, $this->source); })()), "fewoLodging", [], "any", false, false, false, 7)) && !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 7, $this->source); })()), "fewoLodging", [], "any", false, false, false, 7), "images", [], "any", false, false, false, 7))) && !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 7, $this->source); })()), "fewoLodging", [], "any", false, false, false, 7), "images", [], "any", false, false, false, 7), 0, [], "array", false, false, false, 7)))) { // line 8 echo " "; $context["image_url"] = ("_uploads/images/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 8, $this->source); })()), "fewoLodging", [], "any", false, false, false, 8), "images", [], "any", false, false, false, 8), 0, [], "array", false, false, false, 8), "file", [], "any", false, false, false, 8)); // line 9 echo " "; $context["image_alt"] = twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 9, $this->source); })()), "title", [], "any", false, false, false, 9); } else { // line 11 echo " "; $context["image_url"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/app/images/no-picture.png"); // line 12 echo " "; $context["image_alt"] = "Kein Vorschaubild vorhanden"; } // line 14 echo "
env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $this->extensions['Gregwar\ImageBundle\Extensions\ImageTwig']->image(twig_trim_filter((isset($context["image_url"]) || array_key_exists("image_url", $context) ? $context["image_url"] : (function () { throw new RuntimeError('Variable "image_url" does not exist.', 14, $this->source); })()), "/")), "cropResize", [0 => 360], "method", false, false, false, 14), "guess", [0 => 70], "method", false, false, false, 14), "html", null, true); echo "\" style=\"background-image:url("; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/placeholder-image.png"), "html", null, true); echo ")\">
"; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); } public function getTemplateName() { return "default/components/pageBoxImage.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 80 => 16, 72 => 14, 68 => 12, 65 => 11, 61 => 9, 58 => 8, 56 => 7, 53 => 6, 50 => 5, 48 => 4, 45 => 3, 42 => 2, 40 => 1,); } public function getSourceContext() { return new Source("{% if page.boxImageUrl is not empty %} {% set image_url = page.boxImageUrl %} {% set image_alt = page.travelProgram.title|default(page.title) %} {% elseif page.travelProgram is not empty and page.travelProgram.previewImage is not empty %} {% set image_url = 'uploads/travel_program/' ~ page.travelProgram.previewImage.fileNameWithExtension %} {% set image_alt = page.title %} {% elseif page.fewoLodging is not empty and page.fewoLodging.images is not empty and page.fewoLodging.images[0] is not empty %} {% set image_url = '_uploads/images/' ~ page.fewoLodging.images[0].file %} {% set image_alt = page.title %} {% else %} {% set image_url = asset('/bundles/app/images/no-picture.png')%} {% set image_alt = 'Kein Vorschaubild vorhanden' %} {% endif %}
", "default/components/pageBoxImage.html.twig", "/Users/kadmin/Websites/sterntours-3/app/Resources/views/default/components/pageBoxImage.html.twig"); } }