2006-11-01 06:34:42 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$wgExtensionFunctions[] = 'wfSetupImageMap';
|
|
|
|
$wgAutoloadClasses['ImageMap'] = dirname(__FILE__).'/ImageMap_body.php';
|
|
|
|
$wgExtensionCredits['parserhook']['ImageMap'] = array(
|
|
|
|
'name' => 'ImageMap',
|
|
|
|
'author' => 'Tim Starling',
|
2007-01-11 05:36:48 +00:00
|
|
|
'url' => 'http://www.mediawiki.org/wiki/Extension:ImageMap',
|
2007-12-16 18:38:50 +00:00
|
|
|
'description' => 'Allows client-side clickable image maps using <nowiki><imagemap></nowiki> tag.',
|
2006-11-01 06:34:42 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
function wfSetupImageMap() {
|
|
|
|
global $wgParser;
|
|
|
|
$wgParser->setHook( 'imagemap', array( 'ImageMap', 'render' ) );
|
|
|
|
}
|
2007-12-16 18:38:50 +00:00
|
|
|
|
|
|
|
|