* @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
* @link http://www.dokuwiki.org/template:monobook
* @link http://www.dokuwiki.org/devel:templates
*/
//check if we are running within the DokuWiki environment
if (!defined("DOKU_INC")){
die();
}
?>
" lang="" dir="" class="popup">
";
//manually load needed CSS? this is a workaround for PHP Bug #49642. In some
//version/os combinations PHP is not able to parse INI-file entries if there
//are slashes "/" used for the keynames (see bugreport for more information:
//). to trigger this workaround, simply
//delete/rename monobook's style.ini.
if (!file_exists(DOKU_TPLINC."style.ini")){
echo "\n"; //var comes from DokuWiki core
}
//include default or userdefined favicon
//
//note: since 2011-04-22 "Rincewind RC1", there is a core function named
// "tpl_getFavicon()". But its functionality is not really fitting the
// behaviour of this template, therefore I don't use it here.
if (file_exists(DOKU_TPLINC."user/favicon.ico")){
//user defined - you might find http://tools.dynamicdrive.com/favicon/
//useful to generate one
echo "\n\n";
}elseif (file_exists(DOKU_TPLINC."user/favicon.png")){
//note: I do NOT recommend PNG for favicons (cause it is not supported by
//all browsers), but some users requested this feature.
echo "\n\n";
}else{
//default
echo "\n\n";
}
//include default or userdefined Apple Touch Icon (see for
//details)
if (file_exists(DOKU_TPLINC."user/apple-touch-icon.png")){
echo "\n";
}else{
//default
echo "\n";
}
//load userdefined js?
if (tpl_getConf("monobook_loaduserjs")){
echo "\n";
}
//load language specific css hacks?
if (file_exists(DOKU_TPLINC."lang/".$conf["lang"]."/style.css")){
$interim = trim(file_get_contents(DOKU_TPLINC."lang/".$conf["lang"]."/style.css"));
if (!empty($interim)){
echo "\n";
}
}
?>