From 5eea81261f9d7b4d4fbd6627ad61a6eb166f5f1f Mon Sep 17 00:00:00 2001 From: Jonathan Stanley Date: Tue, 27 Feb 2007 01:00:52 +0000 Subject: [PATCH] "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 --- phpBB/includes/functions.php | 2 ++ 1 file changed, 2 insertions(+) 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,