<?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;
/* @FoxHabbitBasis/Templates/snippet-section.html.twig */
class __TwigTemplate_7ab429d4249db25ba53a4ca0cd0e0621 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 2
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);
}
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", "@FoxHabbitBasis/Templates/snippet-section.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FoxHabbitBasis/Templates/snippet-section.html.twig"));
// line 1
$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")));
// line 2
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_content($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(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
echo "
\t";
// line 5
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 5, $this->source); })())) {
// line 6
echo "\t<div class=\"alert alert-dark m-0\">
\t\tBeginn Section-Snippet-Bereich
\t</div>
\t";
}
// line 10
echo "
\t";
// line 11
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"]]);
// line 29
echo "
\t";
// line 31
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 31, $this->source); })())) {
// line 32
echo "\t<div class=\"alert alert-dark m-0\">
\t\tEnde Section-Snippet-Bereich
\t</div>
\t";
}
// line 36
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@FoxHabbitBasis/Templates/snippet-section.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% set layout = 'snippet-section-' ~ (editmode ? 'editmode' : 'frontend') %}
{% extends '@FoxHabbitBasis/Layout/' ~ layout ~ '.html.twig' %}
{% block content %}
\t{% if editmode %}
\t<div class=\"alert alert-dark m-0\">
\t\tBeginn Section-Snippet-Bereich
\t</div>
\t{% endif %}
\t{{pimcore_areablock('content', {
\t\tallowed: [
\t\t\t'basisbundle-topnav',
\t\t\t'basisbundle-footer',
\t\t\t'basisbundle-breadcrumb',
\t\t\t'basisbundle-header',
\t\t\t'basisbundle-section',
\t\t\t'basisbundle-section-accordion',
\t\t\t'basisbundle-section-cssgrid',
\t\t\t'basisbundle-section-cssgrid-predefined',
\t\t\t'basisbundle-section-scheduled',
\t\t\t'basisbundle-section-image',
\t\t\t'basisbundle-section-video',
\t\t\t'basisbundle-section-googlemap',
\t\t\t'basisbundle-section-inter-section',
\t\t\t'basisbundle-section-slickslider',
\t\t\t'basisbundle-section-placeholder',
\t\t\t'basisbundle-section-snippet',]
\t})}}
\t{% if editmode %}
\t<div class=\"alert alert-dark m-0\">
\t\tEnde Section-Snippet-Bereich
\t</div>
\t{% endif %}
{% endblock %}
", "@FoxHabbitBasis/Templates/snippet-section.html.twig", "/srv/httpd/vhosts/lorch-test/releases/51/bundles/FoxHabbit/BasisBundle/Resources/views/Templates/snippet-section.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 1, "if" => 5);
static $filters = array();
static $functions = array("pimcore_areablock" => 11);
try {
$this->sandbox->checkSecurity(
['set', 'if'],
[],
['pimcore_areablock']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}