On Fri, Jul 29, 2016 at 2:03 PM, Adam Baso <ab...@wikimedia.org> wrote: > Karsten, > > Thank you for the message. > > The MobileFrontend extension doesn't support footer customization, except > through other extensions (in this case the ContactPage extension) using the > "SkinMinervaOutputPageBeforeExec" hook (history). The ContactPage extension > would need to be modified to implement this hook in order to get it working > alongside MobileFrontend for the mobile web presentation.
I think this can be done similarly to the instructions given on Extension:ContactPage that implement a SkinTemplateOutputPageBeforeExec handler in LocalSettings.php [0]. To change both the desktop site skin and the mobile site skin you will need to install hook handlers for both SkinTemplateOutputPageBeforeExec and SkinMinervaOutputPageBeforeExec. Looking at the source, it seems that MobileSiteOutputPageBeforeExec [1] may actually be a better hook to use. It has the same signature as SkinTemplateOutputPageBeforeExec, is not marked as deprecated in the code, and was created in order to make modifying footer links possible [2]. It would be a nice thing for someone to document this hook on mediawiki.org. It seems that there are several hooks for MobileFrontend that are currently undocumented [3]. [0]: https://www.mediawiki.org/wiki/Extension:ContactPage#Further_customization [1]: https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/blob/235fbcf/includes/MobileFrontend.skin.hooks.php#L241 [2]: https://phabricator.wikimedia.org/T68350 [3]: https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/search?utf8=%E2%9C%93&q=%22hooks%3A%3Arun%22&type=Code -- Bryan Davis Wikimedia Foundation <bd...@wikimedia.org> [[m:User:BDavis_(WMF)]] Sr Software Engineer Boise, ID USA irc: bd808 v:415.839.6885 x6855 _______________________________________________ Mobile-l mailing list Mobile-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mobile-l