2006-11-01 06:34:42 +00:00
|
|
|
<?php
|
|
|
|
|
2008-01-11 08:41:57 +00:00
|
|
|
$dir = dirname(__FILE__) . '/';
|
|
|
|
$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',
|
|
|
|
'url' => 'http://www.mediawiki.org/wiki/Extension:ImageMap',
|
|
|
|
'descriptionmsg' => 'imagemap_desc',
|
2006-11-01 06:34:42 +00:00
|
|
|
);
|
|
|
|
|
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
|
|
|
}
|