parent = false; $this->blocks = [ ]; } protected function doDisplay(array $context, array $blocks = []) { // line 1 if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize([0 => "admin.login", 1 => "admin.super"])) { // line 2 $context["notifications"] = ((((($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "admin", []), "widgets", []), "dashboard-notifications", [], "array") || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "admin", []), "notifications", []), "dashboard", [])) || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "admin", []), "notifications", []), "plugins", [])) || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "admin", []), "notifications", []), "themes", []))) ? (1) : (0)); // line 3 switch (($context["template_route"] ?? null)) { case "dashboard": { // line 5 echo " "; $context["notifications_filters"] = "['feed', 'dashboard', 'top']"; // line 6 echo " "; break; } case "plugins": { // line 7 echo " "; $context["notifications_filters"] = "['plugins', 'top']"; // line 8 echo " "; break; } case "themes": { // line 9 echo " "; $context["notifications_filters"] = "['themes', 'top']"; // line 10 echo " "; break; } default: { // line 11 echo " "; $context["notifications_filters"] = "['top']"; } } // line 13 echo " "; } } public function getTemplateName() { return "partials/javascript-config.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 158 => 42, 147 => 40, 143 => 39, 135 => 34, 130 => 32, 125 => 30, 121 => 29, 116 => 27, 112 => 26, 108 => 25, 103 => 24, 97 => 22, 95 => 21, 91 => 20, 87 => 19, 83 => 18, 79 => 17, 75 => 16, 70 => 13, 65 => 11, 59 => 10, 56 => 9, 50 => 8, 47 => 7, 41 => 6, 38 => 5, 34 => 3, 32 => 2, 30 => 1,); } /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */ public function getSource() { @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED); return $this->getSourceContext()->getCode(); } public function getSourceContext() { return new Source("{% if authorize(['admin.login', 'admin.super']) %} {% set notifications = (config.plugins.admin.widgets['dashboard-notifications'] or config.plugins.admin.notifications.dashboard or config.plugins.admin.notifications.plugins or config.plugins.admin.notifications.themes) ? 1 : 0 %} {% switch template_route %} {% case 'dashboard' %} {% set notifications_filters = \"['feed', 'dashboard', 'top']\" %} {% case 'plugins' %} {% set notifications_filters = \"['plugins', 'top']\" %} {% case 'themes' %} {% set notifications_filters = \"['themes', 'top']\" %} {% default %} {% set notifications_filters = \"['top']\" %} {% endswitch %} {% endif %} ", "partials/javascript-config.html.twig", "/mnt/wpool1_tempdisk/webwndt/steintiger/user/plugins/admin/themes/grav/templates/partials/javascript-config.html.twig"); } }