blocks = [
'titlebar' => [$this, 'block_titlebar'],
'widgets' => [$this, 'block_widgets'],
'content' => [$this, 'block_content'],
'content_bottom' => [$this, 'block_content_bottom'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "partials/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
// line 3
$context["title"] = $this->env->getExtension('Grav\Plugin\Admin\Twig\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", []), "param_sep", [])) . twig_escape_filter($this->env, "clearCache", "html_attr"));
// line 1
$this->parent = $this->loadTemplate("partials/base.html.twig", "dashboard.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 7
public function block_titlebar($context, array $blocks = [])
{
// line 8
echo "
";
// line 29
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.DASHBOARD"), "html", null, true);
echo "
";
}
// line 32
public function block_widgets($context, array $blocks = [])
{
// line 33
echo " ";
if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "admin", []), "notifications", []), "dashboard", [])) {
// line 34
echo "
";
}
// line 36
echo "
";
// line 38
if ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", []), "plugins_hooked_dashboard_widgets_top", [])) {
// line 39
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", []), "plugins_hooked_dashboard_widgets_top", []));
$context['loop'] = [
'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 40
echo " ";
if (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "admin", []), "widgets", []), $this->getAttribute($context["widget"], "template", [])) == true)) {
// line 41
echo "
";
// line 42
$this->loadTemplate((("partials/" . $this->getAttribute($context["widget"], "template", [])) . ".html.twig"), "dashboard.html.twig", 42)->display($context);
// line 43
echo "
";
}
// line 45
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 46
echo " ";
}
// line 47
echo "
";
}
// line 50
public function block_content($context, array $blocks = [])
{
// line 51
if ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", []), "plugins_hooked_dashboard_widgets_main", [])) {
// line 52
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", []), "plugins_hooked_dashboard_widgets_main", []));
$context['loop'] = [
'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 53
if (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "admin", []), "widgets", []), $this->getAttribute($context["widget"], "template", [])) == true)) {
// line 54
echo " ";
$this->loadTemplate((("partials/" . $this->getAttribute($context["widget"], "template", [])) . ".html.twig"), "dashboard.html.twig", 54)->display($context);
// line 55
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 60
public function block_content_bottom($context, array $blocks = [])
{
// line 61
echo " ";
// line 62
if ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", []), "plugins_hooked_dashboard_widgets_bottom", [])) {
// line 63
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", []), "plugins_hooked_dashboard_widgets_bottom", []));
$context['loop'] = [
'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 64
if (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "admin", []), "widgets", []), $this->getAttribute($context["widget"], "template", [])) == true)) {
// line 65
echo " ";
$this->loadTemplate((("partials/" . $this->getAttribute($context["widget"], "template", [])) . ".html.twig"), "dashboard.html.twig", 65)->display($context);
// line 66
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 69
echo "
";
}
public function getTemplateName()
{
return "dashboard.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 283 => 69, 267 => 66, 264 => 65, 262 => 64, 245 => 63, 243 => 62, 241 => 61, 238 => 60, 220 => 55, 217 => 54, 215 => 53, 198 => 52, 196 => 51, 193 => 50, 188 => 47, 185 => 46, 171 => 45, 167 => 43, 165 => 42, 162 => 41, 159 => 40, 141 => 39, 139 => 38, 135 => 36, 131 => 34, 128 => 33, 125 => 32, 119 => 29, 116 => 28, 110 => 26, 107 => 25, 98 => 21, 92 => 20, 86 => 19, 80 => 18, 74 => 17, 68 => 16, 58 => 11, 55 => 10, 53 => 9, 50 => 8, 47 => 7, 42 => 1, 40 => 5, 38 => 3, 32 => 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("{% 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 %}
{{ \"PLUGIN_ADMIN.DASHBOARD\"|tu }}
{% endblock %}
{% block widgets %}
{% if config.plugins.admin.notifications.dashboard %}
{% endif %}
{% 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 %}
{% include 'partials/' ~ widget.template ~ '.html.twig' %}
{% endif %}
{% endfor %}
{% endif %}
{% 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 %}
{%- 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 -%}
{% endblock %}
", "dashboard.html.twig", "/mnt/wpool1_tempdisk/webwndt/steintiger/user/plugins/admin/themes/grav/templates/dashboard.html.twig");
}
}