diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-20 00:52:20 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-20 00:52:20 +0000 |
commit | aee3efe972317b49329703e354cc1d90afdf9488 (patch) | |
tree | cf683bfe84b85270c7c8d1193da7495a931908b9 /core/helpers | |
parent | 30d541cb26b1754afdf0f5130dcf75af40457251 (diff) |
Create a pattern for admin dashboard blocks and make the "welcome"
block.
Diffstat (limited to 'core/helpers')
-rw-r--r-- | core/helpers/core_block.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php index 7f756b92..3c1e0727 100644 --- a/core/helpers/core_block.php +++ b/core/helpers/core_block.php @@ -29,4 +29,12 @@ class core_block_Core { return new View("in_place_edit.html"); } } + + public static function admin_dashboard_blocks($theme) { + $block = new Block(); + $block->id = "gWelcome"; + $block->title = _("Welcome to Gallery3"); + $block->content = new View("admin_dashboard_welcome.html"); + return $block; + } }
\ No newline at end of file |