aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJonathan Stanley <shs@users.sourceforge.net>2007-02-27 01:00:52 +0000
committerJonathan Stanley <shs@users.sourceforge.net>2007-02-27 01:00:52 +0000
commit5eea81261f9d7b4d4fbd6627ad61a6eb166f5f1f (patch)
tree4e8f49ede86cbffea53af8b405b07f444cb2cde1 /phpBB
parent994ebd890c7586cd702299e28fd0def4eb2b94cf (diff)
downloadforums-5eea81261f9d7b4d4fbd6627ad61a6eb166f5f1f.tar
forums-5eea81261f9d7b4d4fbd6627ad61a6eb166f5f1f.tar.gz
forums-5eea81261f9d7b4d4fbd6627ad61a6eb166f5f1f.tar.bz2
forums-5eea81261f9d7b4d4fbd6627ad61a6eb166f5f1f.tar.xz
forums-5eea81261f9d7b4d4fbd6627ad61a6eb166f5f1f.zip
"Reintroducing" S_CONTENT_DIR_LEFT & S_CONTENT_DIR_RIGHT as S_CONTENT_FLOW_BEGIN & S_CONTENT_FLOW_END, but rather than taking values from ./language/xx/common.php (which often got translated when not needed, eg: to French, or just plain not used at all, swapping left=>right and right=>left in RTL mode).
We now enumerate left/right-right/left-ness by checking the directionality (S_CONTENT_DIRECTION) that is set within common.php Or better still! Template/Style authors should stop hardcoding alignments/floats and put everything into the CSS, in which case LTR/RTL changes can be done very cleanly and sanely by prefexing specific rules with the .ltr/.rtl class. git-svn-id: file:///svn/phpbb/trunk@7090 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index b7e6933ae0..04a2e20dce 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3750,6 +3750,8 @@ function page_header($page_title = '', $display_online_list = true)
'S_USER_BROWSER' => (isset($user->data['session_browser'])) ? $user->data['session_browser'] : $user->lang['UNKNOWN_BROWSER'],
'S_USERNAME' => $user->data['username'],
'S_CONTENT_DIRECTION' => $user->lang['DIRECTION'],
+ 'S_CONTENT_FLOW_BEGIN' => ($user->lang['DIRECTION'] == 'ltr') ? 'left' : 'right',
+ 'S_CONTENT_FLOW_END' => ($user->lang['DIRECTION'] == 'ltr') ? 'right' : 'left',
'S_CONTENT_ENCODING' => 'UTF-8',
'S_TIMEZONE' => ($user->data['user_dst'] || ($user->data['user_id'] == ANONYMOUS && $config['board_dst'])) ? sprintf($user->lang['ALL_TIMES'], $user->lang['tz'][$tz], $user->lang['tz']['dst']) : sprintf($user->lang['ALL_TIMES'], $user->lang['tz'][$tz], ''),
'S_DISPLAY_ONLINE_LIST' => ($l_online_time) ? 1 : 0,