1<?php 2 3/** 4 * User defined button configuration of the "vector" DokuWiki template 5 * 6 * If you want to add/remove some buttons, have a look at the comments/examples 7 * and the DocBlock of {@link _vector_renderButtons()}, main.php 8 * 9 * Rename this file from buttons.php.dist to buttons.php 10 * 11 * To change the non-button related config, use the admin webinterface of 12 * DokuWiki. 13 * 14 * 15 * LICENSE: This file is open source software (OSS) and may be copied under 16 * certain conditions. See COPYING file for details or try to contact 17 * the author(s) of this file in doubt. 18 * 19 * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html) 20 * @author Andreas Haerter <development@andreas-haerter.com> 21 * @link http://www.dokuwiki.org/template:vector 22 * @link http://www.dokuwiki.org/devel:configuration 23 */ 24 25 26//check if we are running within the DokuWiki environment 27if (!defined("DOKU_INC")){ 28 die(); 29} 30 31 32//note: The buttons will be rendered in the order they were defined. Means: 33// first button will be rendered first, last button will be rendered at 34// last. 35 36 37//W3C (X)HTML validator button 38$_vector_btns["valid_xhtml"]["img"] = DOKU_TPL."user/button-xhtml.png"; 39$_vector_btns["valid_xhtml"]["href"] = "http://validator.w3.org/check/referer"; 40$_vector_btns["valid_xhtml"]["width"] = 80; 41$_vector_btns["valid_xhtml"]["height"] = 15; 42$_vector_btns["valid_xhtml"]["title"] = "Valid XHTML"; 43$_vector_btns["valid_xhtml"]["nofollow"] = true; 44 45 46 47 48 49 50//examples: remove comments to see what is happening 51 52/* 53//W3C CSS validator button 54$_vector_btns["valid_css"]["img"] = DOKU_TPL."user/button-css.png"; 55$_vector_btns["valid_css"]["href"] = "http://jigsaw.w3.org/css-validator/check/referer"; 56$_vector_btns["valid_css"]["width"] = 80; 57$_vector_btns["valid_css"]["height"] = 15; 58$_vector_btns["valid_css"]["title"] = "Valid CSS"; 59$_vector_btns["valid_css"]["nofollow"] = true; 60*/ 61 62 63/* 64//button using all attributes 65$_vector_btns["example1"]["img"] = DOKU_TPL."user/img/yourButtonHere.png"; 66$_vector_btns["example1"]["href"] = "http://www.example.com"; 67$_vector_btns["example1"]["width"] = 80; 68$_vector_btns["example1"]["height"] = 15; 69$_vector_btns["example1"]["title"] = "Example button"; 70$_vector_btns["example1"]["nofollow"] = false; 71*/ 72 73 74/* 75//button using only mandatory attributes 76$_vector_btns["example2"]["img"] = DOKU_TPL."user/img/yourButtonHere.png"; 77$_vector_btns["example2"]["href"] = "http://www.example.com"; 78*/ 79