2006-11-01 06:34:42 +00:00
|
|
|
<?php
|
|
|
|
|
2012-08-30 16:12:52 +00:00
|
|
|
$dir = __DIR__ . '/';
|
2008-01-11 08:41:57 +00:00
|
|
|
$wgExtensionMessagesFiles['ImageMap'] = $dir . 'ImageMap.i18n.php';
|
|
|
|
$wgAutoloadClasses['ImageMap'] = $dir . 'ImageMap_body.php';
|
2009-09-04 22:22:12 +00:00
|
|
|
$wgHooks['ParserFirstCallInit'][] = 'wfSetupImageMap';
|
2008-01-11 08:41:57 +00:00
|
|
|
|
2006-11-01 06:34:42 +00:00
|
|
|
$wgExtensionCredits['parserhook']['ImageMap'] = array(
|
2009-04-27 03:53:32 +00:00
|
|
|
'path' => __FILE__,
|
2008-02-08 08:00:31 +00:00
|
|
|
'name' => 'ImageMap',
|
|
|
|
'author' => 'Tim Starling',
|
2011-12-13 23:49:33 +00:00
|
|
|
'url' => 'https://www.mediawiki.org/wiki/Extension:ImageMap',
|
2008-02-08 08:00:31 +00:00
|
|
|
'descriptionmsg' => 'imagemap_desc',
|
2006-11-01 06:34:42 +00:00
|
|
|
);
|
|
|
|
|
2012-01-28 17:05:20 +00:00
|
|
|
/**
|
|
|
|
* @param $parser Parser
|
|
|
|
* @return bool
|
|
|
|
*/
|
2009-09-04 01:05:04 +00:00
|
|
|
function wfSetupImageMap( &$parser ) {
|
|
|
|
$parser->setHook( 'imagemap', array( 'ImageMap', 'render' ) );
|
2008-06-06 20:38:04 +00:00
|
|
|
return true;
|
2006-11-01 06:34:42 +00:00
|
|
|
}
|