Florianschmidtwelzow has uploaded a new change for review. https://gerrit.wikimedia.org/r/223349
Change subject: Allow extensions to add a banner to UserLogin and CreateAccount special pages ...................................................................... Allow extensions to add a banner to UserLogin and CreateAccount special pages Some extensions, e.g. MobileFrontend, customize the UserLogin and UserCreate special pages. This change adds the possibility to add some HTML after the warning and/or error messages are printed to the output. This will be used in MobileFrontend to get rid of the own userlogin template. Bug: T87261 Change-Id: Ia81f7c52f08e8dcc73ac751432560c4077d4bd39 --- M includes/templates/Usercreate.php M includes/templates/Userlogin.php 2 files changed, 11 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/49/223349/1 diff --git a/includes/templates/Usercreate.php b/includes/templates/Usercreate.php index f09b6bb..4fabb20 100644 --- a/includes/templates/Usercreate.php +++ b/includes/templates/Usercreate.php @@ -73,6 +73,12 @@ <?php } ?> </div> + <?php if ( $this->data['bannerhtml'] ) { ?> + <section class="mw-form-bannerhtml"> + <?php $this->html( 'bannerhtml' ); /* extensions such as MobileFrontend add html here */ ?> + </section> + <?php } ?> + <div class="mw-ui-vform-field"> <label for='wpName2'> <?php $this->msg( 'userlogin-yourname' ); ?> diff --git a/includes/templates/Userlogin.php b/includes/templates/Userlogin.php index 345bb71..24695cc 100644 --- a/includes/templates/Userlogin.php +++ b/includes/templates/Userlogin.php @@ -56,6 +56,11 @@ </div> <?php } ?> + <?php if ( $this->data['bannerhtml'] ) { ?> + <section class="mw-form-bannerhtml"> + <?php $this->html( 'bannerhtml' ); /* extensions such as MobileFrontend add html here */ ?> + </section> + <?php } ?> <div class="mw-ui-vform-field"> <label for='wpName1'> <?php -- To view, visit https://gerrit.wikimedia.org/r/223349 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia81f7c52f08e8dcc73ac751432560c4077d4bd39 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.wel...@t-online.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits