1<?php 2 3/** 4 * User defined box configuration of the "vector" DokuWiki template 5 * 6 * If you want to add/remove some boxes, have a look at the comments/examples 7 * and the DocBlock of {@link _vector_renderBoxes()}, main.php 8 * 9 * Rename this file from boxes.php.dist to boxes.php 10 * 11 * To change the non-box related config, use the admin webinterface of DokuWiki. 12 * 13 * 14 * LICENSE: This file is open source software (OSS) and may be copied under 15 * certain conditions. See COPYING file for details or try to contact 16 * the author(s) of this file in doubt. 17 * 18 * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html) 19 * @author Andreas Haerter <development@andreas-haerter.com> 20 * @link http://www.dokuwiki.org/template:vector 21 * @link http://www.dokuwiki.org/devel:configuration 22 */ 23 24 25//check if we are running within the DokuWiki environment 26if (!defined("DOKU_INC")){ 27 die(); 28} 29 30 31//note: The boxes will be rendered in the order they were defined. Means: 32// first box will be rendered first, last box will be rendered at last. 33 34 35 36//Languages/translations provided by Andreas Gohr's translation plugin, 37//see <http://www.dokuwiki.org/plugin:translation> 38if (!empty($transplugin) && //$transplugin object was created in /conf/boxes.php 39 is_object($transplugin)){ 40 $_vector_boxes["p-lang"]["headline"] = $lang["vector_translations"]; 41 $_vector_boxes["p-lang"]["xhtml"] = $transplugin->_showTranslations(); 42} 43 44 45 46 47//examples: remove comments to see what is happening 48/* 49$_vector_boxes["example1"]["headline"] = "Hello World!"; 50$_vector_boxes["example1"]["xhtml"] = "DokuWiki with vector... <em>rules</em>!"; 51*/ 52 53 54/* 55$_vector_boxes["example2"]["headline"] = "Some links"; 56$_vector_boxes["example2"]["xhtml"] = "<ul>\n" 57 ." <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 58 ." <li><a href=\"http://www.example.com\">Example link</a></li>\n" 59 ." <li><a href=\"".wl(cleanID(getId()), array("rev" => 0, "vecdo" => "cite"))."\" rel=\"nofollow\">Cite newest version</a></li>\n" 60 ."</ul>"; 61*/ 62 63 64/* 65$_vector_boxes["example3"]["headline"] = "Buttons"; 66$_vector_boxes["example3"]["xhtml"] = "<a href=\"http://donate.andreas-haerter.com/dokuwiki-template-vector/\" title=\"Donate\" target=\"_blank\"><img src=\"".DOKU_TPL."static/img/button-donate.gif\" width=\"80\" height=\"15\" alt=\"Donate\" border=\"0\" /></a>"; 67*/ 68 69 70/* 71//include the content of another wiki page (you have to create it first, for 72//sure. In this example, the page "wiki:your_page_here" is used) 73$_vector_boxes["example4"]["headline"] = "wiki:your_page_here"; 74$_vector_boxes["example4"]["xhtml"] = tpl_include_page("wiki:your_page_here", false); 75*/ 76 77