remove leading start breadcrumb
This commit is contained in:
@@ -16,6 +16,15 @@ if ($conf['useacl']) {
|
|||||||
$breadcrumbsHtml = '';
|
$breadcrumbsHtml = '';
|
||||||
if ($conf['youarehere']) {
|
if ($conf['youarehere']) {
|
||||||
$breadcrumbsHtml = tpl_youarehere(null, true);
|
$breadcrumbsHtml = tpl_youarehere(null, true);
|
||||||
|
// Remove the "You are here" label and the start page link,
|
||||||
|
// since the wiki logo already links to the start page.
|
||||||
|
if ($breadcrumbsHtml) {
|
||||||
|
// Strip the label span and the home/start page span
|
||||||
|
$breadcrumbsHtml = preg_replace('/<span class="bchead">.*?<\/span>/', '', $breadcrumbsHtml);
|
||||||
|
$breadcrumbsHtml = preg_replace('/<span class="home">.*?<\/span>/', '', $breadcrumbsHtml);
|
||||||
|
// Remove any leading separator left over after stripping the home link
|
||||||
|
$breadcrumbsHtml = preg_replace('/^\s*»\s*/', '' , trim($breadcrumbsHtml));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!$breadcrumbsHtml && $conf['breadcrumbs']) {
|
if (!$breadcrumbsHtml && $conf['breadcrumbs']) {
|
||||||
$breadcrumbsHtml = tpl_breadcrumbs(null, true);
|
$breadcrumbsHtml = tpl_breadcrumbs(null, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user