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