Topic on Extension talk:MobileFrontend

Summary by Jdlrobson

You'll need to edit the minerva.mustache file to add script tags to the page in new versions of MobileFrontend

Silkwood (talkcontribs)

In a previous version of this extension (namely 1.24c) I was able to load my plugin in this way:

----

protected function renderContentWrapper( $data ) {

$this->renderHistoryLinkTop( $data );

?>

<script src="/w/JavaScript/'''abcjs_plugin_2.1-min.js'''" type="text/javascript"></script>

<script type="text/javascript">

jQuery.noConflict();

ABCJS.plugin["hide_abc"] = true;

ABCJS.plugin["show_midi"] = false;

ABCJS.plugin["render_before"] = true;

</script>

<script>

if ( window.mw && mw.mobileFrontend ) { mw.mobileFrontend.emit( 'header-loaded' ); }

</script>

<?php

$this->renderPreContent( $data );

$this->renderContent( $data );

}

----

I would like to do the same thing in this 1.27 version.

Where to start?

Jdlrobson (talkcontribs)

You'll need to edit the minerva.mustache file to make these sorts of customisations now.