diff options
author | andi <andi@splitbrain.org> | 2005-05-01 13:53:05 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-05-01 13:53:05 +0200 |
commit | 265e3787e12edf6f10be9d7260d20ea1778428cb (patch) | |
tree | c95fede015cc07d40125cb0d79b49d69a2b25c54 /inc/template.php | |
parent | cbe3402474d1a9f6a563d717ff38d0120425c184 (diff) | |
download | rpg-265e3787e12edf6f10be9d7260d20ea1778428cb.tar.gz rpg-265e3787e12edf6f10be9d7260d20ea1778428cb.tar.bz2 |
various language fixes (including RTL updates)
darcs-hash:20050501115305-9977f-e7ccfbf5b3f47c7f7ff5fb339ba40c0c50861a3c.gz
Diffstat (limited to 'inc/template.php')
-rw-r--r-- | inc/template.php | 7 |
1 files changed, 6 insertions, 1 deletions
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; |