diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-20 01:00:52 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-20 01:00:52 +0000 |
commit | ac4bb34cf26ea5147849d47bab2747473503d582 (patch) | |
tree | 301de6dea25e1d1c39b75becfd6ca3c22a1e0ce5 /core/helpers/core_block.php | |
parent | aee3efe972317b49329703e354cc1d90afdf9488 (diff) |
Add admin sidebar blocks, and move the stats block into that pattern.
Diffstat (limited to 'core/helpers/core_block.php')
-rw-r--r-- | core/helpers/core_block.php | 10 |
1 files changed, 9 insertions, 1 deletions
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 |