<?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;
/* _includes/apartmentsSlider.html.twig */
class __TwigTemplate_cdabe9f72ca7593fc7ba41dd365306d2 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "_includes/apartmentsSlider.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "_includes/apartmentsSlider.html.twig"));
// line 1
echo "
";
// line 2
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 2, $this->source); })())) {
// line 3
echo " <div class=\"pim pim-tooltip\">
Automatisch generierter Inhalt. Bearbeiten unter: DATENOBJEKTE / APARTMENTS
</div>
";
}
// line 7
echo "
<!-- apartments section -->
<section class=\"bg-grey\" style=\"overflow:hidden;\">
<!-- apartments slider -->
<div class=\"appartments-slider\"> \t\t\t\t
";
// line 12
if ((array_key_exists("apartments", $context) && (twig_length_filter($this->env, (isset($context["apartments"]) || array_key_exists("apartments", $context) ? $context["apartments"] : (function () { throw new RuntimeError('Variable "apartments" does not exist.', 12, $this->source); })())) > 0))) {
// line 13
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["apartments"]) || array_key_exists("apartments", $context) ? $context["apartments"] : (function () { throw new RuntimeError('Variable "apartments" does not exist.', 13, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["apartment"]) {
echo "
<div class=\"appartment-preview\">
\t\t\t\t<img class=\"appartment-preview-image\" src=\"";
// line 15
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["apartment"], "mainImage", [], "any", false, false, false, 15), "html", null, true);
echo "\" />
<div class=\"appartment-preview-box\">
<h3 class=\"appartment-name red\">
";
// line 18
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["apartment"], "name", [], "any", false, false, false, 18), "html", null, true);
echo "
</h3>
<div class=\"appartment-description\">
";
// line 21
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["apartment"], "shortDescription", [], "any", false, false, false, 21), "html", null, true);
echo "
</div>
<div class=\"appartment-options\">
<a class=\"btn btn-default\" href=\"/";
// line 24
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.', 24, $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><a class=\"btn btn-default\" href=\"/";
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.', 24, $this->source); })()), "html", null, true);
echo "/apartments/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["apartment"], "key", [], "any", false, false, false, 24), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("details"), "html", null, true);
echo "</a>
</div>
</div>
\t\t\t</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['apartment'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 29
echo " ";
}
// line 30
echo " </div>
<!-- end apartments slider -->
</section>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "_includes/apartmentsSlider.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 111 => 30, 108 => 29, 89 => 24, 83 => 21, 77 => 18, 71 => 15, 63 => 13, 61 => 12, 54 => 7, 48 => 3, 46 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("
{% if editmode %}
<div class=\"pim pim-tooltip\">
Automatisch generierter Inhalt. Bearbeiten unter: DATENOBJEKTE / APARTMENTS
</div>
{% endif %}
<!-- apartments section -->
<section class=\"bg-grey\" style=\"overflow:hidden;\">
<!-- apartments slider -->
<div class=\"appartments-slider\"> \t\t\t\t
{% if (apartments is defined and apartments | length > 0) %}
{% for apartment in apartments %}
<div class=\"appartment-preview\">
\t\t\t\t<img class=\"appartment-preview-image\" src=\"{{ apartment.mainImage }}\" />
<div class=\"appartment-preview-box\">
<h3 class=\"appartment-name red\">
{{ apartment.name }}
</h3>
<div class=\"appartment-description\">
{{ apartment.shortDescription }}
</div>
<div class=\"appartment-options\">
<a class=\"btn btn-default\" href=\"/{{ locale }}/buchen.php\">{{ 'booking' | trans }}</a><a class=\"btn btn-default\" href=\"/{{ locale }}/apartments/{{ apartment.key }}\">{{ 'details' | trans }}</a>
</div>
</div>
\t\t\t</div>
{% endfor %}
{% endif %}
</div>
<!-- end apartments slider -->
</section>", "_includes/apartmentsSlider.html.twig", "/var/www/vhosts/das7schwaben.de/httpdocs/pimcore_x/templates/_includes/apartmentsSlider.html.twig");
}
}