1<?php 2 3/** 4 * Default button configuration of the "monobook" 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:monobook 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$_monobook_btns["rss"]["img"] = DOKU_TPL."static/img/button-rss.png"; 41$_monobook_btns["rss"]["href"] = DOKU_BASE."feed.php"; 42$_monobook_btns["rss"]["width"] = 80; 43$_monobook_btns["rss"]["height"] = 15; 44$_monobook_btns["rss"]["title"] = $lang["monobook_recentchanges"]; 45$_monobook_btns["rss"]["nofollow"] = true; 46 47 48//"monobook for DokuWiki" button 49$_monobook_btns["mbfdw"]["img"] = DOKU_TPL."static/img/button-monobook.png"; 50$_monobook_btns["mbfdw"]["href"] = "https://www.dokuwiki.org/template:monobook"; 51$_monobook_btns["mbfdw"]["width"] = 80; 52$_monobook_btns["mbfdw"]["height"] = 15; 53$_monobook_btns["mbfdw"]["title"] = $lang["monobook_mdtemplatefordw"]; 54$_monobook_btns["mbfdw"]["nofollow"] = !(cleanID(getID()) === "start"); 55 56 57//donation button 58if (tpl_getConf("monobook_donate")){ 59 $_monobook_btns["donate"]["img"] = DOKU_TPL."static/img/button-donate.gif"; 60 $_monobook_btns["donate"]["href"] = tpl_getConf("monobook_donate_url"); 61 $_monobook_btns["donate"]["width"] = 80; 62 $_monobook_btns["donate"]["height"] = 15; 63 $_monobook_btns["donate"]["title"] = $lang["monobook_donate"]; 64 $_monobook_btns["donate"]["nofollow"] = true; 65} 66 67 68//DokuWiki button 69$_monobook_btns["dw"]["img"] = DOKU_TPL."static/img/button-dw.png"; 70$_monobook_btns["dw"]["href"] = "https://www.dokuwiki.org/"; 71$_monobook_btns["dw"]["width"] = 80; 72$_monobook_btns["dw"]["height"] = 15; 73$_monobook_btns["dw"]["title"] = "DokuWiki"; 74$_monobook_btns["dw"]["nofollow"] = !(cleanID(getID()) === "start"); 75 76 77//W3C (X)HTML validator button 78$_monobook_btns["valid_xhtml"]["img"] = DOKU_TPL."static/img/button-xhtml.png"; 79$_monobook_btns["valid_xhtml"]["href"] = "http://validator.w3.org/check/referer"; 80$_monobook_btns["valid_xhtml"]["width"] = 80; 81$_monobook_btns["valid_xhtml"]["height"] = 15; 82$_monobook_btns["valid_xhtml"]["title"] = "Valid XHTML"; 83$_monobook_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