}
?>
<div id="userloginForm">
-<h2 class="createaccount-join"><?php $this->msg( 'createacct-join' ); ?></h2>
+<h2 class="createaccount-join">
+ <?php
+ $this->msg( $this->data['createAnother'] ?
+ 'createacct-another-join' : 'createacct-join' );
+ ?>
+</h2>
<form name="userlogin2" id="userlogin2" class="mw-ui-vform" method="post" action="<?php $this->text( 'action' ); ?>">
<section class="mw-form-header">
<?php $this->html( 'header' ); /* extensions such as ConfirmEdit add form HTML here */ ?>
<span class="mw-ui-flush-right"><?php echo $this->getMsg( 'createacct-helpusername' )->parse(); ?></span>
</label>
- <?php echo Html::input( 'wpName', $this->data['name'], 'text', array(
+ <?php
+ echo Html::input( 'wpName', $this->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['createAnother'] ?
+ 'createacct-another-username-ph' : 'userlogin-yourname-ph' )->text(),
+ ) );
+ ?>
</div>
<div>
<?php if ( $this->data['createemail'] ) { ?>
'id' => 'wpEmail',
'tabindex' => '6',
'size' => '20',
- 'placeholder' => $this->getMsg( 'createacct-email-ph' )->text()
+ 'placeholder' => $this->getMsg( $this->data['createAnother'] ?
+ 'createacct-another-email-ph' : 'createacct-email-ph' )->text()
) + ( $this->data['emailrequired'] ? array() : array( 'required' => '' ) ) );
?>
<?php } ?>
tabindex="7"
value="<?php $this->text( 'realname' ); ?>" size='20' />
<div class="prefsectiontip">
- <?php $this->msgWiki( 'prefs-help-realname' ); ?>
+ <?php $this->msgWiki( $this->data['createAnother'] ? 'createacct-another-realname-tip' : 'prefs-help-realname' ); ?>
</div>
</div>
<?php }
$tabIndex++;
?>
<div class="mw-submit">
- <input type='submit' class="mw-ui-button mw-ui-big mw-ui-block mw-ui-primary" name="wpCreateaccount" id="wpCreateaccount"
- tabindex="<?php echo $tabIndex++; ?>"
- value="<?php $this->msg( 'createacct-submit' ); ?>" />
+ <?php
+ echo Html::input( 'wpCreateaccount',
+ $this->getMsg( $this->data['createAnother'] ?
+ 'createacct-another-submit' : 'createacct-submit' ),
+ 'submit',
+ array(
+ 'class' => "mw-ui-button mw-ui-big mw-ui-block mw-ui-primary",
+ 'id' => 'wpCreateaccount',
+ 'tabindex' => $tabIndex++
+ ) );
+ ?>
</div>
<?php if ( $this->haveData( 'uselang' ) ) { ?><input type="hidden" name="uselang" value="<?php $this->text( 'uselang' ); ?>" /><?php } ?>
<?php if ( $this->haveData( 'token' ) ) { ?><input type="hidden" name="wpCreateaccountToken" value="<?php $this->text( 'token' ); ?>" /><?php } ?>