From e12a4f2ae392a91db0c649367977d46cedc87e68 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 20 Dec 2008 01:13:57 +0000 Subject: Move the "status messages" section into its own block. --- core/helpers/core_block.php | 10 +++++++++- core/views/admin_block_messages.html.php | 33 ++++++++++++++++++++++++++++++++ core/views/admin_dashboard.html.php | 10 ---------- 3 files changed, 42 insertions(+), 11 deletions(-) create mode 100644 core/views/admin_block_messages.html.php (limited to 'core') diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php index 7f0bb50a..b5f7ccf4 100644 --- a/core/helpers/core_block.php +++ b/core/helpers/core_block.php @@ -35,7 +35,15 @@ class core_block_Core { $block->id = "gWelcome"; $block->title = _("Welcome to Gallery3"); $block->content = new View("admin_block_welcome.html"); - return $block; + $blocks[] = $block; + + $block = new Block(); + $block->id = "gMessages"; + $block->title = _("Status Messages"); + $block->content = new View("admin_block_messages.html"); + $blocks[] = $block; + + return implode("\n", $blocks); } public static function admin_sidebar_blocks($theme) { diff --git a/core/views/admin_block_messages.html.php b/core/views/admin_block_messages.html.php new file mode 100644 index 00000000..ee97c2c1 --- /dev/null +++ b/core/views/admin_block_messages.html.php @@ -0,0 +1,33 @@ + + + + + + diff --git a/core/views/admin_dashboard.html.php b/core/views/admin_dashboard.html.php index 4603a8bf..0bf62359 100644 --- a/core/views/admin_dashboard.html.php +++ b/core/views/admin_dashboard.html.php @@ -1,15 +1,5 @@ dashboard_blocks(); ?> -
-

Status Messages

- -

Photo Stream

-- cgit v1.2.3