Compare commits

..

2 Commits

Author SHA1 Message Date
fd53bfa625 remove leading start breadcrumb 2026-03-25 13:51:45 +01:00
e3641093ab Update apple icon 2026-03-25 13:47:33 +01:00
2 changed files with 9 additions and 0 deletions

BIN
images/apple-touch-icon.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@@ -16,6 +16,15 @@ if ($conf['useacl']) {
$breadcrumbsHtml = '';
if ($conf['youarehere']) {
$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']) {
$breadcrumbsHtml = tpl_breadcrumbs(null, true);