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://andreas-haerter.com/projects/dokuwiki-template-vector 14 * @link http://www.dokuwiki.org/template:vector 15 * @link http://www.dokuwiki.org/devel:configuration 16 */ 17 18 19 20/****************************************************************************** 21 ******************************** ATTENTION ********************************* 22 DO NOT MODIFY THIS FILE, IT WILL NOT BE PRESERVED ON UPDATES! 23 ****************************************************************************** 24 If you want to add some own buttons, have a look at the README of this 25 template and "/user/buttons.php". You have been warned! 26 *****************************************************************************/ 27 28 29//check if we are running within the DokuWiki environment 30if (!defined("DOKU_INC")){ 31 die(); 32} 33 34 35//note: The buttons will be rendered in the order they were defined. Means: 36// first button will be rendered first, last button will be rendered at 37// last. 38 39 40//RSS recent changes button 41$_vector_btns["rss"]["img"] = DOKU_TPL."static/img/button-rss.png"; 42$_vector_btns["rss"]["href"] = DOKU_BASE."feed.php"; 43$_vector_btns["rss"]["width"] = 80; 44$_vector_btns["rss"]["height"] = 15; 45$_vector_btns["rss"]["title"] = $lang["vector_recentchanges"]; 46$_vector_btns["rss"]["nofollow"] = true; 47 48 49//"vector for DokuWiki" button 50//Note: You are NOT allowed to remove this button. Please respect this! 51$_vector_btns["vecfdw"]["img"] = DOKU_TPL."static/img/button-vector.png"; 52$_vector_btns["vecfdw"]["href"] = "http://andreas-haerter.com/"; 53$_vector_btns["vecfdw"]["width"] = 80; 54$_vector_btns["vecfdw"]["height"] = 15; 55$_vector_btns["vecfdw"]["title"] = $lang["vector_mdtemplatefordw"]; 56$_vector_btns["vecfdw"]["nofollow"] = false; 57 58 59//donation button 60if (tpl_getConf("vector_donate")){ 61 $_vector_btns["donate"]["img"] = DOKU_TPL."static/img/button-donate.gif"; 62 $_vector_btns["donate"]["href"] = DOKU_BASE."feed.php"; 63 if (tpl_getConf("vector_donate_default")){ 64 $_vector_btns["donate"]["href"] = "http://andreas-haerter.com/donate/dokuwiki-template-vector"; //default url 65 }else{ 66 $_vector_btns["donate"]["href"] = tpl_getConf("vector_donate_url"); //custom url 67 } 68 $_vector_btns["donate"]["width"] = 80; 69 $_vector_btns["donate"]["height"] = 15; 70 $_vector_btns["donate"]["title"] = $lang["vector_donate"]; 71 $_vector_btns["donate"]["nofollow"] = true; 72} 73 74 75//DokuWiki button 76$_vector_btns["dw"]["img"] = DOKU_TPL."static/img/button-dw.png"; 77$_vector_btns["dw"]["href"] = "http://www.dokuwiki.org"; 78$_vector_btns["dw"]["width"] = 80; 79$_vector_btns["dw"]["height"] = 15; 80$_vector_btns["dw"]["title"] = "DokuWiki"; 81$_vector_btns["dw"]["nofollow"] = false; 82 83 84 85/****************************************************************************** 86 ******************************** ATTENTION ********************************* 87 DO NOT MODIFY THIS FILE, IT WILL NOT BE PRESERVED ON UPDATES! 88 ****************************************************************************** 89 If you want to add some own buttons, have a look at the README of this 90 template and "/user/buttons.php". You have been warned! 91 *****************************************************************************/ 92 93