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';
|
2008-06-06 20:38:04 +00:00
|
|
|
if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) {
|
|
|
|
$wgHooks['ParserFirstCallInit'][] = 'wfSetupImageMap';
|
|
|
|
} else {
|
|
|
|
$wgExtensionFunctions[] = 'wfSetupImageMap';
|
|
|
|
}
|
2008-01-11 08:41:57 +00:00
|
|
|
|
2006-11-01 06:34:42 +00:00
|
|
|
$wgExtensionCredits['parserhook']['ImageMap'] = array(
|
2008-02-08 08:00:31 +00:00
|
|
|
'name' => 'ImageMap',
|
2008-05-06 11:59:58 +00:00
|
|
|
'svn-date' => '$LastChangedDate$',
|
|
|
|
'svn-revision' => '$LastChangedRevision$',
|
2008-02-08 08:00:31 +00:00
|
|
|
'author' => 'Tim Starling',
|
|
|
|
'url' => 'http://www.mediawiki.org/wiki/Extension:ImageMap',
|
|
|
|
'description' => 'Allows client-side clickable image maps using <nowiki><imagemap></nowiki> tag.',
|
|
|
|
'descriptionmsg' => 'imagemap_desc',
|
2006-11-01 06:34:42 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
function wfSetupImageMap() {
|
|
|
|
global $wgParser;
|
|
|
|
$wgParser->setHook( 'imagemap', array( 'ImageMap', 'render' ) );
|
2008-06-06 20:38:04 +00:00
|
|
|
return true;
|
2006-11-01 06:34:42 +00:00
|
|
|
}
|