Skip to content
Snippets Groups Projects
Commit 92795d04 authored by andi's avatar andi
Browse files

highlight patch adjustments

darcs-hash:20050427180437-9977f-5a3aa516a1522e342358d7829aad1163aaf97051.gz
parent 40eb54bb
No related branches found
No related tags found
No related merge requests found
......@@ -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) ) {
......
......@@ -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>';
}
}
......
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