* Shows icons for all sledruns. * lat, lon and zoom are optional. * * * * * * * * 47.11 N 12.53 E * * * * 47.11 N 12.53 E * * * * 47.11 N 12.53 E * * * * 47.11 12.53 * 19.33 12.12 * * * * 23.12 12.12 * 12.12 12.12 * * * * 12.23 32.12 * 12.22 12.22 * * * * 23.23 23.12 * 12.12 12.12 * * * * 23.23 23.12 * 12.12 12.12 * * * * 23.23 23.12 * * * * lat, lon and zoom are optional. */ $wgExtensionCredits['parserhook'][] = array( 'name' => 'Winterrodeln Map', 'version' => '3.0.0', 'author' =>'Philipp Spitzer', 'url' => 'http://www.winterrodeln.org/trac/wiki/WrMap', 'description' => 'This extension creates a map using OpenLayers to show sledrun details and sledrun overviews.' ); $wgResourceModules['ext.wrmap'] = array( 'scripts' => array('openlayers/OpenLayers.js', 'wrmap.js'), 'styles' => array('openlayers/theme/default/style.css', 'openlayers/theme/default/google.css'), // When your module is loaded, these messages will be available through mw.msg() //'messages' => array( 'myextension-hello-world', 'myextension-goodbye-world' ), // If your scripts need code from other modules, list their identifiers as dependencies // and ResourceLoader will make sure they're loaded before you. // You don't need to manually list 'mediawiki' or 'jquery', which are always loaded. //'dependencies' => array( 'jquery.ui.datepicker' ), // You need to declare the base path of the file paths in 'scripts' and 'styles' 'localBasePath' => dirname( __FILE__ ), // ... and the base from the browser as well. For extensions this is made easy, // you can use the 'remoteExtPath' property to declare it relative to where the wiki // has $wgExtensionAssetsPath configured: 'remoteExtPath' => 'wrmap', 'position' => 'top' ); $wgAutoloadClasses['WrMap'] = dirname(__FILE__) . '/wrmap.body.php'; $wgHooks['ParserFirstCallInit'][] = 'wrMapParserFirstCallInit'; function wrMapParserFirstCallInit($parser) { $parser->setHook('wrgmap', 'WrMap::render'); $parser->setHook('wrmap', 'WrMap::render'); return true; } ?>