var/cache/dev/twig/8e/8e1999d859ad3d52ab9da720ed7f5284.php line 33

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* _includes/apartmentsSlider.html.twig */
  14. class __TwigTemplate_cdabe9f72ca7593fc7ba41dd365306d2 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""_includes/apartmentsSlider.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""_includes/apartmentsSlider.html.twig"));
  33.         // line 1
  34.         echo "
  35.   ";
  36.         // line 2
  37.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'2$this->source); })())) {
  38.             // line 3
  39.             echo "  <div class=\"pim pim-tooltip\">
  40.     Automatisch generierter Inhalt. Bearbeiten unter: DATENOBJEKTE / APARTMENTS 
  41.   </div>
  42.   ";
  43.         }
  44.         // line 7
  45.         echo "
  46.   <!-- apartments section -->     
  47.   <section class=\"bg-grey\" style=\"overflow:hidden;\">        
  48.     <!-- apartments slider -->       
  49.     <div class=\"appartments-slider\">  \t\t\t\t
  50.       ";
  51.         // line 12
  52.         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))) {
  53.             // line 13
  54.             echo "      ";
  55.             $context['_parent'] = $context;
  56.             $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); })()));
  57.             foreach ($context['_seq'] as $context["_key"] => $context["apartment"]) {
  58.                 echo "              
  59.       <div class=\"appartment-preview\">
  60. \t\t\t\t<img class=\"appartment-preview-image\" src=\"";
  61.                 // line 15
  62.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["apartment"], "mainImage", [], "any"falsefalsefalse15), "html"nulltrue);
  63.                 echo "\" />
  64.         <div class=\"appartment-preview-box\">
  65.           <h3 class=\"appartment-name red\">
  66.             ";
  67.                 // line 18
  68.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["apartment"], "name", [], "any"falsefalsefalse18), "html"nulltrue);
  69.                 echo "
  70.           </h3>
  71.           <div class=\"appartment-description\">
  72.             ";
  73.                 // line 21
  74.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["apartment"], "shortDescription", [], "any"falsefalsefalse21), "html"nulltrue);
  75.                 echo "
  76.           </div>
  77.           <div class=\"appartment-options\">
  78.             <a class=\"btn btn-default\" href=\"/";
  79.                 // line 24
  80.                 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"nulltrue);
  81.                 echo "/buchen.php\">";
  82.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("booking"), "html"nulltrue);
  83.                 echo "</a><a class=\"btn btn-default\" href=\"/";
  84.                 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"nulltrue);
  85.                 echo "/apartments/";
  86.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["apartment"], "key", [], "any"falsefalsefalse24), "html"nulltrue);
  87.                 echo "\">";
  88.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("details"), "html"nulltrue);
  89.                 echo "</a>
  90.           </div>
  91.         </div>
  92. \t\t\t</div>          
  93.       ";
  94.             }
  95.             $_parent $context['_parent'];
  96.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['apartment'], $context['_parent'], $context['loop']);
  97.             $context array_intersect_key($context$_parent) + $_parent;
  98.             // line 29
  99.             echo "      ";
  100.         }
  101.         // line 30
  102.         echo "    </div>
  103.     <!-- end apartments slider -->      
  104.   </section>";
  105.         
  106.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  107.         
  108.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  109.     }
  110.     public function getTemplateName()
  111.     {
  112.         return "_includes/apartmentsSlider.html.twig";
  113.     }
  114.     public function isTraitable()
  115.     {
  116.         return false;
  117.     }
  118.     public function getDebugInfo()
  119.     {
  120.         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,);
  121.     }
  122.     public function getSourceContext()
  123.     {
  124.         return new Source("
  125.   {% if editmode %}
  126.   <div class=\"pim pim-tooltip\">
  127.     Automatisch generierter Inhalt. Bearbeiten unter: DATENOBJEKTE / APARTMENTS 
  128.   </div>
  129.   {% endif %}
  130.   <!-- apartments section -->     
  131.   <section class=\"bg-grey\" style=\"overflow:hidden;\">        
  132.     <!-- apartments slider -->       
  133.     <div class=\"appartments-slider\">  \t\t\t\t
  134.       {% if (apartments is defined and apartments | length > 0) %}
  135.       {% for apartment in apartments %}              
  136.       <div class=\"appartment-preview\">
  137. \t\t\t\t<img class=\"appartment-preview-image\" src=\"{{ apartment.mainImage }}\" />
  138.         <div class=\"appartment-preview-box\">
  139.           <h3 class=\"appartment-name red\">
  140.             {{ apartment.name }}
  141.           </h3>
  142.           <div class=\"appartment-description\">
  143.             {{ apartment.shortDescription }}
  144.           </div>
  145.           <div class=\"appartment-options\">
  146.             <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>
  147.           </div>
  148.         </div>
  149. \t\t\t</div>          
  150.       {% endfor %}
  151.       {% endif %}
  152.     </div>
  153.     <!-- end apartments slider -->      
  154.   </section>""_includes/apartmentsSlider.html.twig""/var/www/vhosts/das7schwaben.de/httpdocs/pimcore_x/templates/_includes/apartmentsSlider.html.twig");
  155.     }
  156. }