+// desktop (non-mobile) version
$wgResourceModules['ext.wrmap'] = array(
'scripts' => array('openlayers/OpenLayers.min.js', 'wrmap.js'),
// 'scripts' => array('openlayers/OpenLayers.js', 'wrmap.js'), // non-minimized version for debugging
);
+// mobile version # http://www.mediawiki.org/wiki/ResourceLoader/Writing_a_MobileFrontend_friendly_ResourceLoader_module
+$wgResourceModules['ext.wrmap.mobile'] = $wgResourceModules['ext.wrmap'] + array('targets' => 'mobile');
+
+
$wgAutoloadClasses['WrMap'] = dirname(__FILE__) . '/wrmap.body.php';
$wgAutoloadClasses['WrGMap'] = $wgAutoloadClasses['WrMap'];
$wgMessagesDirs['wrmap'] = __DIR__ . '/i18n';
$wgHooks['ParserFirstCallInit'][] = 'wrMapParserFirstCallInit';
+$wgHooks['EnableMobileModules'][] = 'WrMap::onEnableMobileModules';
function wrMapParserFirstCallInit($parser) {