From 951da261e8bccdb05ab4dc87ff69c866390fa627 Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 26 Jun 2012 20:00:38 +0100 Subject: [PATCH] Use the same 'create new image' block for post/list and oekaki pages --- ext/oekaki/main.php | 5 +++-- ext/oekaki/theme.php | 16 ---------------- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/ext/oekaki/main.php b/ext/oekaki/main.php index 6d21e65b..efd80aad 100644 --- a/ext/oekaki/main.php +++ b/ext/oekaki/main.php @@ -13,6 +13,7 @@ class Oekaki extends Extension { if($user->can("create_image")) { if($event->get_arg(0) == "create") { $this->theme->display_page(); + $this->theme->display_block(); } if($event->get_arg(0) == "claim") { // FIXME: move .chi to data/oekaki/$ha/$hash mirroring images and thumbs @@ -79,9 +80,9 @@ class Oekaki extends Extension { // FIXME: "edit this image" button on existing images? function onPostListBuilding(PostListBuildingEvent $event) { - global $user, $page; + global $user; if($user->can("create_image")) { - $this->theme->display_block($page); + $this->theme->display_block(); } } } diff --git a/ext/oekaki/theme.php b/ext/oekaki/theme.php index ac74df8e..fccad46a 100644 --- a/ext/oekaki/theme.php +++ b/ext/oekaki/theme.php @@ -36,22 +36,6 @@ class OekakiTheme extends Themelet { $page->set_heading("Oekaki"); $page->add_block(new NavBlock()); $page->add_block(new Block("Oekaki", $html, "main", 20)); - $page->add_block(new Block(null, - " - Change canvas size. -
-
-
- - x - - -
-
-
- WARNING: Resets canvas! - " - , "left", 21)); // upload is 20 } public function display_block() {