<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* document/apartment.html.twig */
class __TwigTemplate_727371e4faa6b1db5ec555e663f4cf99 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'main_content' => [$this, 'block_main_content'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "document.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "document/apartment.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "document/apartment.html.twig"));
$this->parent = $this->loadTemplate("document.html.twig", "document/apartment.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
public function block_main_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main_content"));
// line 5
echo "
<div class=\"page-banner\">
<div class=\"container\">
<div class=\"page-header\">
<h3>";
// line 9
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["apartment"]) || array_key_exists("apartment", $context) ? $context["apartment"] : (function () { throw new RuntimeError('Variable "apartment" does not exist.', 9, $this->source); })()), "name", [], "any", false, false, false, 9), "html", null, true);
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["apartment"]) || array_key_exists("apartment", $context) ? $context["apartment"] : (function () { throw new RuntimeError('Variable "apartment" does not exist.', 9, $this->source); })()), "stars", [], "any", false, false, false, 9) > 0)) {
echo "<img class=\"apmt-stars-rating\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["apartment"]) || array_key_exists("apartment", $context) ? $context["apartment"] : (function () { throw new RuntimeError('Variable "apartment" does not exist.', 9, $this->source); })()), "stars", [], "any", false, false, false, 9), "html", null, true);
echo " Sterne\" src=\"/themes/7schwaben/img/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["apartment"]) || array_key_exists("apartment", $context) ? $context["apartment"] : (function () { throw new RuntimeError('Variable "apartment" does not exist.', 9, $this->source); })()), "stars", [], "any", false, false, false, 9), "html", null, true);
echo "_Sterne.png\" />";
}
echo "</h3>
<h1>";
// line 10
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["apartment"]) || array_key_exists("apartment", $context) ? $context["apartment"] : (function () { throw new RuntimeError('Variable "apartment" does not exist.', 10, $this->source); })()), "shortDescription", [], "any", false, false, false, 10), "html", null, true);
echo "</h1>
</div>
</div>
</div>
";
// line 15
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["apartment"]) || array_key_exists("apartment", $context) ? $context["apartment"] : (function () { throw new RuntimeError('Variable "apartment" does not exist.', 15, $this->source); })()), "gallery", [], "any", false, false, false, 15)) > 0)) {
// line 16
echo " <!-- slider gallery -->
<section>
<div class=\"gallery-slider\">
\t\t\t";
// line 19
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["apartment"]) || array_key_exists("apartment", $context) ? $context["apartment"] : (function () { throw new RuntimeError('Variable "apartment" does not exist.', 19, $this->source); })()), "gallery", [], "any", false, false, false, 19));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 20
echo " <div class=\"gallery-preview\">
\t\t\t\t<a class=\"fancybox gallery-image\" data-fancybox=\"home-gallery\" href=\"";
// line 21
echo twig_escape_filter($this->env, $context["image"], "html", null, true);
echo "\">
<img class=\"gallery-preview-image\" src=\"";
// line 22
echo twig_escape_filter($this->env, $context["image"], "html", null, true);
echo "\" />
</a>
\t\t\t</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 26
echo " </div>
</section>
";
}
// line 29
echo "
<section>
<div class=\"container\">
<div class=\"apartment-book-now\">
";
// line 34
if (((isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 34, $this->source); })()) == "de")) {
// line 35
echo " <h3>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["apartment"]) || array_key_exists("apartment", $context) ? $context["apartment"] : (function () { throw new RuntimeError('Variable "apartment" does not exist.', 35, $this->source); })()), "name", [], "any", false, false, false, 35), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("you-like-it"), "html", null, true);
echo "?</h3>
";
}
// line 37
echo " ";
if (((isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 37, $this->source); })()) == "en")) {
// line 38
echo " <h3>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("you-like-it"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["apartment"]) || array_key_exists("apartment", $context) ? $context["apartment"] : (function () { throw new RuntimeError('Variable "apartment" does not exist.', 38, $this->source); })()), "name", [], "any", false, false, false, 38), "html", null, true);
echo "?</h3>
";
}
// line 40
echo " <p>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("direct-booking-discount"), "html", null, true);
echo "</p>
<div class=\"text-center\">
<a class=\"btn btn-default\" href=\"/";
// line 42
echo twig_escape_filter($this->env, (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 42, $this->source); })()), "html", null, true);
echo "/buchen.php\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("booking"), "html", null, true);
echo "</a>
</div>
</div>
<br />
<br />
<h3>";
// line 49
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("description"), "html", null, true);
echo "</h3>
<div class=\"row\">
";
// line 51
if ((array_key_exists("description", $context) && (twig_length_filter($this->env, (isset($context["description"]) || array_key_exists("description", $context) ? $context["description"] : (function () { throw new RuntimeError('Variable "description" does not exist.', 51, $this->source); })())) > 0))) {
// line 52
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["description"]) || array_key_exists("description", $context) ? $context["description"] : (function () { throw new RuntimeError('Variable "description" does not exist.', 52, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 53
echo " <div class=\"col-12 col-md-4\">
";
// line 54
echo twig_escape_filter($this->env, $context["item"], "html", null, true);
echo "\t
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 57
echo " ";
}
// line 58
echo " </div>
<br />
<br />
<h3>";
// line 63
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("facilities"), "html", null, true);
echo "</h3>
<div class=\"row\">
";
// line 65
if ((array_key_exists("facilities", $context) && (twig_length_filter($this->env, (isset($context["facilities"]) || array_key_exists("facilities", $context) ? $context["facilities"] : (function () { throw new RuntimeError('Variable "facilities" does not exist.', 65, $this->source); })())) > 0))) {
// line 66
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["facilities"]) || array_key_exists("facilities", $context) ? $context["facilities"] : (function () { throw new RuntimeError('Variable "facilities" does not exist.', 66, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 67
echo " <div class=\"col-12 col-md-4\">
";
// line 68
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["item"]), "html", null, true);
echo "\t
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 71
echo " ";
}
// line 72
echo " </div>
<br />
<br />
<h3>";
// line 77
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("extras"), "html", null, true);
echo "</h3>
<div class=\"row\">
";
// line 79
if ((array_key_exists("extras", $context) && (twig_length_filter($this->env, (isset($context["extras"]) || array_key_exists("extras", $context) ? $context["extras"] : (function () { throw new RuntimeError('Variable "extras" does not exist.', 79, $this->source); })())) > 0))) {
// line 80
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["extras"]) || array_key_exists("extras", $context) ? $context["extras"] : (function () { throw new RuntimeError('Variable "extras" does not exist.', 80, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 81
echo " <div class=\"col-12 col-md-4\">
";
// line 82
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["item"]), "html", null, true);
echo "\t
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 85
echo " ";
}
echo "
</div>
<br />
<div class=\"row\">
<div class=\"col-6\">
<div class=\"row\">
<div class=\"col-12 col-md-6 grey\">
* ";
// line 94
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("subject-to-charge"), "html", null, true);
echo "
</div>
<div class=\"col-12 col-md-6 grey\">
** ";
// line 97
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("on-request"), "html", null, true);
echo "
</div>
</div>
</div>
<div class=\"col-6 text-end grey\">
<a id=\"printPage\" class=\"btn btn-light print-icon\" onclick=\"javascript:window.print();\"><span class=\"lsf\">print</span> ";
// line 102
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("print"), "html", null, true);
echo "</a>
</div>
</div>
<br />
<div class=\"row\">
<div class=\"col\">
<img src=\"";
// line 110
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["apartment"]) || array_key_exists("apartment", $context) ? $context["apartment"] : (function () { throw new RuntimeError('Variable "apartment" does not exist.', 110, $this->source); })()), "floorPlan", [], "any", false, false, false, 110), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["apartment"]) || array_key_exists("apartment", $context) ? $context["apartment"] : (function () { throw new RuntimeError('Variable "apartment" does not exist.', 110, $this->source); })()), "name", [], "any", false, false, false, 110), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["apartment"]) || array_key_exists("apartment", $context) ? $context["apartment"] : (function () { throw new RuntimeError('Variable "apartment" does not exist.', 110, $this->source); })()), "name", [], "any", false, false, false, 110), "html", null, true);
echo "\" />
</div>
</div>
</div>
</section>
";
// line 117
echo twig_include($this->env, $context, "_includes/apartmentsSlider.html.twig");
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "document/apartment.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 321 => 117, 303 => 110, 292 => 102, 284 => 97, 278 => 94, 265 => 85, 256 => 82, 253 => 81, 248 => 80, 246 => 79, 241 => 77, 234 => 72, 231 => 71, 222 => 68, 219 => 67, 214 => 66, 212 => 65, 207 => 63, 200 => 58, 197 => 57, 188 => 54, 185 => 53, 180 => 52, 178 => 51, 173 => 49, 161 => 42, 155 => 40, 147 => 38, 144 => 37, 136 => 35, 134 => 34, 127 => 29, 122 => 26, 112 => 22, 108 => 21, 105 => 20, 101 => 19, 96 => 16, 94 => 15, 86 => 10, 74 => 9, 68 => 5, 58 => 4, 35 => 2,);
}
public function getSourceContext()
{
return new Source("
{% extends 'document.html.twig' %}
{% block main_content %}
<div class=\"page-banner\">
<div class=\"container\">
<div class=\"page-header\">
<h3>{{ apartment.name }} {% if apartment.stars > 0 %}<img class=\"apmt-stars-rating\" alt=\"{{ apartment.stars }} Sterne\" src=\"/themes/7schwaben/img/{{ apartment.stars }}_Sterne.png\" />{% endif %}</h3>
<h1>{{ apartment.shortDescription }}</h1>
</div>
</div>
</div>
{% if apartment.gallery | length > 0 %}
<!-- slider gallery -->
<section>
<div class=\"gallery-slider\">
\t\t\t{% for image in apartment.gallery %}
<div class=\"gallery-preview\">
\t\t\t\t<a class=\"fancybox gallery-image\" data-fancybox=\"home-gallery\" href=\"{{ image }}\">
<img class=\"gallery-preview-image\" src=\"{{ image }}\" />
</a>
\t\t\t</div>
{% endfor %}
</div>
</section>
{% endif %}
<section>
<div class=\"container\">
<div class=\"apartment-book-now\">
{% if locale == 'de' %}
<h3>{{ apartment.name }} {{ 'you-like-it' | trans }}?</h3>
{% endif %}
{% if locale == 'en' %}
<h3>{{ 'you-like-it' | trans }} {{ apartment.name }}?</h3>
{% endif %}
<p>{{ 'direct-booking-discount' | trans }}</p>
<div class=\"text-center\">
<a class=\"btn btn-default\" href=\"/{{ locale }}/buchen.php\">{{ 'booking' | trans }}</a>
</div>
</div>
<br />
<br />
<h3>{{ 'description' | trans }}</h3>
<div class=\"row\">
{% if description is defined and description | length > 0 %}
{% for item in description %}
<div class=\"col-12 col-md-4\">
{{ item }}\t
</div>
{% endfor %}
{% endif %}
</div>
<br />
<br />
<h3>{{ 'facilities' | trans }}</h3>
<div class=\"row\">
{% if facilities is defined and facilities | length > 0 %}
{% for item in facilities %}
<div class=\"col-12 col-md-4\">
{{ item | trans }}\t
</div>
{% endfor %}
{% endif %}
</div>
<br />
<br />
<h3>{{ 'extras' | trans }}</h3>
<div class=\"row\">
{% if extras is defined and extras | length > 0 %}
{% for item in extras %}
<div class=\"col-12 col-md-4\">
{{ item | trans }}\t
</div>
{% endfor %}
{% endif %}
</div>
<br />
<div class=\"row\">
<div class=\"col-6\">
<div class=\"row\">
<div class=\"col-12 col-md-6 grey\">
* {{ 'subject-to-charge' | trans }}
</div>
<div class=\"col-12 col-md-6 grey\">
** {{ 'on-request' | trans }}
</div>
</div>
</div>
<div class=\"col-6 text-end grey\">
<a id=\"printPage\" class=\"btn btn-light print-icon\" onclick=\"javascript:window.print();\"><span class=\"lsf\">print</span> {{ 'print' | trans }}</a>
</div>
</div>
<br />
<div class=\"row\">
<div class=\"col\">
<img src=\"{{ apartment.floorPlan }}\" alt=\"{{ 'layout' | trans }} {{ apartment.name }}\" title=\"{{ 'layout' | trans }} {{ apartment.name }}\" />
</div>
</div>
</div>
</section>
{{ include('_includes/apartmentsSlider.html.twig') }}
{% endblock %}
", "document/apartment.html.twig", "/var/www/vhosts/das7schwaben.de/httpdocs/pimcore_x/templates/document/apartment.html.twig");
}
}