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