var/cache/dev/twig/c0/c0584b9db4b3c0063eb4dffd5324f243.php line 50

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. /* @App/Templates/corporate.html.twig */
  14. class __TwigTemplate_baeaff23c5600fc832686702ca8d0dcb 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.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "@FoxHabbitBasis/Layout/layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@App/Templates/corporate.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@App/Templates/corporate.html.twig"));
  40.         $this->parent $this->loadTemplate("@FoxHabbitBasis/Layout/layout.html.twig""@App/Templates/corporate.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 2
  48.     public function block_content($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         // line 3
  56.         echo "
  57. \t";
  58.         // line 4
  59.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'4$this->source); })())) {
  60.             // line 5
  61.             echo "\t\t<div class=\"alert alert-dark m-0\">
  62. \t\t\tBeginn Header-Bereich
  63. \t\t</div>
  64. \t";
  65.         }
  66.         // line 9
  67.         echo "\t";
  68.         if (((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'9$this->source); })()) || twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""header"), "getCount", [], "method"falsefalsetrue9))) {
  69.             // line 10
  70.             echo "\t\t";
  71.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""header", ["limit" => 1"allowed" => ["basisbundle-header""basisbundle-header-slider""basisbundle-section-placeholder""appbundle-header-series"]]);
  72.             // line 18
  73.             echo "
  74. \t";
  75.         }
  76.         // line 20
  77.         echo "\t";
  78.         if ( !twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""header"), "getCount", [], "method"falsefalsetrue20)) {
  79.             // line 21
  80.             echo "\t    ";
  81.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""header_placeholder", ["type" => "basisbundle-section-placeholder"]);
  82.             echo "
  83. \t";
  84.         }
  85.         // line 23
  86.         echo "
  87. \t";
  88.         // line 24
  89.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'24$this->source); })())) {
  90.             // line 25
  91.             echo "\t\t<div class=\"alert alert-dark m-0\">
  92. \t\t\tEnde Header-Bereich
  93. \t\t\t<hr>
  94. \t\t\tBeginn Content-Bereich
  95. \t\t</div>
  96. \t";
  97.         }
  98.         // line 33
  99.         echo "
  100.     ";
  101.         // line 35
  102.         echo "    ";
  103.         if ((twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'35$this->source); })()), "getProperty", ["navRoot"], "method"falsefalsetrue35) && (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'35$this->source); })()), "getProperty", ["navRoot"], "method"falsefalsetrue35), "getId", [], "method"falsefalsetrue35) != twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'35$this->source); })()), "getId", [], "method"falsefalsetrue35)))) {
  104.             // line 36
  105.             echo "        ";
  106.             $context["snippets"] = ["snippetBreadcrumb"];
  107.             // line 37
  108.             echo "        ";
  109.             $context['_parent'] = $context;
  110.             $context['_seq'] = twig_ensure_traversable((isset($context["snippets"]) || array_key_exists("snippets"$context) ? $context["snippets"] : (function () { throw new RuntimeError('Variable "snippets" does not exist.'37$this->source); })()));
  111.             foreach ($context['_seq'] as $context["_key"] => $context["snippetProperty"]) {
  112.                 // line 38
  113.                 echo "            ";
  114.                 $context["snippet"] = twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'38$this->source); })()), "getProperty", [$context["snippetProperty"]], "method"falsefalsetrue38);
  115.                 // line 39
  116.                 echo "            ";
  117.                 if ((isset($context["snippet"]) || array_key_exists("snippet"$context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.'39$this->source); })())) {
  118.                     // line 40
  119.                     echo "                ";
  120.                     echo $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["snippet"]) || array_key_exists("snippet"$context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.'40$this->source); })()), 40$this->source), ["pageDocument" => (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'40$this->source); })())]);
  121.                     echo "
  122.             ";
  123.                 } else {
  124.                     // line 42
  125.                     echo "                ";
  126.                     $context["snippet"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig($this->sandbox->ensureToStringAllowed($context["snippetProperty"], 42$this->source));
  127.                     // line 43
  128.                     echo "                ";
  129.                     if ((isset($context["snippet"]) || array_key_exists("snippet"$context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.'43$this->source); })())) {
  130.                         // line 44
  131.                         echo "                    ";
  132.                         echo $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["snippet"]) || array_key_exists("snippet"$context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.'44$this->source); })()), 44$this->source), ["pageDocument" => (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'44$this->source); })())]);
  133.                         echo "
  134.                 ";
  135.                     }
  136.                     // line 46
  137.                     echo "            ";
  138.                 }
  139.                 // line 47
  140.                 echo "        ";
  141.             }
  142.             $_parent $context['_parent'];
  143.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['snippetProperty'], $context['_parent'], $context['loop']);
  144.             $context array_intersect_key($context$_parent) + $_parent;
  145.             // line 48
  146.             echo "    ";
  147.         }
  148.         // line 49
  149.         echo "
  150.     <!-- start-index -->
  151. \t";
  152.         // line 51
  153.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""content", ["allowed" => ["basisbundle-section""basisbundle-section-inter-section""basisbundle-section-anchor""basisbundle-section-snippet""basisbundle-section-slider""basisbundle-section-placeholder""appbundle-section-welding-systems-finder"]]);
  154.         // line 60
  155.         echo "
  156.     <!-- end-index -->
  157. \t";
  158.         // line 63
  159.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'63$this->source); })())) {
  160.             // line 64
  161.             echo "\t\t<div class=\"alert alert-dark m-0\">
  162. \t\t\tEnde Content-Bereich
  163. \t\t\t<hr>
  164. \t\t</div>
  165. \t";
  166.         }
  167.         // line 70
  168.         echo "
  169. ";
  170.         
  171.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  172.         
  173.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  174.     }
  175.     public function getTemplateName()
  176.     {
  177.         return "@App/Templates/corporate.html.twig";
  178.     }
  179.     public function isTraitable()
  180.     {
  181.         return false;
  182.     }
  183.     public function getDebugInfo()
  184.     {
  185.         return array (  186 => 70,  178 => 64,  176 => 63,  171 => 60,  169 => 51,  165 => 49,  162 => 48,  156 => 47,  153 => 46,  147 => 44,  144 => 43,  141 => 42,  135 => 40,  132 => 39,  129 => 38,  124 => 37,  121 => 36,  118 => 35,  115 => 33,  105 => 25,  103 => 24,  100 => 23,  94 => 21,  91 => 20,  87 => 18,  84 => 10,  81 => 9,  75 => 5,  73 => 4,  70 => 3,  60 => 2,  37 => 1,);
  186.     }
  187.     public function getSourceContext()
  188.     {
  189.         return new Source("{% extends '@FoxHabbitBasis/Layout/layout.html.twig' %}
  190. {% block content %}
  191. \t{% if editmode %}
  192. \t\t<div class=\"alert alert-dark m-0\">
  193. \t\t\tBeginn Header-Bereich
  194. \t\t</div>
  195. \t{% endif %}
  196. \t{% if editmode or pimcore_areablock('header').getCount() %}
  197. \t\t{{pimcore_areablock('header', {
  198. \t\t\tlimit: 1,
  199. \t\t\tallowed: [
  200. \t\t\t\t'basisbundle-header',
  201. \t\t\t\t'basisbundle-header-slider',
  202. \t\t\t\t'basisbundle-section-placeholder',
  203.                 'appbundle-header-series'
  204.             ]
  205. \t\t})}}
  206. \t{% endif %}
  207. \t{% if not pimcore_areablock('header').getCount() %}
  208. \t    {{pimcore_area('header_placeholder',{type:'basisbundle-section-placeholder'})}}
  209. \t{% endif %}
  210. \t{% if editmode %}
  211. \t\t<div class=\"alert alert-dark m-0\">
  212. \t\t\tEnde Header-Bereich
  213. \t\t\t<hr>
  214. \t\t\tBeginn Content-Bereich
  215. \t\t</div>
  216. \t{% endif %}
  217.     {# No Breadcrumb on the home page #}
  218.     {%  if document.getProperty('navRoot') and document.getProperty('navRoot').getId() != document.getId() %}
  219.         {% set snippets = ['snippetBreadcrumb'] %}
  220.         {% for snippetProperty in snippets %}
  221.             {% set snippet = document.getProperty(snippetProperty) %}
  222.             {% if snippet %}
  223.                 {{pimcore_inc(snippet, { pageDocument: document})}}
  224.             {% else %}
  225.                 {% set snippet = pimcore_website_config(snippetProperty) %}
  226.                 {% if snippet %}
  227.                     {{pimcore_inc(snippet, { pageDocument: document})}}
  228.                 {% endif %}
  229.             {% endif %}
  230.         {% endfor %}
  231.     {% endif %}
  232.     <!-- start-index -->
  233. \t{{pimcore_areablock('content', {
  234. \t\t\tallowed: [
  235. \t\t\t\t'basisbundle-section',
  236. \t\t\t\t'basisbundle-section-inter-section',
  237. \t\t\t\t'basisbundle-section-anchor',
  238. \t\t\t\t'basisbundle-section-snippet',
  239. \t\t\t\t'basisbundle-section-slider',
  240. \t\t\t\t'basisbundle-section-placeholder',
  241. \t\t\t\t'appbundle-section-welding-systems-finder',]
  242. \t})}}
  243.     <!-- end-index -->
  244. \t{% if editmode %}
  245. \t\t<div class=\"alert alert-dark m-0\">
  246. \t\t\tEnde Content-Bereich
  247. \t\t\t<hr>
  248. \t\t</div>
  249. \t{% endif %}
  250. {% endblock %}
  251. ""@App/Templates/corporate.html.twig""/srv/httpd/vhosts/lorch-test/releases/51/src/AppBundle/Resources/views/Templates/corporate.html.twig");
  252.     }
  253.     
  254.     public function checkSecurity()
  255.     {
  256.         static $tags = array("if" => 4"set" => 36"for" => 37);
  257.         static $filters = array();
  258.         static $functions = array("pimcore_areablock" => 9"pimcore_area" => 21"pimcore_inc" => 40"pimcore_website_config" => 42);
  259.         try {
  260.             $this->sandbox->checkSecurity(
  261.                 ['if''set''for'],
  262.                 [],
  263.                 ['pimcore_areablock''pimcore_area''pimcore_inc''pimcore_website_config']
  264.             );
  265.         } catch (SecurityError $e) {
  266.             $e->setSourceContext($this->source);
  267.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  268.                 $e->setTemplateLine($tags[$e->getTagName()]);
  269.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  270.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  271.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  272.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  273.             }
  274.             throw $e;
  275.         }
  276.     }
  277. }