123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366 |
- <?php
- /* dashboard.html.twig */
- class __TwigTemplate_bb909058d0091bbe701e346d80e7a7d14013f7a8c46933c41cab02e6bc46d0d2 extends Twig_Template
- {
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
- // line 1
- $this->parent = $this->loadTemplate("partials/base.html.twig", "dashboard.html.twig", 1);
- $this->blocks = array(
- 'titlebar' => array($this, 'block_titlebar'),
- 'widgets' => array($this, 'block_widgets'),
- 'content' => array($this, 'block_content'),
- 'content_bottom' => array($this, 'block_content_bottom'),
- );
- }
- protected function doGetParent(array $context)
- {
- return "partials/base.html.twig";
- }
- protected function doDisplay(array $context, array $blocks = array())
- {
- // line 3
- $context["title"] = $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.DASHBOARD");
- // line 5
- $context["clear_cache_url"] = (((($context["base_url_relative"] ?? null) . "/cache.json/task") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "param_sep", array())) . twig_escape_filter($this->env, "clearCache", "html_attr"));
- // line 1
- $this->parent->display($context, array_merge($this->blocks, $blocks));
- }
- // line 7
- public function block_titlebar($context, array $blocks = array())
- {
- // line 8
- echo " <div class=\"button-bar\">
- ";
- // line 9
- if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.maintenance", 1 => "admin.super", 2 => "admin.cache"))) {
- // line 10
- echo " <div class=\"button-group\">
- <button data-clear-cache-type=\"\" data-clear-cache=\"";
- // line 11
- echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "addNonce", array(0 => ($context["clear_cache_url"] ?? null), 1 => "admin-form", 2 => "admin-nonce"), "method"), "html", null, true);
- echo "\" class=\"button\"><i class=\"fa fa-trash\"></i> ";
- echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLEAR_CACHE"), "html", null, true);
- echo "</button>
- <button type=\"button\" class=\"button dropdown-toggle\" data-toggle=\"dropdown\">
- <i class=\"fa fa-caret-down\"></i>
- </button>
- <ul class=\"dropdown-menu\">
- <li><a data-clear-cache-type=\"all\" data-clear-cache=\"";
- // line 16
- echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "addNonce", array(0 => (((($context["clear_cache_url"] ?? null) . "/cleartype") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "param_sep", array())) . "all"), 1 => "admin-form", 2 => "admin-nonce"), "method"), "html", null, true);
- echo "\" href=\"#\">";
- echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLEAR_CACHE_ALL_CACHE"), "html", null, true);
- echo "</a></li>
- <li><a data-clear-cache-type=\"assets-only\" data-clear-cache=\"";
- // line 17
- echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "addNonce", array(0 => (((($context["clear_cache_url"] ?? null) . "/cleartype") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "param_sep", array())) . "assets-only"), 1 => "admin-form", 2 => "admin-nonce"), "method"), "html", null, true);
- echo "\" href=\"#\">";
- echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLEAR_CACHE_ASSETS_ONLY"), "html", null, true);
- echo "</a></li>
- <li><a data-clear-cache-type=\"images-only\" data-clear-cache=\"";
- // line 18
- echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "addNonce", array(0 => (((($context["clear_cache_url"] ?? null) . "/cleartype") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "param_sep", array())) . "images-only"), 1 => "admin-form", 2 => "admin-nonce"), "method"), "html", null, true);
- echo "\" href=\"#\">";
- echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLEAR_CACHE_IMAGES_ONLY"), "html", null, true);
- echo "</a></li>
- <li><a data-clear-cache-type=\"cache-only\" data-clear-cache=\"";
- // line 19
- echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "addNonce", array(0 => (((($context["clear_cache_url"] ?? null) . "/cleartype") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "param_sep", array())) . "cache-only"), 1 => "admin-form", 2 => "admin-nonce"), "method"), "html", null, true);
- echo "\" href=\"#\">";
- echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLEAR_CACHE_CACHE_ONLY"), "html", null, true);
- echo "</a></li>
- <li><a data-clear-cache-type=\"tmp-only\" data-clear-cache=\"";
- // line 20
- echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "addNonce", array(0 => (((($context["clear_cache_url"] ?? null) . "/cleartype") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "param_sep", array())) . "tmp-only"), 1 => "admin-form", 2 => "admin-nonce"), "method"), "html", null, true);
- echo "\" href=\"#\">";
- echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLEAR_CACHE_TMP_ONLY"), "html", null, true);
- echo "</a></li>
- </ul>
- </div>
- ";
- }
- // line 24
- echo " ";
- if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.maintenance", 1 => "admin.super"))) {
- // line 25
- echo " <button data-gpm-checkupdates=\"\" class=\"button\"><i class=\"fa fa-refresh\"></i> ";
- echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CHECK_FOR_UPDATES"), "html", null, true);
- echo "</button>
- ";
- }
- // line 27
- echo " </div>
- <h1><i class=\"fa fa-fw fa-th\"></i> ";
- // line 28
- echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.DASHBOARD"), "html", null, true);
- echo "</h1>
- ";
- }
- // line 31
- public function block_widgets($context, array $blocks = array())
- {
- // line 32
- echo " ";
- if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "notifications", array()), "dashboard", array())) {
- // line 33
- echo " <div class=\"dashboard-notifications-container\"></div>
- ";
- }
- // line 35
- echo "
- <div id=\"admin-dashboard\">
- ";
- // line 37
- if ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array()), "plugins_hooked_dashboard_widgets_top", array())) {
- // line 38
- echo " ";
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array()), "plugins_hooked_dashboard_widgets_top", array()));
- $context['loop'] = array(
- 'parent' => $context['_parent'],
- 'index0' => 0,
- 'index' => 1,
- 'first' => true,
- );
- if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
- $length = count($context['_seq']);
- $context['loop']['revindex0'] = $length - 1;
- $context['loop']['revindex'] = $length;
- $context['loop']['length'] = $length;
- $context['loop']['last'] = 1 === $length;
- }
- foreach ($context['_seq'] as $context["_key"] => $context["widget"]) {
- // line 39
- echo " ";
- if (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "widgets", array()), $this->getAttribute($context["widget"], "template", array())) == true)) {
- // line 40
- echo " <div class=\"dashboard-item-flex\">
- ";
- // line 41
- $this->loadTemplate((("partials/" . $this->getAttribute($context["widget"], "template", array())) . ".html.twig"), "dashboard.html.twig", 41)->display($context);
- // line 42
- echo " </div>
- ";
- }
- // line 44
- echo " ";
- ++$context['loop']['index0'];
- ++$context['loop']['index'];
- $context['loop']['first'] = false;
- if (isset($context['loop']['length'])) {
- --$context['loop']['revindex0'];
- --$context['loop']['revindex'];
- $context['loop']['last'] = 0 === $context['loop']['revindex0'];
- }
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['widget'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 45
- echo " ";
- }
- // line 46
- echo " </div>
- ";
- }
- // line 49
- public function block_content($context, array $blocks = array())
- {
- // line 50
- if ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array()), "plugins_hooked_dashboard_widgets_main", array())) {
- // line 51
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array()), "plugins_hooked_dashboard_widgets_main", array()));
- $context['loop'] = array(
- 'parent' => $context['_parent'],
- 'index0' => 0,
- 'index' => 1,
- 'first' => true,
- );
- if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
- $length = count($context['_seq']);
- $context['loop']['revindex0'] = $length - 1;
- $context['loop']['revindex'] = $length;
- $context['loop']['length'] = $length;
- $context['loop']['last'] = 1 === $length;
- }
- foreach ($context['_seq'] as $context["_key"] => $context["widget"]) {
- // line 52
- if (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "widgets", array()), $this->getAttribute($context["widget"], "template", array())) == true)) {
- // line 53
- echo " ";
- $this->loadTemplate((("partials/" . $this->getAttribute($context["widget"], "template", array())) . ".html.twig"), "dashboard.html.twig", 53)->display($context);
- // line 54
- echo " ";
- }
- ++$context['loop']['index0'];
- ++$context['loop']['index'];
- $context['loop']['first'] = false;
- if (isset($context['loop']['length'])) {
- --$context['loop']['revindex0'];
- --$context['loop']['revindex'];
- $context['loop']['last'] = 0 === $context['loop']['revindex0'];
- }
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['widget'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- }
- }
- // line 59
- public function block_content_bottom($context, array $blocks = array())
- {
- // line 60
- echo " <div id=\"admin-dashboard\">";
- // line 61
- if ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array()), "plugins_hooked_dashboard_widgets_bottom", array())) {
- // line 62
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array()), "plugins_hooked_dashboard_widgets_bottom", array()));
- $context['loop'] = array(
- 'parent' => $context['_parent'],
- 'index0' => 0,
- 'index' => 1,
- 'first' => true,
- );
- if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
- $length = count($context['_seq']);
- $context['loop']['revindex0'] = $length - 1;
- $context['loop']['revindex'] = $length;
- $context['loop']['length'] = $length;
- $context['loop']['last'] = 1 === $length;
- }
- foreach ($context['_seq'] as $context["_key"] => $context["widget"]) {
- // line 63
- if (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "widgets", array()), $this->getAttribute($context["widget"], "template", array())) == true)) {
- // line 64
- echo " ";
- $this->loadTemplate((("partials/" . $this->getAttribute($context["widget"], "template", array())) . ".html.twig"), "dashboard.html.twig", 64)->display($context);
- // line 65
- echo " ";
- }
- ++$context['loop']['index0'];
- ++$context['loop']['index'];
- $context['loop']['first'] = false;
- if (isset($context['loop']['length'])) {
- --$context['loop']['revindex0'];
- --$context['loop']['revindex'];
- $context['loop']['last'] = 0 === $context['loop']['revindex0'];
- }
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['widget'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- }
- // line 68
- echo "</div>
- ";
- }
- public function getTemplateName()
- {
- return "dashboard.html.twig";
- }
- public function isTraitable()
- {
- return false;
- }
- public function getDebugInfo()
- {
- return array ( 266 => 68, 250 => 65, 247 => 64, 245 => 63, 228 => 62, 226 => 61, 224 => 60, 221 => 59, 203 => 54, 200 => 53, 198 => 52, 181 => 51, 179 => 50, 176 => 49, 171 => 46, 168 => 45, 154 => 44, 150 => 42, 148 => 41, 145 => 40, 142 => 39, 124 => 38, 122 => 37, 118 => 35, 114 => 33, 111 => 32, 108 => 31, 102 => 28, 99 => 27, 93 => 25, 90 => 24, 81 => 20, 75 => 19, 69 => 18, 63 => 17, 57 => 16, 47 => 11, 44 => 10, 42 => 9, 39 => 8, 36 => 7, 32 => 1, 30 => 5, 28 => 3, 11 => 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 Twig_Source("{% extends 'partials/base.html.twig' %}
- {% set title = \"PLUGIN_ADMIN.DASHBOARD\"|tu %}
- {% set clear_cache_url = base_url_relative ~ '/cache.json/task' ~ config.system.param_sep ~ 'clearCache'|e('html_attr') %}
- {% block titlebar %}
- <div class=\"button-bar\">
- {% if authorize(['admin.maintenance', 'admin.super', 'admin.cache']) %}
- <div class=\"button-group\">
- <button data-clear-cache-type=\"\" data-clear-cache=\"{{ uri.addNonce(clear_cache_url, 'admin-form', 'admin-nonce') }}\" class=\"button\"><i class=\"fa fa-trash\"></i> {{ \"PLUGIN_ADMIN.CLEAR_CACHE\"|tu }}</button>
- <button type=\"button\" class=\"button dropdown-toggle\" data-toggle=\"dropdown\">
- <i class=\"fa fa-caret-down\"></i>
- </button>
- <ul class=\"dropdown-menu\">
- <li><a data-clear-cache-type=\"all\" data-clear-cache=\"{{ uri.addNonce(clear_cache_url ~'/cleartype' ~ config.system.param_sep ~ 'all', 'admin-form', 'admin-nonce') }}\" href=\"#\">{{ \"PLUGIN_ADMIN.CLEAR_CACHE_ALL_CACHE\"|tu }}</a></li>
- <li><a data-clear-cache-type=\"assets-only\" data-clear-cache=\"{{ uri.addNonce(clear_cache_url ~'/cleartype' ~ config.system.param_sep ~ 'assets-only', 'admin-form', 'admin-nonce') }}\" href=\"#\">{{ \"PLUGIN_ADMIN.CLEAR_CACHE_ASSETS_ONLY\"|tu }}</a></li>
- <li><a data-clear-cache-type=\"images-only\" data-clear-cache=\"{{ uri.addNonce(clear_cache_url ~'/cleartype' ~ config.system.param_sep ~ 'images-only', 'admin-form', 'admin-nonce') }}\" href=\"#\">{{ \"PLUGIN_ADMIN.CLEAR_CACHE_IMAGES_ONLY\"|tu }}</a></li>
- <li><a data-clear-cache-type=\"cache-only\" data-clear-cache=\"{{ uri.addNonce(clear_cache_url ~'/cleartype' ~ config.system.param_sep ~ 'cache-only', 'admin-form', 'admin-nonce') }}\" href=\"#\">{{ \"PLUGIN_ADMIN.CLEAR_CACHE_CACHE_ONLY\"|tu }}</a></li>
- <li><a data-clear-cache-type=\"tmp-only\" data-clear-cache=\"{{ uri.addNonce(clear_cache_url ~'/cleartype' ~ config.system.param_sep ~ 'tmp-only', 'admin-form', 'admin-nonce') }}\" href=\"#\">{{ \"PLUGIN_ADMIN.CLEAR_CACHE_TMP_ONLY\"|tu }}</a></li>
- </ul>
- </div>
- {% endif %}
- {% if authorize(['admin.maintenance', 'admin.super']) %}
- <button data-gpm-checkupdates=\"\" class=\"button\"><i class=\"fa fa-refresh\"></i> {{ \"PLUGIN_ADMIN.CHECK_FOR_UPDATES\"|tu }}</button>
- {% endif %}
- </div>
- <h1><i class=\"fa fa-fw fa-th\"></i> {{ \"PLUGIN_ADMIN.DASHBOARD\"|tu }}</h1>
- {% endblock %}
- {% block widgets %}
- {% if config.plugins.admin.notifications.dashboard %}
- <div class=\"dashboard-notifications-container\"></div>
- {% endif %}
- <div id=\"admin-dashboard\">
- {% if grav.twig.plugins_hooked_dashboard_widgets_top %}
- {% for widget in grav.twig.plugins_hooked_dashboard_widgets_top %}
- {% if attribute(config.plugins.admin.widgets, widget.template) == true %}
- <div class=\"dashboard-item-flex\">
- {% include 'partials/' ~ widget.template ~ '.html.twig' %}
- </div>
- {% endif %}
- {% endfor %}
- {% endif %}
- </div>
- {% endblock %}
- {% block content %}
- {%- if grav.twig.plugins_hooked_dashboard_widgets_main -%}
- {%- for widget in grav.twig.plugins_hooked_dashboard_widgets_main -%}
- {%- if attribute(config.plugins.admin.widgets, widget.template) == true %}
- {% include 'partials/' ~ widget.template ~ '.html.twig' %}
- {% endif -%}
- {%- endfor -%}
- {%- endif -%}
- {% endblock %}
- {% block content_bottom %}
- <div id=\"admin-dashboard\">
- {%- if grav.twig.plugins_hooked_dashboard_widgets_bottom -%}
- {%- for widget in grav.twig.plugins_hooked_dashboard_widgets_bottom -%}
- {%- if attribute(config.plugins.admin.widgets, widget.template) == true %}
- {% include 'partials/' ~ widget.template ~ '.html.twig' %}
- {% endif -%}
- {%- endfor -%}
- {%- endif -%}
- </div>
- {% endblock %}
- ", "dashboard.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/dashboard.html.twig");
- }
- }
|