var/cache/dev/twig/56/56b6cc9a677fb4038867e46ffc96ce94.php line 58

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. /* document/document.html.twig */
  14. class __TwigTemplate_2a1a0d685e11712adfd1126ce2624aa2 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->blocks = [
  23.             'main_content' => [$this'block_main_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 2
  29.         return "document.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""document/document.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""document/document.html.twig"));
  38.         $this->parent $this->loadTemplate("document.html.twig""document/document.html.twig"2);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 4
  46.     public function block_main_content($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  53.         // line 5
  54.         echo "  
  55.   ";
  56.         // line 6
  57.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'6$this->source); })())) {
  58.             // line 7
  59.             echo "  <div style=\"height:100px;\"></div>
  60.   ";
  61.         }
  62.         // line 9
  63.         echo "           
  64.   ";
  65.         // line 10
  66.         $context["contentBlock1"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""contentblock1");
  67.         echo "    
  68.   ";
  69.         // line 11
  70.         $context['_parent'] = $context;
  71.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""contentblock1"), "iterator", [], "any"falsefalsefalse11));
  72.         $context['loop'] = [
  73.           'parent' => $context['_parent'],
  74.           'index0' => 0,
  75.           'index'  => 1,
  76.           'first'  => true,
  77.         ];
  78.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  79.             $length count($context['_seq']);
  80.             $context['loop']['revindex0'] = $length 1;
  81.             $context['loop']['revindex'] = $length;
  82.             $context['loop']['length'] = $length;
  83.             $context['loop']['last'] = === $length;
  84.         }
  85.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  86.             echo "   
  87.     ";
  88.             // line 12
  89.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'12$this->source); })())) {
  90.                 // line 13
  91.                 echo "      ";
  92.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""blocktype", ["store" => [=> [=> "panel-12-with-headlines"=> "1-spaltig mit Headlines"], => [=> "panel-12"=> "1-spaltig volle Breite"], => [=> "panel-6-6"=> "2-spaltig, 50/50 Aufteilung"], => [=> "panel-6-6-slidein"=> "2-spaltig animierte Boxen"], => [=> "panel-6-6-circles"=> "2-spaltig runder Hintergrund"], => [=> "panel-4-8"=> "2-spaltig, 30/70 Aufteilung"], => [=> "panel-3-3-3-3"=> "4-spaltig"], => [=> "panel-slider-gallery"=> "Bildergalerie"], => [=> "panel-booking"=> "Buchungstool toubiz.de"], => [=> "horizontal-line"=> "Horizontale Linie"]], "defaultValue" => "panel-12""width" => 300"reload" => true]);
  93.                 // line 29
  94.                 echo "
  95.     ";
  96.             }
  97.             // line 31
  98.             echo "  
  99.     ";
  100.             // line 32
  101.             if ( !twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""blocktype"), "isEmpty", [], "method"falsefalsefalse32)) {
  102.                 echo "          
  103.         ";
  104.                 // line 33
  105.                 echo twig_replace_filter(twig_include($this->env$context, (("_includes/content-blocks/" twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""blocktype"), "getData", [], "method"falsefalsefalse33)) . ".html.twig")), ["7SCHWABEN" => "<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>"]);
  106.                 echo "          
  107.     ";
  108.             }
  109.             // line 35
  110.             echo "  ";
  111.             ++$context['loop']['index0'];
  112.             ++$context['loop']['index'];
  113.             $context['loop']['first'] = false;
  114.             if (isset($context['loop']['length'])) {
  115.                 --$context['loop']['revindex0'];
  116.                 --$context['loop']['revindex'];
  117.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  118.             }
  119.         }
  120.         $_parent $context['_parent'];
  121.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  122.         $context array_intersect_key($context$_parent) + $_parent;
  123.         // line 36
  124.         echo "
  125.   ";
  126.         // line 37
  127.         echo twig_include($this->env$context"_includes/apartmentsSlider.html.twig");
  128.         echo "
  129. ";
  130.         
  131.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  132.         
  133.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  134.     }
  135.     public function getTemplateName()
  136.     {
  137.         return "document/document.html.twig";
  138.     }
  139.     public function isTraitable()
  140.     {
  141.         return false;
  142.     }
  143.     public function getDebugInfo()
  144.     {
  145.         return array (  141 => 37,  138 => 36,  124 => 35,  119 => 33,  115 => 32,  112 => 31,  108 => 29,  105 => 13,  103 => 12,  84 => 11,  80 => 10,  77 => 9,  73 => 7,  71 => 6,  68 => 5,  58 => 4,  35 => 2,);
  146.     }
  147.     public function getSourceContext()
  148.     {
  149.         return new Source("
  150. {% extends 'document.html.twig' %}
  151. {% block main_content %}
  152.   
  153.   {% if editmode %}
  154.   <div style=\"height:100px;\"></div>
  155.   {% endif %}
  156.            
  157.   {% set contentBlock1 = pimcore_block('contentblock1') %}    
  158.   {% for i in pimcore_block('contentblock1').iterator %}   
  159.     {% if editmode %}
  160.       {{ pimcore_select('blocktype', {
  161.           \"store\": [
  162.               [\"panel-12-with-headlines\", \"1-spaltig mit Headlines\"],
  163.               [\"panel-12\", \"1-spaltig volle Breite\"],
  164.               [\"panel-6-6\", \"2-spaltig, 50/50 Aufteilung\"],
  165.               [\"panel-6-6-slidein\", \"2-spaltig animierte Boxen\"],
  166.               [\"panel-6-6-circles\", \"2-spaltig runder Hintergrund\"],
  167.               [\"panel-4-8\", \"2-spaltig, 30/70 Aufteilung\"],
  168.               [\"panel-3-3-3-3\", \"4-spaltig\"],
  169.               [\"panel-slider-gallery\", \"Bildergalerie\"],
  170.               [\"panel-booking\", \"Buchungstool toubiz.de\"],
  171.               [\"horizontal-line\", \"Horizontale Linie\"]
  172.           ],
  173.           \"defaultValue\": \"panel-12\",
  174.           \"width\": 300,
  175.           \"reload\": true
  176.       }) }}
  177.     {% endif %}
  178.   
  179.     {% if not pimcore_select('blocktype').isEmpty() %}          
  180.         {{ include('_includes/content-blocks/' ~ pimcore_select('blocktype').getData() ~ '.html.twig') | replace({'7SCHWABEN': '<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>'}) | raw }}          
  181.     {% endif %}
  182.   {% endfor %}
  183.   {{ include('_includes/apartmentsSlider.html.twig') }}
  184. {% endblock %}
  185. ""document/document.html.twig""/var/www/vhosts/das7schwaben.de/httpdocs/pimcore_x/templates/document/document.html.twig");
  186.     }
  187. }