{% 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 %}
{% if authorize(['admin.maintenance', 'admin.super', 'admin.cache']) %}
{% endif %} {% if authorize(['admin.maintenance', 'admin.super']) %} {% endif %}

{{ "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 %}