diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/html.php | 2 | ||||
-rw-r--r-- | inc/parser/xhtml.php | 4 | ||||
-rw-r--r-- | inc/template.php | 7 |
3 files changed, 9 insertions, 4 deletions
diff --git a/inc/html.php b/inc/html.php index 3f6306dc1..0b724bd3e 100644 --- a/inc/html.php +++ b/inc/html.php @@ -165,7 +165,7 @@ function html_topbtn(){ global $lang; $ret = ''; - $ret = '<a href="#top"><input type="button" class="button" value="Back to top" onclick="window.scrollTo(0, 0)" /></a>'; + $ret = '<a href="#top"><input type="button" class="button" value="'.$lang['btn_top'].'" onclick="window.scrollTo(0, 0)" /></a>'; return $ret; } diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 9df02c942..41a07e0a9 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -537,9 +537,9 @@ class Doku_Renderer_xhtml extends Doku_Renderer { if(!$isImage){ //if ico exists set additional style if(@file_exists(DOKU_INC.'interwiki/'.$wikiName.'.png')){ - $link['style']='background: transparent url('.DOKU_BASE.'interwiki/'.$wikiName.'.png) 0px 1px no-repeat;'; + $link['style']='background-image: url('.DOKU_BASE.'interwiki/'.$wikiName.'.png)'; }elseif(@file_exists(DOKU_INC.'interwiki/'.$wikiName.'.gif')){ - $link['style']='background: transparent url('.DOKU_BASE.'interwiki/'.$wikiName.'.gif) 0px 1px no-repeat;'; + $link['style']='background-image: url('.DOKU_BASE.'interwiki/'.$wikiName.'.gif)'; } } diff --git a/inc/template.php b/inc/template.php index c879ecff8..5ab8ea6a5 100644 --- a/inc/template.php +++ b/inc/template.php @@ -351,13 +351,17 @@ function tpl_breadcrumbs(){ if(!$conf['breadcrumbs']) return; $crumbs = breadcrumbs(); //setup crumb trace + + //reverse crumborder in right-to-left mode + if($lang['direction'] == 'rtl') $crumbs = array_reverse($crumbs,true); + //render crumbs, highlight the last one print $lang['breadcrumb'].':'; $last = count($crumbs); $i = 0; foreach ($crumbs as $id => $name){ $i++; - print ' » '; + print ' <span class="bcsep">»</span> '; if ($i == $last) print '<span class="curid">'; tpl_link(wl($id),$name,'class="breadcrumbs" title="'.$id.'"'); if ($i == $last) print '</span>'; @@ -373,6 +377,7 @@ function tpl_breadcrumbs(){ * * @author Andreas Gohr <andi@splitbrain.org> * @link http://wiki.splitbrain.org/wiki:tipsandtricks:hierarchicalbreadcrumbs + * @todo May behave starngely in RTL languages */ function tpl_youarehere(){ global $conf; |