mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ImageMap
synced 2024-11-15 18:29:27 +00:00
c3c84f6a12
* replace text 'version' in ExtensionCredits with version based on 'LastChangedDate' for automatic version updating
21 lines
796 B
PHP
21 lines
796 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' => preg_replace('/^.* (\d\d\d\d-\d\d-\d\d) .*$/', '\1', '$LastChangedDate$'), #just the date of the last change
|
|
'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',
|
|
);
|
|
|
|
function wfSetupImageMap() {
|
|
global $wgParser;
|
|
$wgParser->setHook( 'imagemap', array( 'ImageMap', 'render' ) );
|
|
}
|