use core favicon function if available
This commit is contained in:
parent
ffb6110488
commit
77a8b9e10b
1 changed files with 15 additions and 0 deletions
|
|
@ -128,6 +128,14 @@ function _tpl_getFavicon($abs=false, $fileName='favicon.ico') {
|
||||||
return DOKU_TPL.'images/'.$fileName;
|
return DOKU_TPL.'images/'.$fileName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* use core function if available, otherwise the custom one */
|
||||||
|
if (!function_exists('tpl_getFavicon')) {
|
||||||
|
function tpl_getFavicon($abs=false, $fileName='favicon.ico'){
|
||||||
|
_tpl_getFavicon($abs, $fileName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns <link> tag for various icon types (favicon|mobile|generic)
|
* Returns <link> tag for various icon types (favicon|mobile|generic)
|
||||||
*
|
*
|
||||||
|
|
@ -156,6 +164,13 @@ function _tpl_favicon($types=array('favicon')) {
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* use core function if available, otherwise the custom one */
|
||||||
|
if (!function_exists('tpl_favicon')) {
|
||||||
|
function tpl_favicon($types=array('favicon')){
|
||||||
|
_tpl_favicon($types);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Include additional html file from conf directory if it exists, otherwise use
|
* Include additional html file from conf directory if it exists, otherwise use
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue