mediawiki-extensions-ImageMap/ImageMap.php
Siebrand Mazeland 51fe46fae7 * use wfLoadExtensionMessages for ImageMap
* Delay message loading
* add version in extension credits
* update Translate extension
2008-01-11 08:41:57 +00:00

20 lines
631 B
PHP

<?php
$dir = dirname(__FILE__) . '/';
$wgExtensionMessagesFiles['ImageMap'] = $dir . 'ImageMap.i18n.php';
$wgAutoloadClasses['ImageMap'] = $dir . 'ImageMap_body.php';
$wgExtensionFunctions[] = 'wfSetupImageMap';
$wgExtensionCredits['parserhook']['ImageMap'] = array(
'name' => 'ImageMap',
'version' => '2008-01-11',
'author' => 'Tim Starling',
'url' => 'http://www.mediawiki.org/wiki/Extension:ImageMap',
'description' => 'Allows client-side clickable image maps using <nowiki><imagemap></nowiki> tag.',
);
function wfSetupImageMap() {
global $wgParser;
$wgParser->setHook( 'imagemap', array( 'ImageMap', 'render' ) );
}