*/ // must be run within Dokuwiki if(!defined('DOKU_INC')) die(); class admin_plugin_styler extends DokuWiki_Admin_Plugin { /** * @return int sort number in admin menu */ public function getMenuSort() { return 1000; } /** * @return bool true if only access for superuser, false is for superusers and moderators */ public function forAdminOnly() { return true; } /** * 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() { global $conf; $tpl = $conf['template']; define('SIMPLE_TEST',1); // hack, ideally certain functions should be moved out of css.php require_once(DOKU_INC.'lib/exe/css.php'); $styleini = css_styleini($conf['template'], true); $replacements = $styleini['replacements']; ptln('
Sorry, this template does not support this functionality.
'; } else { echo 'Intro blah... for the currently active template ("'.$tpl.'")... not all variables preview...
'; echo ''; } } } // vim:ts=4:sw=4:et: