xref: /template/wikiweko/user/tabs.php.dist (revision 51bf57447617fc2c5130fc30ed36d61369496105)
1<?php
2
3/**
4 * User defined tab configuration of the "vector" DokuWiki template
5 *
6 * If you want to add/remove some tabs, have a look at the comments/examples
7 * and the DocBlock of {@link _vector_renderTabs()}, main.php
8 *
9 * Rename this file from tabs.php.dist to tabs.php
10 *
11 * To change the non-tab related config, use the admin webinterface of DokuWiki.
12 *
13 *
14 * LICENSE: This file is open source software (OSS) and may be copied under
15 *          certain conditions. See COPYING file for details or try to contact
16 *          the author(s) of this file in doubt.
17 *
18 * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
19 * @author Andreas Haerter <development@andreas-haerter.com>
20 * @link http://www.dokuwiki.org/template:vector
21 * @link http://www.dokuwiki.org/devel:configuration
22 */
23
24
25//check if we are running within the DokuWiki environment
26if (!defined("DOKU_INC")){
27    die();
28}
29
30
31/***************************** LEFT TAB NAVIGATION ****************************/
32
33//note: The tabs will be rendered in the order they were defined. Means: first
34//      tab will be rendered first, last tab will be rendered at last.
35
36
37//nothing here right now
38
39
40
41
42
43
44
45
46
47
48
49/*************************** RIGHT TAB NAVIGATION *****************************/
50
51//note: The tabs will be rendered in the order they were defined. Means: first
52//      tab will be rendered first, last tab will be rendered at last.
53
54
55//nothing here right now
56
57
58
59
60
61
62
63
64
65
66
67
68//examples: remove comments to see what is happening
69//
70//          Replace "$_vector_tabs_right" with "$_vector_tabs_left" to add
71//          the tabs to the left instead the right tab navigation (and vice
72//          versa)
73
74
75
76/*
77//(un)subscribe namespace tab
78if (!empty($conf["useacl"]) &&
79    !empty($conf["subscribers"]) &&
80    !empty($loginname)){ //$loginname was defined within main.php
81    if (empty($INFO["subscribedns"])){ //$INFO comes from DokuWiki core
82        $_vector_tabs_right["ca-watchns"]["href"] = wl(cleanID(getId()), array("do" => "subscribens"), false, "&");
83        $_vector_tabs_right["ca-watchns"]["text"] = $lang["btn_subscribens"]; //language comes from DokuWiki core
84    }else{
85        $_vector_tabs_right["ca-watchns"]["href"] = wl(cleanID(getId()), array("do" => "unsubscribens"), false, "&");
86        $_vector_tabs_right["ca-watchns"]["text"] = $lang["btn_unsubscribens"]; //language comes from DokuWiki core
87    }
88}
89*/
90
91
92/*
93//recent changes
94if (!empty($conf["recent_days"])){
95    $_vector_tabs_right["ca-recent"]["text"]     = $lang["btn_recent"]; //language comes from DokuWiki core
96    $_vector_tabs_right["ca-recent"]["href"]     = wl("", array("do" => "recent"), false, "&");
97    $_vector_tabs_right["ca-recent"]["nofollow"] = true;
98}
99*/
100
101
102/*
103//link
104$_vector_tabs_right["tab-urlexample"]["text"]  = "Creator";
105$_vector_tabs_right["tab-urlexample"]["href"]  = "http://andreas-haerter.com/";
106*/
107
108
109/*
110//link with rel="nofollow", see http://www.wikipedia.org/wiki/Nofollow for info
111$_vector_tabs_right["tab-urlexample2"]["text"]     = "Search the web";
112$_vector_tabs_right["tab-urlexample2"]["href"]     = "http://www.google.com/search?q=dokuwiki";
113$_vector_tabs_right["tab-urlexample2"]["nofollow"] = true;
114*/
115
116
117/*
118//internal wiki link
119$_vector_tabs_right["tab-wikilinkexample"]["text"]      = "Home";
120$_vector_tabs_right["tab-wikilinkexample"]["wiki"]      = ":start";
121$_vector_tabs_right["tab-wikilinkexample"]["accesskey"] = "H"; //accesskey is optional
122*/
123
124
125/*
126//ODT plugin: export tab
127//see <http://www.dokuwiki.org/plugin:odt> for info
128if (file_exists(DOKU_PLUGIN."odt/syntax.php") &&
129    !plugin_isdisabled("odt")){
130    $_vector_tabs_left["ca-export-odt"]["text"]     = $lang["vector_exportodt"];
131    $_vector_tabs_left["ca-export-odt"]["href"]     = wl(cleanID(getId()), array("do" => "export_odt"), false, "&");
132    $_vector_tabs_left["ca-export-odt"]["nofollow"] = true;
133}
134*/
135
136
137/*
138//dw2pdf or html2pdf plugin: export tab
139//see <http://www.dokuwiki.org/plugin:dw2pdf> and
140//<http://www.dokuwiki.org/plugin:html2pdf> for info
141if ((file_exists(DOKU_PLUGIN."dw2pdf/action.php") &&
142     !plugin_isdisabled("dw2pdf")) ||
143    (file_exists(DOKU_PLUGIN."html2pdf/action.php") &&
144     !plugin_isdisabled("html2pdf"))){
145    $_vector_tabs_left["ca-export-pdf"]["text"]     = $lang["vector_exportpdf"];
146    $_vector_tabs_left["ca-export-pdf"]["href"]     = wl(cleanID(getId()), array("do" => "export_pdf"), false, "&");
147    $_vector_tabs_left["ca-export-pdf"]["nofollow"] = true;
148}
149*/
150