Skip to content
Snippets Groups Projects
Commit 40eb54bb authored by jan's avatar jan
Browse files

highlight link to current page

darcs-hash:20050425191603-45605-16cf24c1cde4ee22a93ebcf688032af31ab084fa.gz
parent c3d8e19b
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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>';
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment