From 92795d041e58469edddd6903fb1e8e26aeb239ff Mon Sep 17 00:00:00 2001 From: andi <andi@splitbrain.org> Date: Wed, 27 Apr 2005 20:04:37 +0200 Subject: [PATCH] highlight patch adjustments darcs-hash:20050427180437-9977f-5a3aa516a1522e342358d7829aad1163aaf97051.gz --- inc/parser/xhtml.php | 23 ++++++++++------------- inc/template.php | 4 ++-- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index b677d9705..c8ea9323c 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -426,9 +426,9 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $link['suf'] = ''; // highlight link to current page if ($id == $ID) { - $link['pre'] = '<strong>'; - $link['suf'] = '</strong>'; - } + $link['pre'] = '<span class="curid">'; + $link['suf'] = '</span>'; + } $link['more'] = 'onclick="return svchk()" onkeypress="return svchk()"'; $link['class'] = $class; $link['url'] = wl($id); @@ -916,9 +916,6 @@ class Doku_Renderer_xhtml extends Doku_Renderer { return htmlspecialchars($string); } - /** - * @TODO Tuning needed - e.g. utf8 strtolower ? - */ function _headerToLink($title) { return str_replace(':','',cleanID($title)); } @@ -936,13 +933,13 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $isImage = FALSE; if ( is_null($title) ) { - if ($conf['useheading'] && $id) { - $heading = p_get_first_heading($id); - if ($heading) { - return $this->_xmlEntities($heading); - } - } - return $this->_xmlEntities($default); + if ($conf['useheading'] && $id) { + $heading = p_get_first_heading($id); + if ($heading) { + return $this->_xmlEntities($heading); + } + } + return $this->_xmlEntities($default); } else if ( is_string($title) ) { diff --git a/inc/template.php b/inc/template.php index 787730173..c879ecff8 100644 --- a/inc/template.php +++ b/inc/template.php @@ -358,9 +358,9 @@ function tpl_breadcrumbs(){ foreach ($crumbs as $id => $name){ $i++; print ' » '; - if ($i == $last) print '<strong>'; + if ($i == $last) print '<span class="curid">'; tpl_link(wl($id),$name,'class="breadcrumbs" title="'.$id.'"'); - if ($i == $last) print '</strong>'; + if ($i == $last) print '</span>'; } } -- GitLab