summaryrefslogtreecommitdiff
path: root/core/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-20 01:00:52 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-20 01:00:52 +0000
commitac4bb34cf26ea5147849d47bab2747473503d582 (patch)
tree301de6dea25e1d1c39b75becfd6ca3c22a1e0ce5 /core/helpers
parentaee3efe972317b49329703e354cc1d90afdf9488 (diff)
Add admin sidebar blocks, and move the stats block into that pattern.
Diffstat (limited to 'core/helpers')
-rw-r--r--core/helpers/core_block.php10
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