<?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;
/* @packageFallhaven/widgets/Block/build/tpl.html.twig */
class __TwigTemplate_c3c9eb6f66946fe86fffbddfe41a3ec9 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "@packageFallhaven/widgets/Block/build/tpl.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@packageFallhaven/widgets/Block/build/tpl.html.twig"));
// line 1
if ((isset($context["_editing"]) || array_key_exists("_editing", $context) ? $context["_editing"] : (function () { throw new RuntimeError('Variable "_editing" does not exist.', 1, $this->source); })())) {
echo "<div class=\"cspb-section\">";
}
// line 2
echo " ";
if ((((twig_get_attribute($this->env, $this->source, ($context["_widget"] ?? null), "element", [], "any", true, true, false, 2)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["_widget"] ?? null), "element", [], "any", false, false, false, 2), "div")) : ("div")) === "div")) {
// line 3
echo " <div";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 3, $this->source); })()), "type", [], "any", false, false, false, 3))) {
echo " class=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 3, $this->source); })()), "type", [], "any", false, false, false, 3), "html", null, true);
echo "\"";
}
echo " data-editor-region-inline>
";
// line 4
echo $this->extensions['Cms\WidgetBundle\Service\Twig\WidgetExtension']->functionWidgetChildren($context, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 4, $this->source); })()));
echo "
</div>
";
} elseif ((((twig_get_attribute($this->env, $this->source, // line 6
($context["_widget"] ?? null), "element", [], "any", true, true, false, 6)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["_widget"] ?? null), "element", [], "any", false, false, false, 6), "div")) : ("div")) === "section")) {
// line 7
echo " <section";
if (twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 7, $this->source); })()), "type", [], "any", false, false, false, 7))) {
echo " data-editor-region-inline";
}
echo ">
";
// line 8
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 8, $this->source); })()), "type", [], "any", false, false, false, 8))) {
// line 9
echo " <div class=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 9, $this->source); })()), "type", [], "any", false, false, false, 9), "html", null, true);
echo "\" data-editor-region-inline>
";
// line 10
echo $this->extensions['Cms\WidgetBundle\Service\Twig\WidgetExtension']->functionWidgetChildren($context, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 10, $this->source); })()));
echo "
</div>
";
} else {
// line 13
echo " ";
echo $this->extensions['Cms\WidgetBundle\Service\Twig\WidgetExtension']->functionWidgetChildren($context, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 13, $this->source); })()));
echo "
";
}
// line 15
echo " </section>
";
} else {
// line 17
echo " <";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["_widget"] ?? null), "element", [], "any", true, true, false, 17)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["_widget"] ?? null), "element", [], "any", false, false, false, 17), "div")) : ("div")), "html", null, true);
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 17, $this->source); })()), "type", [], "any", false, false, false, 17))) {
echo " class=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 17, $this->source); })()), "type", [], "any", false, false, false, 17), "html", null, true);
echo "\"";
}
echo " data-editor-region-inline>
";
// line 18
echo $this->extensions['Cms\WidgetBundle\Service\Twig\WidgetExtension']->functionWidgetChildren($context, (isset($context["_widget"]) || array_key_exists("_widget", $context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.', 18, $this->source); })()));
echo "
</";
// line 19
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["_widget"] ?? null), "element", [], "any", true, true, false, 19)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["_widget"] ?? null), "element", [], "any", false, false, false, 19), "div")) : ("div")), "html", null, true);
echo ">
";
}
// line 21
if ((isset($context["_editing"]) || array_key_exists("_editing", $context) ? $context["_editing"] : (function () { throw new RuntimeError('Variable "_editing" does not exist.', 21, $this->source); })())) {
echo "</div>";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@packageFallhaven/widgets/Block/build/tpl.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 115 => 21, 110 => 19, 106 => 18, 96 => 17, 92 => 15, 86 => 13, 80 => 10, 75 => 9, 73 => 8, 66 => 7, 64 => 6, 59 => 4, 50 => 3, 47 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% if _editing %}<div class=\"cspb-section\">{% endif %}
{% if _widget.element|default('div') is same as('div') %}
<div{% if _widget.type is not empty %} class=\"{{ _widget.type }}\"{% endif %} data-editor-region-inline>
{{ cms_widgetChildren(_widget) }}
</div>
{% elseif _widget.element|default('div') is same as('section') %}
<section{% if _widget.type is empty %} data-editor-region-inline{% endif %}>
{% if _widget.type is not empty %}
<div class=\"{{ _widget.type }}\" data-editor-region-inline>
{{ cms_widgetChildren(_widget) }}
</div>
{% else %}
{{ cms_widgetChildren(_widget) }}
{% endif %}
</section>
{% else %}
<{{ _widget.element|default('div') }}{% if _widget.type is not empty %} class=\"{{ _widget.type }}\"{% endif %} data-editor-region-inline>
{{ cms_widgetChildren(_widget) }}
</{{ _widget.element|default('div') }}>
{% endif %}
{% if _editing %}</div>{% endif %}
", "@packageFallhaven/widgets/Block/build/tpl.html.twig", "/var/www/campussuite/themes/bases/Campussuite2015/widgets/Block/build/tpl.html.twig");
}
}