X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Ftemplates%2FUsercreate.php;h=50dfaecb47fb0f0cf1337d990df84754bfaa494c;hb=c93a33559f65e185dc07d823a2dbfb3ff77392fe;hp=c066da95f897f3eb6fcefeda2b966e886bb01a02;hpb=50d90a334153ff2a026f5dd836f4dfa36816511d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/templates/Usercreate.php b/includes/templates/Usercreate.php index c066da95f8..50dfaecb47 100644 --- a/includes/templates/Usercreate.php +++ b/includes/templates/Usercreate.php @@ -56,7 +56,12 @@ class UsercreateTemplate extends BaseTemplate { } ?>
-

msg( 'createacct-join' ); ?>

+

+ msg( $this->data['loggedin'] ? + 'createacct-another-join' : 'createacct-join' ); + ?> +

html( 'header' ); /* extensions such as ConfirmEdit add form HTML here */ ?> @@ -77,15 +82,17 @@ class UsercreateTemplate extends BaseTemplate { getMsg( 'createacct-helpusername' )->parse(); ?> - data['name'], 'text', array( + data['name'], 'text', array( 'class' => 'mw-input loginText', 'id' => 'wpName2', 'tabindex' => '1', 'size' => '20', 'required', - 'placeholder' => $this->getMsg( 'userlogin-yourname-ph' )->text(), - 'autofocus' - ) ); ?> + 'placeholder' => $this->getMsg( $this->data['loggedin'] ? + 'createacct-another-username-ph' : 'userlogin-yourname-ph' )->text(), + ) ); + ?>
data['createemail'] ) { ?> @@ -155,7 +162,8 @@ class UsercreateTemplate extends BaseTemplate { 'id' => 'wpEmail', 'tabindex' => '6', 'size' => '20', - 'placeholder' => $this->getMsg( 'createacct-email-ph' )->text() + 'placeholder' => $this->getMsg( $this->data['loggedin'] ? + 'createacct-another-email-ph' : 'createacct-email-ph' )->text() ) + ( $this->data['emailrequired'] ? array() : array( 'required' => '' ) ) ); ?> @@ -167,7 +175,7 @@ class UsercreateTemplate extends BaseTemplate { tabindex="7" value="text( 'realname' ); ?>" size='20' />
- msgWiki( 'prefs-help-realname' ); ?> + msgWiki( $this->data['loggedin'] ? 'createacct-another-realname-tip' : 'prefs-help-realname' ); ?>
- + getMsg( $this->data['loggedin'] ? + 'createacct-another-submit' : 'createacct-submit' ), + 'submit', + array( + 'class' => "mw-ui-button mw-ui-big mw-ui-block mw-ui-primary", + 'id' => 'wpCreateaccount', + 'tabindex' => $tabIndex++ + ) ); + ?>
haveData( 'uselang' ) ) { ?> haveData( 'token' ) ) { ?>