1 | <?php
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * User defined box configuration of the "monobook" DokuWiki template
|
---|
5 | *
|
---|
6 | * If you want to add/remove some boxes, have a look at the comments/examples
|
---|
7 | * and the DocBlock of {@link _monobook_renderBoxes()}, main.php
|
---|
8 | *
|
---|
9 | * To change the non-box related config, use the admin webinterface of DokuWiki.
|
---|
10 | *
|
---|
11 | *
|
---|
12 | * LICENSE: This file is open source software (OSS) and may be copied under
|
---|
13 | * certain conditions. See COPYING file for details or try to contact
|
---|
14 | * the author(s) of this file in doubt.
|
---|
15 | *
|
---|
16 | * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
|
---|
17 | * @author Andreas Haerter <[email protected]>
|
---|
18 | * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
|
---|
19 | * @link http://www.dokuwiki.org/template:monobook
|
---|
20 | * @link http://www.dokuwiki.org/devel:configuration
|
---|
21 | */
|
---|
22 |
|
---|
23 |
|
---|
24 | //check if we are running within the DokuWiki environment
|
---|
25 | if (!defined("DOKU_INC")){
|
---|
26 | die();
|
---|
27 | }
|
---|
28 |
|
---|
29 |
|
---|
30 | //note: The boxes will be rendered in the order they were defined. Means:
|
---|
31 | // first box will be rendered first, last box will be rendered at last.
|
---|
32 |
|
---|
33 |
|
---|
34 |
|
---|
35 |
|
---|
36 |
|
---|
37 | //examples: uncomment to see what is happening
|
---|
38 | /*
|
---|
39 | $_monobook_boxes["example1"]["headline"] = "Hello World!";
|
---|
40 | $_monobook_boxes["example1"]["xhtml"] = "DokuWiki with monobook... <em>rules</em>!";
|
---|
41 | */
|
---|
42 |
|
---|
43 |
|
---|
44 | /*
|
---|
45 | //QR-Code of the current page (thanks to Luigi Micco <http://www.luigimicco.altervista.org> for this)
|
---|
46 | $_monobook_boxes["qrcode"]["headline"] = "QR-Code";
|
---|
47 | $_monobook_boxes["qrcode"]["xhtml"] = '<img src="http://api.qrserver.com/v1/create-qr-code/?data='.urlencode(wl(cleanID(getId()), false, true, "&")).'&size=135x135" style="margin:0.5em 0 0.3em -0.2em;" alt="QR-Code: '.wl(cleanID(getId()), false, true).'" title="QR-Code: '.wl(cleanID(getId()), false, true).'" /><p style="font-size:6px !important;margin:0;padding:0;color:#aaa;"><a href="http://goqr.me/" style="color:#aaa;">QR Code</a> by <a href="http://qrserver.com/" style="color:#aaa;">QR-Server</a></p>';
|
---|
48 | */
|
---|
49 |
|
---|
50 |
|
---|
51 | /*
|
---|
52 | $_monobook_boxes["example2"]["headline"] = "Some links";
|
---|
53 | $_monobook_boxes["example2"]["xhtml"] = "<ul>\n"
|
---|
54 | ." <li><a href=\"".wl(cleanID(getId()), array("do" => "backlink"))."\" rel=\"nofollow\">".hsc($lang["monobook_toolbxdef_whatlinkshere"])."</a></li>\n" //we might use tpl_actionlink("backlink", "", "", hsc($lang["monobook_toolbxdef_whatlinkshere"]), true), but it would be the only toolbox link where this is possible... therefor I don't use it to be consistent
|
---|
55 | ." <li><a href=\"http://www.example.com\">Example link</a></li>\n"
|
---|
56 | ." <li><a href=\"".wl(cleanID(getId()), array("rev" => 0, "mddo" => "cite"))."\" rel=\"nofollow\">Cite newest version</a></li>\n"
|
---|
57 | ."</ul>";
|
---|
58 | */
|
---|
59 |
|
---|
60 |
|
---|
61 | /*
|
---|
62 | $_monobook_boxes["example3"]["headline"] = "Buttons";
|
---|
63 | $_monobook_boxes["example3"]["xhtml"] = "<a href=\"http://andreas-haerter.com/donate/dokuwiki-template-monobook\" title=\"Donate\" target=\"_blank\"><img src=\"".DOKU_TPL."static/img/button-donate.gif\" width=\"80\" height=\"15\" alt=\"Donate\" border=\"0\" /></a>";
|
---|
64 | */
|
---|
65 |
|
---|
66 |
|
---|
67 | /*
|
---|
68 | //include the content of another wiki page (you have to create it first, for
|
---|
69 | //sure. In this example, the page "wiki:your_page_here" is used)
|
---|
70 | $_monobook_boxes["example4"]["headline"] = "wiki:your_page_here";
|
---|
71 | $_monobook_boxes["example4"]["xhtml"] = tpl_include_page("wiki:your_page_here", false);
|
---|
72 | */
|
---|
73 |
|
---|