mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 09:19:18 -04:00
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:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user