mediawiki-extensions-ImageMap/ImageMap.php
Siebrand Mazeland c3c84f6a12 * add svn:keywords 'LastChangedDate'
* replace text 'version' in ExtensionCredits with version based on 'LastChangedDate' for automatic version updating
2008-02-27 14:13:10 +00:00

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' ) );
}