var/cache/dev/twig/9c/9c61b9b821133c6d9766224697b6c0f6.php line 62

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. /* @FoxHabbitBasis/Templates/snippet-section.html.twig */
  14. class __TwigTemplate_7ab429d4249db25ba53a4ca0cd0e0621 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 2
  31.         return $this->loadTemplate((("@FoxHabbitBasis/Layout/" . (isset($context["layout"]) || array_key_exists("layout"$context) ? $context["layout"] : (function () { throw new RuntimeError('Variable "layout" does not exist.'2$this->source); })())) . ".html.twig"), "@FoxHabbitBasis/Templates/snippet-section.html.twig"2);
  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""@FoxHabbitBasis/Templates/snippet-section.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""@FoxHabbitBasis/Templates/snippet-section.html.twig"));
  40.         // line 1
  41.         $context["layout"] = ("snippet-section-" . (((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'1$this->source); })())) ? ("editmode") : ("frontend")));
  42.         // line 2
  43.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 3
  50.     public function block_content($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  57.         // line 4
  58.         echo "
  59. \t";
  60.         // line 5
  61.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'5$this->source); })())) {
  62.             // line 6
  63.             echo "\t<div class=\"alert alert-dark m-0\">
  64. \t\tBeginn Section-Snippet-Bereich
  65. \t</div>
  66. \t";
  67.         }
  68.         // line 10
  69.         echo "
  70. \t";
  71.         // line 11
  72.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""content", ["allowed" => ["basisbundle-topnav""basisbundle-footer""basisbundle-breadcrumb""basisbundle-header""basisbundle-section""basisbundle-section-accordion""basisbundle-section-cssgrid""basisbundle-section-cssgrid-predefined""basisbundle-section-scheduled""basisbundle-section-image""basisbundle-section-video""basisbundle-section-googlemap""basisbundle-section-inter-section""basisbundle-section-slickslider""basisbundle-section-placeholder""basisbundle-section-snippet"]]);
  73.         // line 29
  74.         echo "
  75. \t";
  76.         // line 31
  77.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'31$this->source); })())) {
  78.             // line 32
  79.             echo "\t<div class=\"alert alert-dark m-0\">
  80. \t\tEnde Section-Snippet-Bereich
  81. \t</div>
  82. \t";
  83.         }
  84.         // line 36
  85.         echo "
  86. ";
  87.         
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  89.         
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  91.     }
  92.     public function getTemplateName()
  93.     {
  94.         return "@FoxHabbitBasis/Templates/snippet-section.html.twig";
  95.     }
  96.     public function isTraitable()
  97.     {
  98.         return false;
  99.     }
  100.     public function getDebugInfo()
  101.     {
  102.         return array (  100 => 36,  94 => 32,  92 => 31,  88 => 29,  86 => 11,  83 => 10,  77 => 6,  75 => 5,  72 => 4,  62 => 3,  52 => 2,  50 => 1,  37 => 2,);
  103.     }
  104.     public function getSourceContext()
  105.     {
  106.         return new Source("{% set layout = 'snippet-section-' ~ (editmode ? 'editmode' : 'frontend') %}
  107. {% extends '@FoxHabbitBasis/Layout/' ~ layout ~ '.html.twig' %}
  108. {% block content %}
  109. \t{% if editmode %}
  110. \t<div class=\"alert alert-dark m-0\">
  111. \t\tBeginn Section-Snippet-Bereich
  112. \t</div>
  113. \t{% endif %}
  114. \t{{pimcore_areablock('content', {
  115. \t\tallowed: [
  116. \t\t\t'basisbundle-topnav',
  117. \t\t\t'basisbundle-footer',
  118. \t\t\t'basisbundle-breadcrumb',
  119. \t\t\t'basisbundle-header',
  120. \t\t\t'basisbundle-section',
  121. \t\t\t'basisbundle-section-accordion',
  122. \t\t\t'basisbundle-section-cssgrid',
  123. \t\t\t'basisbundle-section-cssgrid-predefined',
  124. \t\t\t'basisbundle-section-scheduled',
  125. \t\t\t'basisbundle-section-image',
  126. \t\t\t'basisbundle-section-video',
  127. \t\t\t'basisbundle-section-googlemap',
  128. \t\t\t'basisbundle-section-inter-section',
  129. \t\t\t'basisbundle-section-slickslider',
  130. \t\t\t'basisbundle-section-placeholder',
  131. \t\t\t'basisbundle-section-snippet',]
  132. \t})}}
  133. \t{% if editmode %}
  134. \t<div class=\"alert alert-dark m-0\">
  135. \t\tEnde Section-Snippet-Bereich
  136. \t</div>
  137. \t{% endif %}
  138. {% endblock %}
  139. ""@FoxHabbitBasis/Templates/snippet-section.html.twig""/srv/httpd/vhosts/lorch-test/releases/51/bundles/FoxHabbit/BasisBundle/Resources/views/Templates/snippet-section.html.twig");
  140.     }
  141.     
  142.     public function checkSecurity()
  143.     {
  144.         static $tags = array("set" => 1"if" => 5);
  145.         static $filters = array();
  146.         static $functions = array("pimcore_areablock" => 11);
  147.         try {
  148.             $this->sandbox->checkSecurity(
  149.                 ['set''if'],
  150.                 [],
  151.                 ['pimcore_areablock']
  152.             );
  153.         } catch (SecurityError $e) {
  154.             $e->setSourceContext($this->source);
  155.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  156.                 $e->setTemplateLine($tags[$e->getTagName()]);
  157.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  158.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  159.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  160.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  161.             }
  162.             throw $e;
  163.         }
  164.     }
  165. }