Separate permanent messages out of the message helper and put them

into site_status.  Show site status in the header in the admin theme.
This commit is contained in:
Bharat Mediratta
2008-12-29 00:35:31 +00:00
parent ed8689f768
commit b46bfdd492
5 changed files with 161 additions and 53 deletions

View File

@@ -61,6 +61,13 @@ class Admin_View_Core extends View {
print $menu;
}
/**
* Print out any site wide status information. This is for admins only.
*/
public function site_status() {
return site_status::get();
}
/**
* Print out any messages waiting for this user.
*/
@@ -73,8 +80,11 @@ class Admin_View_Core extends View {
*/
public function __call($function, $args) {
switch ($function) {
case "admin_credits";
case "admin_dashboard_blocks":
case "admin_footer":
case "admin_header_top":
case "admin_header_bottom":
case "admin_page_bottom":
case "admin_page_top":
case "admin_sidebar_blocks":