-
- <?php if ( $this->haveData( 'createOrLoginHref' ) ) { ?>
- <?php if ( $this->data['loggedin'] ) { ?>
- <div id="mw-createaccount-another">
- <a href="<?php $this->text( 'createOrLoginHref' ); ?>" id="mw-createaccount-join" tabindex="7" class="mw-ui-button"><?php $this->msg( 'userlogin-createanother' ); ?></a>
+ <?php
+ if ( $this->haveData( 'createOrLoginHref' ) ) {
+ if ( $this->data['useemail'] && $this->data['canreset'] && $this->data['resetlink'] === true ) {
+ echo Html::openElement( 'div',
+ array(
+ 'class' => 'mw-ui-vform-field mw-form-related-link-container',
+ )
+ ) .
+ Linker::link(
+ SpecialPage::getTitleFor( 'PasswordReset' ),
+ $this->getMsg( 'userlogin-resetpassword-link' )->parse()
+ ) .
+ Html::closeElement( 'div' );
+ }
+ if ( $this->data['loggedin'] ) { ?>
+ <div id="mw-createaccount-another" class="mw-form-related-link-container mw-ui-vform-field">
+ <a href="<?php $this->text( 'createOrLoginHref' ); ?>" id="mw-createaccount-join" tabindex="7"><?php $this->msg( 'userlogin-createanother' ); ?></a>