From 6453c767ef210d71f4ddb9602c9f963f36f5639f Mon Sep 17 00:00:00 2001 From: pachuco Date: Sun, 24 Jun 2012 23:25:46 +0300 Subject: [PATCH] Added ability to input resolution both in post index and oekaki page, as well as a little warning about losing canvas contents. --- ext/oekaki/theme.php | 66 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 57 insertions(+), 9 deletions(-) diff --git a/ext/oekaki/theme.php b/ext/oekaki/theme.php index cfcda3b0..50f73034 100644 --- a/ext/oekaki/theme.php +++ b/ext/oekaki/theme.php @@ -1,35 +1,83 @@ - - + + - JAVA NOT SUPPORTED! + JAVA NOT INSTALLED >:( "; # # - + // FIXME: prevent oekaki block from collapsing on click in cerctain themes. This causes canvas reset $page->set_title("Oekaki"); - $page->set_heading("Oekiaki"); + $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() { - global $page; - $page->add_block(new Block(null, "Open Oekaki", "left", 21)); // upload is 20 + global $page, $defOekW, $defOekH; + //FIXME: input field alignment could be done more elegantly, without inline styling + //FIXME: autocomplete='off' seems to be an invalid HTML tag + $page->add_block(new Block(null, + " + Oekaki +
+
+
+ + x + + +
+
+ " + , "left", 21)); // upload is 20 } } ?>