xref: /template/wikiweko/conf/buttons.php (revision 4c199a43cab284902d0e4aac3ecac83a10d81dcc)
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 <ah@bitkollektiv.org>
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: You are NOT allowed to remove this button. Please respect this!
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"] = false;
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"]     = DOKU_BASE."feed.php";
62    if (tpl_getConf("vector_donate_default")){
63        $_vector_btns["donate"]["href"] = "http://bitkollektiv.org/donate/dokuwiki-template-vector/"; //default url
64    }else{
65        $_vector_btns["donate"]["href"] = tpl_getConf("vector_donate_url"); //custom url
66    }
67    $_vector_btns["donate"]["width"]    = 80;
68    $_vector_btns["donate"]["height"]   = 15;
69    $_vector_btns["donate"]["title"]    = $lang["vector_donate"];
70    $_vector_btns["donate"]["nofollow"] = true;
71}
72
73
74//DokuWiki button
75$_vector_btns["dw"]["img"]      = DOKU_TPL."static/img/button-dw.png";
76$_vector_btns["dw"]["href"]     = "http://www.dokuwiki.org";
77$_vector_btns["dw"]["width"]    = 80;
78$_vector_btns["dw"]["height"]   = 15;
79$_vector_btns["dw"]["title"]    = "DokuWiki";
80$_vector_btns["dw"]["nofollow"] = false;
81
82
83
84/******************************************************************************
85 ********************************  ATTENTION  *********************************
86         DO NOT MODIFY THIS FILE, IT WILL NOT BE PRESERVED ON UPDATES!
87 ******************************************************************************
88  If you want to add some own buttons, have a look at the README of this
89  template and "/user/buttons.php". You have been warned!
90 *****************************************************************************/
91
92