From b933d1a17096bfe61cf43ee866d7ae5eb557e3af Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 20 Dec 2008 01:25:03 +0000 Subject: Move Recent Comments into its own block. --- core/views/admin_dashboard.html.php | 10 ---------- modules/comment/helpers/comment_block.php | 8 ++++++++ .../views/admin_block_recent_comments.html.php | 20 ++++++++++++++++++++ 3 files changed, 28 insertions(+), 10 deletions(-) create mode 100644 modules/comment/views/admin_block_recent_comments.html.php diff --git a/core/views/admin_dashboard.html.php b/core/views/admin_dashboard.html.php index 91a6ce36..2713cc0b 100644 --- a/core/views/admin_dashboard.html.php +++ b/core/views/admin_dashboard.html.php @@ -1,13 +1,3 @@ dashboard_blocks(); ?> -
-

Log Entries

- -
diff --git a/modules/comment/helpers/comment_block.php b/modules/comment/helpers/comment_block.php index ee05a383..03a2cb11 100644 --- a/modules/comment/helpers/comment_block.php +++ b/modules/comment/helpers/comment_block.php @@ -27,4 +27,12 @@ class comment_block_Core { public static function photo_bottom($theme) { return comment::block($theme, true); } + + public static function admin_dashboard_blocks($theme) { + $block = new Block(); + $block->id = "gRecentComments"; + $block->title = _("Recent Comments"); + $block->content = new View("admin_block_recent_comments.html"); + return $block; + } } \ No newline at end of file diff --git a/modules/comment/views/admin_block_recent_comments.html.php b/modules/comment/views/admin_block_recent_comments.html.php new file mode 100644 index 00000000..c86d8ce2 --- /dev/null +++ b/modules/comment/views/admin_block_recent_comments.html.php @@ -0,0 +1,20 @@ + -- cgit v1.2.3