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.
 
 
 
 
 

95 lines
3.7 KiB

  1. <?php
  2. /**
  3. * Default button configuration of the "vector" DokuWiki template
  4. *
  5. *
  6. * LICENSE: This file is open source software (OSS) and may be copied under
  7. * certain conditions. See COPYING file for details or try to contact
  8. * the author(s) of this file in doubt.
  9. *
  10. * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
  11. * @author ARSAVA <dokuwiki@dev.arsava.com>
  12. * @link https://www.dokuwiki.org/template:vector
  13. * @link https://www.dokuwiki.org/devel:configuration
  14. */
  15. /******************************************************************************
  16. ******************************** ATTENTION *********************************
  17. DO NOT MODIFY THIS FILE, IT WILL NOT BE PRESERVED ON UPDATES!
  18. ******************************************************************************
  19. If you want to add some own buttons, have a look at the README of this
  20. template and "/user/buttons.php". You have been warned!
  21. *****************************************************************************/
  22. //check if we are running within the DokuWiki environment
  23. if (!defined("DOKU_INC")){
  24. die();
  25. }
  26. //note: The buttons will be rendered in the order they were defined. Means:
  27. // first button will be rendered first, last button will be rendered at
  28. // last.
  29. //RSS recent changes button
  30. $_vector_btns["rss"]["img"] = DOKU_TPL."static/img/button-rss.png";
  31. $_vector_btns["rss"]["href"] = DOKU_BASE."feed.php";
  32. $_vector_btns["rss"]["width"] = 80;
  33. $_vector_btns["rss"]["height"] = 15;
  34. $_vector_btns["rss"]["title"] = $lang["vector_recentchanges"];
  35. $_vector_btns["rss"]["nofollow"] = true;
  36. //"vector for DokuWiki" button
  37. $_vector_btns["vecfdw"]["img"] = DOKU_TPL."static/img/button-vector.png";
  38. $_vector_btns["vecfdw"]["href"] = "https://www.dokuwiki.org/template:vector";
  39. $_vector_btns["vecfdw"]["width"] = 80;
  40. $_vector_btns["vecfdw"]["height"] = 15;
  41. $_vector_btns["vecfdw"]["title"] = $lang["vector_mdtemplatefordw"];
  42. $_vector_btns["vecfdw"]["nofollow"] = !(cleanID(getID()) === "start");
  43. //donation button
  44. if (tpl_getConf("vector_donate")){
  45. $_vector_btns["donate"]["img"] = DOKU_TPL."static/img/button-donate.gif";
  46. $_vector_btns["donate"]["href"] = tpl_getConf("vector_donate_url");
  47. $_vector_btns["donate"]["width"] = 80;
  48. $_vector_btns["donate"]["height"] = 15;
  49. $_vector_btns["donate"]["title"] = $lang["vector_donate"];
  50. $_vector_btns["donate"]["nofollow"] = true;
  51. }
  52. //DokuWiki button
  53. $_vector_btns["dw"]["img"] = DOKU_TPL."static/img/button-dw.png";
  54. $_vector_btns["dw"]["href"] = "https://www.dokuwiki.org/";
  55. $_vector_btns["dw"]["width"] = 80;
  56. $_vector_btns["dw"]["height"] = 15;
  57. $_vector_btns["dw"]["title"] = "DokuWiki";
  58. $_vector_btns["dw"]["nofollow"] = !(cleanID(getID()) === "start");
  59. //W3C (X)HTML validator button
  60. $_vector_btns["valid_xhtml"]["img"] = DOKU_TPL."static/img/button-xhtml.png";
  61. $_vector_btns["valid_xhtml"]["href"] = "http://validator.w3.org/check/referer";
  62. $_vector_btns["valid_xhtml"]["width"] = 80;
  63. $_vector_btns["valid_xhtml"]["height"] = 15;
  64. $_vector_btns["valid_xhtml"]["title"] = "Valid XHTML";
  65. $_vector_btns["valid_xhtml"]["nofollow"] = true;
  66. /******************************************************************************
  67. ******************************** ATTENTION *********************************
  68. DO NOT MODIFY THIS FILE, IT WILL NOT BE PRESERVED ON UPDATES!
  69. ******************************************************************************
  70. If you want to add some own buttons, have a look at the README of this
  71. template and "/user/buttons.php". You have been warned!
  72. *****************************************************************************/