forked from Cavemanon/cavepaintings
the bulk of theme engine 2.0; it's still rough, but it works
git-svn-id: file:///home/shish/svn/shimmie2/trunk@201 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
@@ -17,8 +17,8 @@ class AdminPage extends Extension {
|
||||
global $page;
|
||||
$page->set_title("Error");
|
||||
$page->set_heading("Error");
|
||||
$page->add_side_block(new NavBlock(), 0);
|
||||
$page->add_main_block(new Block("Permission Denied", "This page is for admins only"), 0);
|
||||
$page->add_block(new NavBlock());
|
||||
$page->add_block(new Block("Permission Denied", "This page is for admins only"));
|
||||
}
|
||||
else {
|
||||
if($event->get_arg(0) == "delete_image") {
|
||||
@@ -44,7 +44,7 @@ class AdminPage extends Extension {
|
||||
global $user;
|
||||
if($user->is_admin()) {
|
||||
global $page;
|
||||
$page->add_side_block(new Block("Admin", $this->build_del_block($event->image->id)));
|
||||
$page->add_block(new Block("Admin", $this->build_del_block($event->image->id), "left"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ class AdminPage extends Extension {
|
||||
global $page;
|
||||
$page->set_title("Admin Tools");
|
||||
$page->set_heading("Admin Tools");
|
||||
$page->add_side_block(new NavBlock(), 0);
|
||||
$page->add_block(new NavBlock());
|
||||
}
|
||||
// }}}
|
||||
}
|
||||
|
Reference in New Issue
Block a user