From ac4bb34cf26ea5147849d47bab2747473503d582 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 20 Dec 2008 01:00:52 +0000 Subject: Add admin sidebar blocks, and move the stats block into that pattern. --- core/helpers/core_block.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'core/helpers/core_block.php') diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php index 3c1e0727..ca28c690 100644 --- a/core/helpers/core_block.php +++ b/core/helpers/core_block.php @@ -34,7 +34,15 @@ class core_block_Core { $block = new Block(); $block->id = "gWelcome"; $block->title = _("Welcome to Gallery3"); - $block->content = new View("admin_dashboard_welcome.html"); + $block->content = new View("admin_block_welcome.html"); + return $block; + } + + public static function admin_sidebar_blocks($theme) { + $block = new Block(); + $block->id = "gStats"; + $block->title = _("Gallery Stats"); + $block->content = new View("admin_block_stats.html"); return $block; } } \ No newline at end of file -- cgit v1.2.3