summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjan <jan@jandecaluwe.com>2005-04-25 21:16:03 +0200
committerjan <jan@jandecaluwe.com>2005-04-25 21:16:03 +0200
commit40eb54bb0e6f4102d8b3e9af01c3bc93ac751cb2 (patch)
tree7e3b924bd238c373239a42051bc9bf2012382f2f
parentc3d8e19b99bca531a2914814bba707959107c843 (diff)
downloadrpg-40eb54bb0e6f4102d8b3e9af01c3bc93ac751cb2.tar.gz
rpg-40eb54bb0e6f4102d8b3e9af01c3bc93ac751cb2.tar.bz2
highlight link to current page
darcs-hash:20050425191603-45605-16cf24c1cde4ee22a93ebcf688032af31ab084fa.gz
-rw-r--r--inc/parser/xhtml.php5
-rw-r--r--inc/template.php6
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 ' &raquo; ';
+ if ($i == $last) print '<strong>';
tpl_link(wl($id),$name,'class="breadcrumbs" title="'.$id.'"');
+ if ($i == $last) print '</strong>';
}
}