1<?php
2
3/**
4 * User defined box configuration of the "vector" DokuWiki template
5 *
6 * Create a "/user/boxes.php" file if you want to add/remove some sidebar boxes.
7 * The template recognizes and loads the provided boxes data automatically.
8 * You may want to rename this file from "boxes.php.dist" to "boxes.php"
9 * to get a good starting point as it provides some examples. The comments of
10 * the {@link _vector_renderBoxes()} (main.php) may be useful, too.
11 *
12 * Note: All example files are delivered with the ".dist" extensions to make
13 *       sure your changes do not get overwritten when updating the template.
14 *       Just remove the ".dist" extension to use them.
15 *
16 * Note: To change the non-box related config, use the admin webinterface of
17 *       DokuWiki.
18 *
19 *
20 * LICENSE: This file is open source software (OSS) and may be copied under
21 *          certain conditions. See COPYING file for details or try to contact
22 *          the author(s) of this file in doubt.
23 *
24 * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
25 * @author ARSAVA <dokuwiki@dev.arsava.com>
26 * @link https://www.dokuwiki.org/template:vector
27 * @link https://www.dokuwiki.org/devel:configuration
28 */
29
30
31//check if we are running within the DokuWiki environment
32if (!defined("DOKU_INC")){
33    die();
34}
35
36
37//note: The boxes will be rendered in the order they were defined. Means:
38//      first box will be rendered first, last box will be rendered at last.
39
40$_vector_boxes["example1"]["headline"] = "Hello World!";
41$_vector_boxes["example1"]["xhtml"] = "DokuWiki with vector... <em>rules</em>!";
42
43
44
45//examples: remove comments to see what is happening
46
47/*
48$_vector_boxes["example2"]["headline"] = "Some links";
49$_vector_boxes["example2"]["xhtml"] =  "<ul>\n"
50                                      ."  <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
51                                      ."  <li><a href=\"http://www.example.com\">Example link</a></li>\n"
52                                      ."  <li><a href=\"".wl(cleanID(getId()), array("rev" => 0, "vecdo" => "cite"))."\" rel=\"nofollow\">Cite newest version</a></li>\n"
53                                      ."</ul>";
54*/
55
56
57/*
58$_vector_boxes["example3"]["headline"] = "Buttons";
59$_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>";
60*/
61
62
63/*
64//include the content of another wiki page (you have to create it first, for
65//sure. In this example, the page "wiki:your_page_here" is used)
66$_vector_boxes["example4"]["headline"] = "wiki:your_page_here";
67$_vector_boxes["example4"]["xhtml"] = tpl_include_page("wiki:your_page_here", false);
68*/
69
70