1<?php
2
3/**
4 * User defined button configuration of the "vector" DokuWiki template
5 *
6 * Create a "/user/buttons.php" file if you want to add/remove some buttons.
7 * The template recognizes and loads the provided button data automatically.
8 * You may want to rename this file from "buttons.php.dist" to "buttons.php"
9 * to get a good starting point as it provides some examples. The comments of
10 * the {@link _vector_renderButtons()} (main.php) may be useful, too.
11 *
12 * Note: All example files are delivered with the ".dist" extensions to make
13 *       sure your changes do not get overwritten when updating the template.
14 *       Just remove the ".dist" extension to use them.
15 *
16 * Note: To change the non-button related config, use the admin webinterface of
17 *       DokuWiki.
18 *
19 *
20 * LICENSE: This file is open source software (OSS) and may be copied under
21 *          certain conditions. See COPYING file for details or try to contact
22 *          the author(s) of this file in doubt.
23 *
24 * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
25 * @author ARSAVA <dokuwiki@dev.arsava.com>
26 * @link https://www.dokuwiki.org/template:vector
27 * @link https://www.dokuwiki.org/devel:configuration
28 */
29
30
31//check if we are running within the DokuWiki environment
32if (!defined("DOKU_INC")){
33    die();
34}
35
36
37//note: The buttons will be rendered in the order they were defined. Means:
38//      first button will be rendered first, last button will be rendered at
39//      last.
40
41
42//W3C CSS validator button
43$_vector_btns["valid_css"]["img"]      = DOKU_TPL."static/img/button-css.png";
44$_vector_btns["valid_css"]["href"]     = "http://jigsaw.w3.org/css-validator/check/referer";
45$_vector_btns["valid_css"]["width"]    = 80;
46$_vector_btns["valid_css"]["height"]   = 15;
47$_vector_btns["valid_css"]["title"]    = "Valid CSS";
48$_vector_btns["valid_css"]["nofollow"] = true;
49
50
51//some examples: remove comments to see what is happening
52
53/*
54//button using all attributes
55$_vector_btns["example1"]["img"]      = DOKU_TPL."user/img/yourButtonHere.png";
56$_vector_btns["example1"]["href"]     = "http://www.example.com";
57$_vector_btns["example1"]["width"]    = 80;
58$_vector_btns["example1"]["height"]   = 15;
59$_vector_btns["example1"]["title"]    = "Example button";
60$_vector_btns["example1"]["nofollow"] = false;
61*/
62
63
64/*
65//button using only mandatory attributes
66$_vector_btns["example2"]["img"]      = DOKU_TPL."user/img/yourButtonHere.png";
67$_vector_btns["example2"]["href"]     = "http://www.example.com";
68*/
69