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.
 
 
 
 
 

70 lines
3.0 KiB

  1. <?php
  2. /**
  3. * User defined box configuration of the "vector" DokuWiki template
  4. *
  5. * Create a "/user/boxes.php" file if you want to add/remove some sidebar boxes.
  6. * The template recognizes and loads the provided boxes data automatically.
  7. * You may want to rename this file from "boxes.php.dist" to "boxes.php"
  8. * to get a good starting point as it provides some examples. The comments of
  9. * the {@link _vector_renderBoxes()} (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-box 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 boxes will be rendered in the order they were defined. Means:
  33. // first box will be rendered first, last box will be rendered at last.
  34. $_vector_boxes["example1"]["headline"] = "Hello World!";
  35. $_vector_boxes["example1"]["xhtml"] = "DokuWiki with vector... <em>rules</em>!";
  36. //examples: remove comments to see what is happening
  37. /*
  38. $_vector_boxes["example2"]["headline"] = "Some links";
  39. $_vector_boxes["example2"]["xhtml"] = "<ul>\n"
  40. ." <li><a href=\"".wl(cleanID(getId()), array("do" => "backlink"))."\" rel=\"nofollow\">".hsc($lang["vector_toolbxdef_whatlinkshere"])."</a></li>\n" //we might use tpl_actionlink("backlink", "", "", hsc($lang["vector_toolbxdef_whatlinkshere"]), true), but it would be the only toolbox link where this is possible... therefor I don't use it to be consistent
  41. ." <li><a href=\"http://www.example.com\">Example link</a></li>\n"
  42. ." <li><a href=\"".wl(cleanID(getId()), array("rev" => 0, "vecdo" => "cite"))."\" rel=\"nofollow\">Cite newest version</a></li>\n"
  43. ."</ul>";
  44. */
  45. /*
  46. $_vector_boxes["example3"]["headline"] = "Buttons";
  47. $_vector_boxes["example3"]["xhtml"] = "<a href=\"https://donate.arsava.com/dokuwiki-template-vector/\" title=\"Donate\" target=\"_blank\" rel=\"nofollow\"><img src=\"".DOKU_TPL."static/img/button-donate.gif\" width=\"80\" height=\"15\" alt=\"Donate\" border=\"0\" /></a>";
  48. */
  49. /*
  50. //include the content of another wiki page (you have to create it first, for
  51. //sure. In this example, the page "wiki:your_page_here" is used)
  52. $_vector_boxes["example4"]["headline"] = "wiki:your_page_here";
  53. $_vector_boxes["example4"]["xhtml"] = tpl_include_page("wiki:your_page_here", false);
  54. */