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 "
";
// line 28
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.DASHBOARD"), "html", null, true);
echo "
";
}
// 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 "
";
}
// line 35
echo "
";
// 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 "
";
// line 41
$this->loadTemplate((("partials/" . $this->getAttribute($context["widget"], "template", array())) . ".html.twig"), "dashboard.html.twig", 41)->display($context);
// line 42
echo "
";
}
// 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 "
";
}
// 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 " ";
// 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 "
";
}
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 %}
{{ \"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/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/dashboard.html.twig");
}
}