summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-04-27 20:04:37 +0200
committerandi <andi@splitbrain.org>2005-04-27 20:04:37 +0200
commit92795d041e58469edddd6903fb1e8e26aeb239ff (patch)
treea6f2812e2d51a7160e50cf55091af90b7f5be85b
parent40eb54bb0e6f4102d8b3e9af01c3bc93ac751cb2 (diff)
downloadrpg-92795d041e58469edddd6903fb1e8e26aeb239ff.tar.gz
rpg-92795d041e58469edddd6903fb1e8e26aeb239ff.tar.bz2
highlight patch adjustments
darcs-hash:20050427180437-9977f-5a3aa516a1522e342358d7829aad1163aaf97051.gz
-rw-r--r--inc/parser/xhtml.php23
-rw-r--r--inc/template.php4
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 ' &raquo; ';
- 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>';
}
}