You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

86 lines
3.1 KiB

  1. <?php
  2. /**
  3. * Types of the different option values for the "vector" DokuWiki template
  4. *
  5. * Notes:
  6. * - In general, use the admin webinterface of DokuWiki to change the config.
  7. * - To change/add configuration values to store, have a look at this file
  8. * and the "default.php" in the same directory as this file.
  9. * - To change/translate the descriptions showed in the admin/configuration
  10. * menu of DokuWiki, have a look at the file
  11. * /lib/tpl/vector/lang/<your lang>/settings.php. If it does not exists,
  12. * copy and translate the English one. Don't forget to mail your translation
  13. * to ARSAVA <dokuwiki@dev.arsava.com>. Thanks! :-D
  14. * - To change the tab configuration, have a look at the "tabs.php" in the
  15. * same directory as this file.
  16. *
  17. *
  18. * LICENSE: This file is open source software (OSS) and may be copied under
  19. * certain conditions. See COPYING file for details or try to contact
  20. * the author(s) of this file in doubt.
  21. *
  22. * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
  23. * @author ARSAVA <dokuwiki@dev.arsava.com>
  24. * @link https://www.dokuwiki.org/template:vector
  25. * @link https://www.dokuwiki.org/devel:configuration
  26. */
  27. //check if we are running within the DokuWiki environment
  28. if (!defined("DOKU_INC")){
  29. die();
  30. }
  31. //user pages
  32. $meta["vector_userpage"] = array("onoff");
  33. $meta["vector_userpage_ns"] = array("string", "_pattern" => "/^:.{1,}:$/");
  34. //discussion pages
  35. $meta["vector_discuss"] = array("onoff");
  36. $meta["vector_discuss_ns"] = array("string", "_pattern" => "/^:.{1,}:$/");
  37. //site notice
  38. $meta["vector_sitenotice"] = array("onoff");
  39. $meta["vector_sitenotice_location"] = array("string");
  40. $meta["vector_sitenotice_translate"] = array("onoff");
  41. //navigation
  42. $meta["vector_navigation"] = array("onoff");
  43. $meta["vector_navigation_location"] = array("string");
  44. $meta["vector_navigation_translate"] = array("onoff");
  45. //exportbox ("print/export")
  46. $meta["vector_exportbox"] = array("onoff");
  47. $meta["vector_exportbox_default"] = array("onoff");
  48. $meta["vector_exportbox_location"] = array("string");
  49. //toolbox
  50. $meta["vector_toolbox"] = array("onoff");
  51. $meta["vector_toolbox_default"] = array("onoff");
  52. $meta["vector_toolbox_location"] = array("string");
  53. //qr code box
  54. $meta["vector_qrcodebox"] = array("onoff");
  55. //custom copyright notice
  56. $meta["vector_copyright"] = array("onoff");
  57. $meta["vector_copyright_default"] = array("onoff");
  58. $meta["vector_copyright_location"] = array("string");
  59. $meta["vector_copyright_translate"] = array("onoff");
  60. //donation link/button
  61. $meta["vector_donate"] = array("onoff");
  62. $meta["vector_donate_url"] = array("string", "_pattern" => "/^.{1,6}:\/{2}.+$/");
  63. //TOC
  64. $meta["vector_toc_position"] = array("multichoice", "_choices" => array("article", "sidebar"));
  65. //other stuff
  66. $meta["vector_breadcrumbs_position"] = array("multichoice", "_choices" => array("top", "bottom"));
  67. $meta["vector_youarehere_position"] = array("multichoice", "_choices" => array("top", "bottom"));
  68. $meta["vector_cite_author"] = array("string");
  69. $meta["vector_loaduserjs"] = array("onoff");
  70. $meta["vector_closedwiki"] = array("onoff");