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 Andreas Haerter <development@andreas-haerter.com> 13 * @link http://www.dokuwiki.org/template:vector 14 * @link http://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//Note: please do NOT remove this button. Thank you. :-) 50$_vector_btns["vecfdw"]["img"] = DOKU_TPL."static/img/button-vector.png"; 51$_vector_btns["vecfdw"]["href"] = "http://andreas-haerter.com/"; 52$_vector_btns["vecfdw"]["width"] = 80; 53$_vector_btns["vecfdw"]["height"] = 15; 54$_vector_btns["vecfdw"]["title"] = $lang["vector_mdtemplatefordw"]; 55$_vector_btns["vecfdw"]["nofollow"] = !(cleanID(getID()) === "start"); 56 57 58//donation button 59if (tpl_getConf("vector_donate")){ 60 $_vector_btns["donate"]["img"] = DOKU_TPL."static/img/button-donate.gif"; 61 $_vector_btns["donate"]["href"] = tpl_getConf("vector_donate_url"); 62 $_vector_btns["donate"]["width"] = 80; 63 $_vector_btns["donate"]["height"] = 15; 64 $_vector_btns["donate"]["title"] = $lang["vector_donate"]; 65 $_vector_btns["donate"]["nofollow"] = !(cleanID(getID()) === "start"); 66} 67 68 69//QR Code button 70//Note: please do NOT remove this button. Thank you. :-) 71$_vector_btns["qrcode"]["img"] = DOKU_TPL."static/img/button-qrcode.png"; 72$_vector_btns["qrcode"]["href"] = "http://".(($conf["lang"] !== "de") ? "goqr.me" : "qr-code-generator.de")."/"; 73$_vector_btns["qrcode"]["width"] = 80; 74$_vector_btns["qrcode"]["height"] = 15; 75$_vector_btns["qrcode"]["title"] = $lang["vector_qrcodebtn"]; 76$_vector_btns["qrcode"]["nofollow"] = !(cleanID(getID()) === "start"); 77 78 79//DokuWiki button 80$_vector_btns["dw"]["img"] = DOKU_TPL."static/img/button-dw.png"; 81$_vector_btns["dw"]["href"] = "http://www.dokuwiki.org"; 82$_vector_btns["dw"]["width"] = 80; 83$_vector_btns["dw"]["height"] = 15; 84$_vector_btns["dw"]["title"] = "DokuWiki"; 85$_vector_btns["dw"]["nofollow"] = false; 86 87 88 89/****************************************************************************** 90 ******************************** ATTENTION ********************************* 91 DO NOT MODIFY THIS FILE, IT WILL NOT BE PRESERVED ON UPDATES! 92 ****************************************************************************** 93 If you want to add some own buttons, have a look at the README of this 94 template and "/user/buttons.php". You have been warned! 95 *****************************************************************************/ 96 97