From 286dc76e789bb7a58eb64a3910146e515a218a89 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 27 Oct 2023 00:22:12 +0900 Subject: [PATCH] Support event handler (trigger) to customize the content of the admin dashboard --- modules/admin/tpl/_dashboard_counter.html | 16 +++++++++---- modules/admin/tpl/_dashboard_default.html | 10 +++++--- modules/admin/tpl/css/admin.css | 24 ++++++++++--------- modules/admin/tpl/index.html | 28 +++++++++++++++++++---- 4 files changed, 54 insertions(+), 24 deletions(-) diff --git a/modules/admin/tpl/_dashboard_counter.html b/modules/admin/tpl/_dashboard_counter.html index 8aed63d55..741c57441 100644 --- a/modules/admin/tpl/_dashboard_counter.html +++ b/modules/admin/tpl/_dashboard_counter.html @@ -2,7 +2,7 @@ -
+{@ ob_start()}

{$lang->uv}

@@ -13,7 +13,10 @@ {$lang->details}
-
+{@ $dashboard_stack->left[] = ob_get_clean()} + +{@ ob_start()} +

{$lang->pv}

@@ -24,9 +27,9 @@
- +{@ $dashboard_stack->left[] = ob_get_clean()} -
+{@ ob_start()}

{$lang->latest_documents}

    @@ -47,6 +50,9 @@

{$lang->more}

+{@ $dashboard_stack->right[] = ob_get_clean()} + +{@ ob_start()}

{$lang->latest_comments}

    @@ -66,7 +72,7 @@

{$lang->more}

-
+{@ $dashboard_stack->right[] = ob_get_clean()}