source: documentation/trunk/packages/dokuwiki-2011-05-25a/lib/tpl/monobook/conf/buttons.php@ 25027

Last change on this file since 25027 was 25027, checked in by jmt12, 12 years ago

Adding the packages directory, and within it a configured version of dokuwiki all ready to run

File size: 3.7 KB
Line 
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 Andreas Haerter <[email protected]>
13 * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
14 * @link http://www.dokuwiki.org/template:monobook
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$_monobook_btns["rss"]["img"] = DOKU_TPL."static/img/button-rss.png";
42$_monobook_btns["rss"]["href"] = DOKU_BASE."feed.php";
43$_monobook_btns["rss"]["width"] = 80;
44$_monobook_btns["rss"]["height"] = 15;
45$_monobook_btns["rss"]["title"] = $lang["monobook_recentchanges"];
46$_monobook_btns["rss"]["nofollow"] = true;
47
48
49//"monobook for DokuWiki" button
50//Note: You are NOT allowed to remove this button. Please respect this!
51$_monobook_btns["mbfdw"]["img"] = DOKU_TPL."static/img/button-monobook.png";
52$_monobook_btns["mbfdw"]["href"] = "http://andreas-haerter.com/";
53$_monobook_btns["mbfdw"]["width"] = 80;
54$_monobook_btns["mbfdw"]["height"] = 15;
55$_monobook_btns["mbfdw"]["title"] = $lang["monobook_mdtemplatefordw"];
56$_monobook_btns["mbfdw"]["nofollow"] = false;
57
58
59//donation button
60if (tpl_getConf("monobook_donate")){
61 $_monobook_btns["donate"]["img"] = DOKU_TPL."static/img/button-donate.gif";
62 $_monobook_btns["donate"]["href"] = DOKU_BASE."feed.php";
63 if (tpl_getConf("monobook_donate_default")){
64 $_monobook_btns["donate"]["href"] = "http://andreas-haerter.com/donate/dokuwiki-template-monobook"; //default url
65 }else{
66 $_monobook_btns["donate"]["href"] = tpl_getConf("monobook_donate_url"); //custom url
67 }
68 $_monobook_btns["donate"]["width"] = 80;
69 $_monobook_btns["donate"]["height"] = 15;
70 $_monobook_btns["donate"]["title"] = $lang["monobook_donate"];
71 $_monobook_btns["donate"]["nofollow"] = true;
72}
73
74
75//DokuWiki button
76$_monobook_btns["dw"]["img"] = DOKU_TPL."static/img/button-dw.png";
77$_monobook_btns["dw"]["href"] = "http://www.dokuwiki.org";
78$_monobook_btns["dw"]["width"] = 80;
79$_monobook_btns["dw"]["height"] = 15;
80$_monobook_btns["dw"]["title"] = "DokuWiki";
81$_monobook_btns["dw"]["nofollow"] = false;
82
83
84
85/******************************************************************************
86 ******************************** ATTENTION *********************************
87 DO NOT MODIFY THIS FILE, IT WILL NOT BE PRESERVED ON UPDATES!
88 ******************************************************************************
89 If you want to add some own buttons, have a look at the README of this
90 template and "/user/buttons.php". You have been warned!
91 *****************************************************************************/
92
Note: See TracBrowser for help on using the repository browser.