diff options
author | Andreas Gohr <andi@splitbrain.org> | 2015-05-16 19:52:26 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2015-05-16 19:52:26 +0200 |
commit | fb7685fb53589ebe099201297c0e8dbf20d89c59 (patch) | |
tree | 34b140d6a1a1ea3922cca14081e9dc3072f300fe /lib/plugins/styler/admin.php | |
parent | 0f5e7090beb4c8b8e99aa87454c89b53ed11cc66 (diff) | |
download | rpg-fb7685fb53589ebe099201297c0e8dbf20d89c59.tar.gz rpg-fb7685fb53589ebe099201297c0e8dbf20d89c59.tar.bz2 |
more improvements
Diffstat (limited to 'lib/plugins/styler/admin.php')
-rw-r--r-- | lib/plugins/styler/admin.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lib/plugins/styler/admin.php b/lib/plugins/styler/admin.php index 323bf61ec..4be2153ab 100644 --- a/lib/plugins/styler/admin.php +++ b/lib/plugins/styler/admin.php @@ -29,13 +29,21 @@ class admin_plugin_styler extends DokuWiki_Admin_Plugin { * Should carry out any processing required by the plugin. */ public function handle() { - set_doku_pref('styler_plugin', 1); } /** * Render HTML output, e.g. helpful text and a form */ public function html() { + echo '<div id="plugin__styler">'; + $this->form(); + echo '</div>'; + } + + /** + * Create the actual editing form + */ + public function form() { global $conf; $tpl = $conf['template']; define('SIMPLE_TEST',1); // hack, ideally certain functions should be moved out of css.php @@ -50,7 +58,7 @@ class admin_plugin_styler extends DokuWiki_Admin_Plugin { } else { echo '<p>Intro blah... for the currently active template ("'.$tpl.'")... not all variables preview...</p>'; - echo '<form class="styler" id="plugin__styler" method="post">'; + echo '<form class="styler" method="post">'; echo '<h2>Template variables</h2>'; echo '<table>'; foreach($replacements as $key => $value){ @@ -66,12 +74,8 @@ class admin_plugin_styler extends DokuWiki_Admin_Plugin { echo '<input type="submit" name="do[styler_plugin_save]" value="save">'; echo '</form>'; } - - - } - } // vim:ts=4:sw=4:et:
\ No newline at end of file |