From 40eb54bb0e6f4102d8b3e9af01c3bc93ac751cb2 Mon Sep 17 00:00:00 2001 From: jan Date: Mon, 25 Apr 2005 21:16:03 +0200 Subject: highlight link to current page darcs-hash:20050425191603-45605-16cf24c1cde4ee22a93ebcf688032af31ab084fa.gz --- inc/parser/xhtml.php | 5 +++++ inc/template.php | 6 ++++++ 2 files changed, 11 insertions(+) (limited to 'inc') 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'] = ''; + $link['suf'] = ''; + } $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 ''; tpl_link(wl($id),$name,'class="breadcrumbs" title="'.$id.'"'); + if ($i == $last) print ''; } } -- cgit v1.2.3