diff options
-rw-r--r-- | inc/parser/xhtml.php | 5 | ||||
-rw-r--r-- | inc/template.php | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index d79069bd6..b677d9705 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -424,6 +424,11 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $link['style'] = ''; $link['pre'] = ''; $link['suf'] = ''; + // highlight link to current page + if ($id == $ID) { + $link['pre'] = '<strong>'; + $link['suf'] = '</strong>'; + } $link['more'] = 'onclick="return svchk()" onkeypress="return svchk()"'; $link['class'] = $class; $link['url'] = wl($id); diff --git a/inc/template.php b/inc/template.php index 078a62e87..787730173 100644 --- a/inc/template.php +++ b/inc/template.php @@ -351,10 +351,16 @@ function tpl_breadcrumbs(){ if(!$conf['breadcrumbs']) return; $crumbs = breadcrumbs(); //setup crumb trace + //render crumbs, highlight the last one print $lang['breadcrumb'].':'; + $last = count($crumbs); + $i = 0; foreach ($crumbs as $id => $name){ + $i++; print ' » '; + if ($i == $last) print '<strong>'; tpl_link(wl($id),$name,'class="breadcrumbs" title="'.$id.'"'); + if ($i == $last) print '</strong>'; } } |