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.
 
 
 
 
 

69 lines
2.4 KiB

  1. <?php
  2. /**
  3. * User defined button configuration of the "vector" DokuWiki template
  4. *
  5. * Create a "/user/buttons.php" file if you want to add/remove some buttons.
  6. * The template recognizes and loads the provided button data automatically.
  7. * You may want to rename this file from "buttons.php.dist" to "buttons.php"
  8. * to get a good starting point as it provides some examples. The comments of
  9. * the {@link _vector_renderButtons()} (main.php) may be useful, too.
  10. *
  11. * Note: All example files are delivered with the ".dist" extensions to make
  12. * sure your changes do not get overwritten when updating the template.
  13. * Just remove the ".dist" extension to use them.
  14. *
  15. * Note: To change the non-button related config, use the admin webinterface of
  16. * DokuWiki.
  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 ARSAVA <dokuwiki@dev.arsava.com>
  25. * @link https://www.dokuwiki.org/template:vector
  26. * @link https://www.dokuwiki.org/devel:configuration
  27. */
  28. //check if we are running within the DokuWiki environment
  29. if (!defined("DOKU_INC")){
  30. die();
  31. }
  32. //note: The buttons will be rendered in the order they were defined. Means:
  33. // first button will be rendered first, last button will be rendered at
  34. // last.
  35. //W3C CSS validator button
  36. $_vector_btns["valid_css"]["img"] = DOKU_TPL."static/img/button-css.png";
  37. $_vector_btns["valid_css"]["href"] = "http://jigsaw.w3.org/css-validator/check/referer";
  38. $_vector_btns["valid_css"]["width"] = 80;
  39. $_vector_btns["valid_css"]["height"] = 15;
  40. $_vector_btns["valid_css"]["title"] = "Valid CSS";
  41. $_vector_btns["valid_css"]["nofollow"] = true;
  42. //some examples: remove comments to see what is happening
  43. /*
  44. //button using all attributes
  45. $_vector_btns["example1"]["img"] = DOKU_TPL."user/img/yourButtonHere.png";
  46. $_vector_btns["example1"]["href"] = "http://www.example.com";
  47. $_vector_btns["example1"]["width"] = 80;
  48. $_vector_btns["example1"]["height"] = 15;
  49. $_vector_btns["example1"]["title"] = "Example button";
  50. $_vector_btns["example1"]["nofollow"] = false;
  51. */
  52. /*
  53. //button using only mandatory attributes
  54. $_vector_btns["example2"]["img"] = DOKU_TPL."user/img/yourButtonHere.png";
  55. $_vector_btns["example2"]["href"] = "http://www.example.com";
  56. */