var/cache/test/twig/fa/fafab66ab39591e1d8cc11890cdb534c.php line 80

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. /* @packageFallhaven/widgets/Block/build/tpl.html.twig */
  14. class __TwigTemplate_c3c9eb6f66946fe86fffbddfe41a3ec9 extends \Twig\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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@packageFallhaven/widgets/Block/build/tpl.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@packageFallhaven/widgets/Block/build/tpl.html.twig"));
  33.         // line 1
  34.         if ((isset($context["_editing"]) || array_key_exists("_editing"$context) ? $context["_editing"] : (function () { throw new RuntimeError('Variable "_editing" does not exist.'1$this->source); })())) {
  35.             echo "<div class=\"cspb-section\">";
  36.         }
  37.         // line 2
  38.         echo "    ";
  39.         if ((((twig_get_attribute($this->env$this->source, ($context["_widget"] ?? null), "element", [], "any"truetruefalse2)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["_widget"] ?? null), "element", [], "any"falsefalsefalse2), "div")) : ("div")) === "div")) {
  40.             // line 3
  41.             echo "        <div";
  42.             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"falsefalsefalse3))) {
  43.                 echo " class=\"";
  44.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse3), "html"nulltrue);
  45.                 echo "\"";
  46.             }
  47.             echo " data-editor-region-inline>
  48.             ";
  49.             // line 4
  50.             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); })()));
  51.             echo "
  52.         </div>
  53.     ";
  54.         } elseif ((((twig_get_attribute($this->env$this->source,         // line 6
  55. ($context["_widget"] ?? null), "element", [], "any"truetruefalse6)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["_widget"] ?? null), "element", [], "any"falsefalsefalse6), "div")) : ("div")) === "section")) {
  56.             // line 7
  57.             echo "        <section";
  58.             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"falsefalsefalse7))) {
  59.                 echo " data-editor-region-inline";
  60.             }
  61.             echo ">
  62.             ";
  63.             // line 8
  64.             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"falsefalsefalse8))) {
  65.                 // line 9
  66.                 echo "                <div class=\"";
  67.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse9), "html"nulltrue);
  68.                 echo "\" data-editor-region-inline>
  69.                     ";
  70.                 // line 10
  71.                 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); })()));
  72.                 echo "
  73.                 </div>
  74.             ";
  75.             } else {
  76.                 // line 13
  77.                 echo "                ";
  78.                 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); })()));
  79.                 echo "
  80.             ";
  81.             }
  82.             // line 15
  83.             echo "        </section>
  84.     ";
  85.         } else {
  86.             // line 17
  87.             echo "        <";
  88.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["_widget"] ?? null), "element", [], "any"truetruefalse17)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["_widget"] ?? null), "element", [], "any"falsefalsefalse17), "div")) : ("div")), "html"nulltrue);
  89.             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"falsefalsefalse17))) {
  90.                 echo " class=\"";
  91.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse17), "html"nulltrue);
  92.                 echo "\"";
  93.             }
  94.             echo " data-editor-region-inline>
  95.             ";
  96.             // line 18
  97.             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); })()));
  98.             echo "
  99.         </";
  100.             // line 19
  101.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["_widget"] ?? null), "element", [], "any"truetruefalse19)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["_widget"] ?? null), "element", [], "any"falsefalsefalse19), "div")) : ("div")), "html"nulltrue);
  102.             echo ">
  103.     ";
  104.         }
  105.         // line 21
  106.         if ((isset($context["_editing"]) || array_key_exists("_editing"$context) ? $context["_editing"] : (function () { throw new RuntimeError('Variable "_editing" does not exist.'21$this->source); })())) {
  107.             echo "</div>";
  108.         }
  109.         
  110.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  111.         
  112.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  113.     }
  114.     public function getTemplateName()
  115.     {
  116.         return "@packageFallhaven/widgets/Block/build/tpl.html.twig";
  117.     }
  118.     public function isTraitable()
  119.     {
  120.         return false;
  121.     }
  122.     public function getDebugInfo()
  123.     {
  124.         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,);
  125.     }
  126.     public function getSourceContext()
  127.     {
  128.         return new Source("{% if _editing %}<div class=\"cspb-section\">{% endif %}
  129.     {% if _widget.element|default('div') is same as('div') %}
  130.         <div{% if _widget.type is not empty %} class=\"{{ _widget.type }}\"{% endif %} data-editor-region-inline>
  131.             {{ cms_widgetChildren(_widget) }}
  132.         </div>
  133.     {% elseif _widget.element|default('div') is same as('section') %}
  134.         <section{% if _widget.type is empty %} data-editor-region-inline{% endif %}>
  135.             {% if _widget.type is not empty %}
  136.                 <div class=\"{{ _widget.type }}\" data-editor-region-inline>
  137.                     {{ cms_widgetChildren(_widget) }}
  138.                 </div>
  139.             {% else %}
  140.                 {{ cms_widgetChildren(_widget) }}
  141.             {% endif %}
  142.         </section>
  143.     {% else %}
  144.         <{{ _widget.element|default('div') }}{% if _widget.type is not empty %} class=\"{{ _widget.type }}\"{% endif %} data-editor-region-inline>
  145.             {{ cms_widgetChildren(_widget) }}
  146.         </{{ _widget.element|default('div') }}>
  147.     {% endif %}
  148. {% if _editing %}</div>{% endif %}
  149. ""@packageFallhaven/widgets/Block/build/tpl.html.twig""/var/www/campussuite/themes/bases/Campussuite2015/widgets/Block/build/tpl.html.twig");
  150.     }
  151. }