xref: /template/wikiweko/conf/buttons.php (revision aa6ef13e3efaa3568fa7fbf0ed9be6d530aed3ff)
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 <andreas.haerter@dev.mail-node.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//donation button
50if (tpl_getConf("vector_donate")){
51    $_vector_btns["donate"]["img"]      = DOKU_TPL."static/img/button-donate.gif";
52    $_vector_btns["donate"]["href"]     = DOKU_BASE."feed.php";
53    if (tpl_getConf("vector_donate_default")){
54        $_vector_btns["donate"]["href"] = "http://andreas-haerter.com/donate/vector/paypal"; //default url
55    }else{
56        $_vector_btns["donate"]["href"] = tpl_getConf("vector_donate_url"); //custom url
57    }
58    $_vector_btns["donate"]["width"]    = 80;
59    $_vector_btns["donate"]["height"]   = 15;
60    $_vector_btns["donate"]["title"]    = $lang["vector_donate"];
61    $_vector_btns["donate"]["nofollow"] = true;
62}
63
64
65//"vector for DokuWiki" button
66$_vector_btns["vecfdw"]["img"]      = DOKU_TPL."static/img/button-vector.png";
67$_vector_btns["vecfdw"]["href"]     = "http://andreas-haerter.com/projects/dokuwiki-template-vector";
68$_vector_btns["vecfdw"]["width"]    = 80;
69$_vector_btns["vecfdw"]["height"]   = 15;
70$_vector_btns["vecfdw"]["title"]    = $lang["vector_mdtemplatefordw"];
71$_vector_btns["vecfdw"]["nofollow"] = false;
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