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 +++++ 1 file changed, 5 insertions(+) (limited to 'inc/parser/xhtml.php') 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); -- cgit v1.2.3