[30114] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | /**
|
---|
| 4 | * Types of the different option values for the "monobook" DokuWiki template
|
---|
| 5 | *
|
---|
| 6 | * Notes:
|
---|
| 7 | * - In general, use the admin webinterface of DokuWiki to change config.
|
---|
| 8 | * - To change/add configuration values to store, have a look at this file
|
---|
| 9 | * and the "default.php" in the same directory as this file.
|
---|
| 10 | * - To change/translate the descriptions showed in the admin/configuration
|
---|
| 11 | * menu of DokuWiki, have a look at the file
|
---|
| 12 | * "/lib/tpl/monobook/lang/<your lang>/settings.php". If it does not exists,
|
---|
| 13 | * copy and translate the English one. And don't forget to mail the
|
---|
| 14 | * translation to me, Andreas Haerter <[email protected]> :-D.
|
---|
| 15 | * - To change the tab configuration, have a look at the "tabs.php" in the
|
---|
| 16 | * same directory as this file.
|
---|
| 17 | *
|
---|
| 18 | *
|
---|
| 19 | * LICENSE: This file is open source software (OSS) and may be copied under
|
---|
| 20 | * certain conditions. See COPYING file for details or try to contact
|
---|
| 21 | * the author(s) of this file in doubt.
|
---|
| 22 | *
|
---|
| 23 | * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
|
---|
| 24 | * @author Andreas Haerter <[email protected]>
|
---|
| 25 | * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
|
---|
| 26 | * @link http://www.dokuwiki.org/template:monobook
|
---|
| 27 | * @link http://www.dokuwiki.org/devel:configuration
|
---|
| 28 | */
|
---|
| 29 |
|
---|
| 30 |
|
---|
| 31 | //check if we are running within the DokuWiki environment
|
---|
| 32 | if (!defined("DOKU_INC")){
|
---|
| 33 | die();
|
---|
| 34 | }
|
---|
| 35 |
|
---|
| 36 | //user pages
|
---|
| 37 | $meta["monobook_userpage"] = array("onoff");
|
---|
| 38 | $meta["monobook_userpage_ns"] = array("string", "_pattern" => "/^:.{1,}:$/");
|
---|
| 39 |
|
---|
| 40 | //discussion pages
|
---|
| 41 | $meta["monobook_discuss"] = array("onoff");
|
---|
| 42 | $meta["monobook_discuss_ns"] = array("string", "_pattern" => "/^:.{1,}:$/");
|
---|
| 43 |
|
---|
| 44 | //site notice
|
---|
| 45 | $meta["monobook_sitenotice"] = array("onoff");
|
---|
| 46 | $meta["monobook_sitenotice_location"] = array("string");
|
---|
| 47 |
|
---|
| 48 | //navigation
|
---|
| 49 | $meta["monobook_navigation"] = array("onoff");
|
---|
| 50 | $meta["monobook_navigation_location"] = array("string");
|
---|
| 51 | $meta["monobook_navigation_translate"] = array("onoff");
|
---|
| 52 |
|
---|
| 53 | //custom copyright notice
|
---|
| 54 | $meta["monobook_copyright"] = array("onoff");
|
---|
| 55 | $meta["monobook_copyright_default"] = array("onoff");
|
---|
| 56 | $meta["monobook_copyright_location"] = array("string");
|
---|
| 57 |
|
---|
| 58 | //search form
|
---|
| 59 | $meta["monobook_search"] = array("onoff");
|
---|
| 60 |
|
---|
| 61 | //toolbox
|
---|
| 62 | $meta["monobook_toolbox"] = array("onoff");
|
---|
| 63 | $meta["monobook_toolbox_default"] = array("onoff");
|
---|
| 64 | $meta["monobook_toolbox_default_print"] = array("onoff");
|
---|
| 65 | $meta["monobook_toolbox_location"] = array("string");
|
---|
| 66 |
|
---|
| 67 | //donation link/button
|
---|
| 68 | $meta["monobook_donate"] = array("onoff");
|
---|
| 69 | $meta["monobook_donate_default"] = array("onoff");
|
---|
| 70 | $meta["monobook_donate_url"] = array("string", "_pattern" => "/^.{1,6}:\/{2}.+$/");
|
---|
| 71 |
|
---|
| 72 | //TOC
|
---|
| 73 | $meta["monobook_toc_position"] = array("multichoice", "_choices" => array("article", "sidebar"));
|
---|
| 74 |
|
---|
| 75 | //other stuff
|
---|
| 76 | $meta["monobook_breadcrumbs_position"] = array("multichoice", "_choices" => array("top", "bottom"));
|
---|
| 77 | $meta["monobook_youarehere_position"] = array("multichoice", "_choices" => array("top", "bottom"));
|
---|
| 78 | $meta["monobook_cite_author"] = array("string");
|
---|
| 79 | $meta["monobook_loaduserjs"] = array("onoff");
|
---|
| 80 | $meta["monobook_closedwiki"] = array("onoff");
|
---|
| 81 |
|
---|