* @link https://www.dokuwiki.org/template:vector * @link https://www.dokuwiki.org/devel:configuration */ //check if we are running within the DokuWiki environment if (!defined("DOKU_INC")){ die(); } /***************************** LEFT TAB NAVIGATION ****************************/ //note: The tabs will be rendered in the order they were defined. Means: first // tab will be rendered first, last tab will be rendered at last. //nothing here right now /*************************** RIGHT TAB NAVIGATION *****************************/ //note: The tabs will be rendered in the order they were defined. Means: first // tab will be rendered first, last tab will be rendered at last. //nothing here right now //examples: remove comments to see what is happening // // Replace "$_vector_tabs_right" with "$_vector_tabs_left" to add // the tabs to the left instead the right tab navigation (and vice // versa) /* //(un)subscribe namespace tab if (!empty($conf["useacl"]) && !empty($conf["subscribers"]) && !empty($loginname)){ //$loginname was defined within main.php if (empty($INFO["subscribedns"])){ //$INFO comes from DokuWiki core $_vector_tabs_right["ca-watchns"]["href"] = wl(cleanID(getId()), array("do" => "subscribens"), false, "&"); $_vector_tabs_right["ca-watchns"]["text"] = $lang["btn_subscribens"]; //language comes from DokuWiki core }else{ $_vector_tabs_right["ca-watchns"]["href"] = wl(cleanID(getId()), array("do" => "unsubscribens"), false, "&"); $_vector_tabs_right["ca-watchns"]["text"] = $lang["btn_unsubscribens"]; //language comes from DokuWiki core } } */ /* //recent changes if (!empty($conf["recent_days"])){ $_vector_tabs_right["ca-recent"]["text"] = $lang["btn_recent"]; //language comes from DokuWiki core $_vector_tabs_right["ca-recent"]["href"] = wl("", array("do" => "recent"), false, "&"); $_vector_tabs_right["ca-recent"]["nofollow"] = true; } */ /* //link $_vector_tabs_right["tab-urlexample"]["text"] = "Creator"; $_vector_tabs_right["tab-urlexample"]["href"] = "https://andreashaerter.com/"; $_vector_tabs_right["tab-urlexample"]["nofollow"] = true; */ /* //link with rel="nofollow", see http://www.wikipedia.org/wiki/Nofollow for info $_vector_tabs_right["tab-urlexample2"]["text"] = "Search the web"; $_vector_tabs_right["tab-urlexample2"]["href"] = "http://www.google.com/search?q=dokuwiki"; $_vector_tabs_right["tab-urlexample2"]["nofollow"] = true; */ /* //internal wiki link $_vector_tabs_right["tab-wikilinkexample"]["text"] = "Home"; $_vector_tabs_right["tab-wikilinkexample"]["wiki"] = ":start"; $_vector_tabs_right["tab-wikilinkexample"]["accesskey"] = "H"; //accesskey is optional */ /* //ODT plugin: export tab //see for info if (file_exists(DOKU_PLUGIN."odt/syntax.php") && !plugin_isdisabled("odt")){ $_vector_tabs_left["ca-export-odt"]["text"] = $lang["vector_exportodt"]; $_vector_tabs_left["ca-export-odt"]["href"] = wl(cleanID(getId()), array("do" => "export_odt"), false, "&"); $_vector_tabs_left["ca-export-odt"]["nofollow"] = true; } */ /* //dw2pdf or html2pdf plugin: export tab //see and // for info if ((file_exists(DOKU_PLUGIN."dw2pdf/action.php") && !plugin_isdisabled("dw2pdf")) || (file_exists(DOKU_PLUGIN."html2pdf/action.php") && !plugin_isdisabled("html2pdf"))){ $_vector_tabs_left["ca-export-pdf"]["text"] = $lang["vector_exportpdf"]; $_vector_tabs_left["ca-export-pdf"]["href"] = wl(cleanID(getId()), array("do" => "export_pdf"), false, "&"); $_vector_tabs_left["ca-export-pdf"]["nofollow"] = true; } */