[geeklog-cvs] geeklog: newpro: fixed login form display for RTL languages
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Thu Mar 22 18:29:50 EDT 2012
changeset 8545:ca2b6c700214
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/ca2b6c700214
user: Rouslan Placella <rouslan at placella.com>
date: Thu Mar 22 22:28:05 2012 +0000
description:
newpro: fixed login form display for RTL languages
diffstat:
public_html/layout/newpro/css/users/users.css | 8 +++++++-
public_html/layout/newpro/users/loginform.thtml | 2 +-
system/lib-security.php | 3 ++-
3 files changed, 10 insertions(+), 3 deletions(-)
diffs (57 lines):
diff -r 2b367c53d578 -r ca2b6c700214 public_html/layout/newpro/css/users/users.css
--- a/public_html/layout/newpro/css/users/users.css Thu Mar 22 21:59:49 2012 +0000
+++ b/public_html/layout/newpro/css/users/users.css Thu Mar 22 22:28:05 2012 +0000
@@ -51,7 +51,7 @@
}
div.standard-login-panel label {
- margin-right: 1em;
+ margin: 0 1em;
float: right;
line-height: 1.8em;
}
@@ -66,6 +66,12 @@
height: 1.8em;
}
+div.standard-login-panel.rtl input,
+div.standard-login-panel.rtl select,
+div.standard-login-panel.rtl label {
+ float: left;
+}
+
div.standard-login-panel input.submit {
height: 28px;
font-size: 12px;
diff -r 2b367c53d578 -r ca2b6c700214 public_html/layout/newpro/users/loginform.thtml
--- a/public_html/layout/newpro/users/loginform.thtml Thu Mar 22 21:59:49 2012 +0000
+++ b/public_html/layout/newpro/users/loginform.thtml Thu Mar 22 22:28:05 2012 +0000
@@ -3,7 +3,7 @@
{start_block_loginagain}
<div class="login-wrapper {remote_login_class}">
- <div class="standard-login-panel {remote_login_class}">
+ <div class="standard-login-panel {remote_login_class} {lang_direction}">
<form action="{site_url}/users.php" method="post" id="userloginform" class="compact">
<fieldset>
<legend>{lang_login}</legend>
diff -r 2b367c53d578 -r ca2b6c700214 system/lib-security.php
--- a/system/lib-security.php Thu Mar 22 21:59:49 2012 +0000
+++ b/system/lib-security.php Thu Mar 22 22:28:05 2012 +0000
@@ -1801,7 +1801,7 @@
*/
function SEC_loginForm($use_config = array())
{
- global $_CONF, $LANG01, $LANG04, $_SCRIPTS;
+ global $_CONF, $LANG01, $LANG04, $_SCRIPTS, $LANG_DIRECTION;
$retval = '';
@@ -1833,6 +1833,7 @@
$loginform->set_var('start_block_loginagain',
COM_startBlock($config['title']));
+ $loginform->set_var('lang_direction', $LANG_DIRECTION);
$loginform->set_var('lang_message', $config['message']);
if ($config['no_newreg_link'] || $_CONF['disable_new_user_registration']) {
$loginform->set_var('lang_newreglink', '');
More information about the geeklog-cvs
mailing list