var/cache/test/twig/bd/bd5c52816729991bdd0db11d2b7c5354.php line 64

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. /* @CmsContent/Render/Widget.html.twig */
  14. class __TwigTemplate_42ec5293dde47c41a66cd9cafe5e5257 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""@CmsContent/Render/Widget.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""@CmsContent/Render/Widget.html.twig"));
  33.         // line 1
  34.         echo "<div data-cms-widget=\"";
  35.         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.'1$this->source); })()), "__fqcn__", [], "any"falsefalsefalse1), "html"nulltrue);
  36.         echo "\" ";
  37.         echo $this->extensions['Cms\WidgetBundle\Service\Twig\WidgetExtension']->functionWidgetContainer((((twig_get_attribute($this->env$this->source,         // line 2
  38. ($context["_widget"] ?? null), "container", [], "any"truetruefalse2) &&  !(null === 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.'2$this->source); })()), "container", [], "any"falsefalsefalse2)))) ? (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.'2$this->source); })()), "container", [], "any"falsefalsefalse2)) : (null)),         // line 3
  39. (isset($context["_htmlId"]) || array_key_exists("_htmlId"$context) ? $context["_htmlId"] : (function () { throw new RuntimeError('Variable "_htmlId" does not exist.'3$this->source); })()));
  40.         // line 4
  41.         echo ">
  42.     ";
  43.         // line 5
  44.         if ( !(null === (isset($context["_error"]) || array_key_exists("_error"$context) ? $context["_error"] : (function () { throw new RuntimeError('Variable "_error" does not exist.'5$this->source); })()))) {
  45.             // line 6
  46.             echo "        <div data-cms-widget-error>";
  47.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["_handler"]) || array_key_exists("_handler"$context) ? $context["_handler"] : (function () { throw new RuntimeError('Variable "_handler" does not exist.'6$this->source); })()), "key", [], "any"falsefalsefalse6), "html"nulltrue);
  48.             echo ":ERROR:";
  49.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["_error"]) || array_key_exists("_error"$context) ? $context["_error"] : (function () { throw new RuntimeError('Variable "_error" does not exist.'6$this->source); })()), "message", [], "any"falsefalsefalse6), "html"nulltrue);
  50.             echo "</div>
  51.     ";
  52.         } else {
  53.             // line 8
  54.             echo "        ";
  55.             $this->loadTemplate((isset($context["_twig"]) || array_key_exists("_twig"$context) ? $context["_twig"] : (function () { throw new RuntimeError('Variable "_twig" does not exist.'8$this->source); })()), "@CmsContent/Render/Widget.html.twig"8)->display(twig_array_merge($context, ['_args' => []]));
  56.             // line 9
  57.             echo "    ";
  58.         }
  59.         // line 10
  60.         echo "</div>
  61. ";
  62.         // line 11
  63.         if ((((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["_handler"]) || array_key_exists("_handler"$context) ? $context["_handler"] : (function () { throw new RuntimeError('Variable "_handler" does not exist.'11$this->source); })()), "styles", [], "any"falsefalsefalse11)) > 0) || (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["_handler"]) || array_key_exists("_handler"$context) ? $context["_handler"] : (function () { throw new RuntimeError('Variable "_handler" does not exist.'11$this->source); })()), "scripts", [], "any"falsefalsefalse11)) > 0)) || twig_get_attribute($this->env$this->source, (isset($context["_handler"]) || array_key_exists("_handler"$context) ? $context["_handler"] : (function () { throw new RuntimeError('Variable "_handler" does not exist.'11$this->source); })()), "hasPlugin", [], "method"falsefalsefalse11))) {
  64.             // line 12
  65.             echo "    <script type=\"text/javascript\">
  66.         Campussuite.Widgets.run(";
  67.             // line 13
  68.             echo $this->extensions['Cms\WidgetBundle\Service\Twig\WidgetExtension']->functionWidgetTrigger(            // line 14
  69. (isset($context["_handler"]) || array_key_exists("_handler"$context) ? $context["_handler"] : (function () { throw new RuntimeError('Variable "_handler" does not exist.'14$this->source); })()),             // line 15
  70. (isset($context["_plugin"]) || array_key_exists("_plugin"$context) ? $context["_plugin"] : (function () { throw new RuntimeError('Variable "_plugin" does not exist.'15$this->source); })()),             // line 16
  71. (isset($context["_htmlId"]) || array_key_exists("_htmlId"$context) ? $context["_htmlId"] : (function () { throw new RuntimeError('Variable "_htmlId" does not exist.'16$this->source); })()), (((            // line 17
  72. array_key_exists("_styles"$context) && twig_test_iterable((isset($context["_styles"]) || array_key_exists("_styles"$context) ? $context["_styles"] : (function () { throw new RuntimeError('Variable "_styles" does not exist.'17$this->source); })())))) ? ((isset($context["_styles"]) || array_key_exists("_styles"$context) ? $context["_styles"] : (function () { throw new RuntimeError('Variable "_styles" does not exist.'17$this->source); })())) : ([])), (((            // line 18
  73. array_key_exists("_scripts"$context) && twig_test_iterable((isset($context["_scripts"]) || array_key_exists("_scripts"$context) ? $context["_scripts"] : (function () { throw new RuntimeError('Variable "_scripts" does not exist.'18$this->source); })())))) ? ((isset($context["_scripts"]) || array_key_exists("_scripts"$context) ? $context["_scripts"] : (function () { throw new RuntimeError('Variable "_scripts" does not exist.'18$this->source); })())) : ([])));
  74.             // line 19
  75.             echo ");
  76.     </script>
  77. ";
  78.         }
  79.         
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  81.         
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  83.     }
  84.     public function getTemplateName()
  85.     {
  86.         return "@CmsContent/Render/Widget.html.twig";
  87.     }
  88.     public function isTraitable()
  89.     {
  90.         return false;
  91.     }
  92.     public function getDebugInfo()
  93.     {
  94.         return array (  84 => 19,  82 => 18,  81 => 17,  80 => 16,  79 => 15,  78 => 14,  77 => 13,  74 => 12,  72 => 11,  69 => 10,  66 => 9,  63 => 8,  55 => 6,  53 => 5,  50 => 4,  48 => 3,  47 => 2,  43 => 1,);
  95.     }
  96.     public function getSourceContext()
  97.     {
  98.         return new Source("<div data-cms-widget=\"{{ _widget.__fqcn__ }}\" {{ cms_widgetContainer(
  99.     (_widget.container is defined and _widget.container is not null) ? _widget.container : null,
  100.     _htmlId
  101. ) }}>
  102.     {% if _error is not null %}
  103.         <div data-cms-widget-error>{{ _handler.key }}:ERROR:{{ _error.message }}</div>
  104.     {% else %}
  105.         {% include _twig %}
  106.     {% endif %}
  107. </div>
  108. {% if _handler.styles|length > 0 or _handler.scripts|length > 0 or _handler.hasPlugin() %}
  109.     <script type=\"text/javascript\">
  110.         Campussuite.Widgets.run({{ cms_widgetTrigger(
  111.             _handler,
  112.             _plugin,
  113.             _htmlId,
  114.             ((_styles is defined and _styles is iterable) ? _styles : []),
  115.             ((_scripts is defined and _scripts is iterable) ? _scripts : [])
  116.         ) }});
  117.     </script>
  118. {% endif %}
  119. ""@CmsContent/Render/Widget.html.twig""/var/www/campussuite/src/Cms/ContentBundle/Resources/views/Render/Widget.html.twig");
  120.     }
  121. }