2006-11-01 06:34:42 +00:00
|
|
|
<?php
|
2013-11-26 19:35:51 +00:00
|
|
|
/**
|
|
|
|
* ImageMap extension - Allows clickable HTML image maps.
|
|
|
|
*
|
|
|
|
* @link https://www.mediawiki.org/wiki/Extension:ImageMap Documentation
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @ingroup Extensions
|
|
|
|
* @package MediaWiki
|
|
|
|
* @author Tim Starling
|
|
|
|
* @copyright (C) 2007 Tim Starling
|
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
|
|
|
|
*/
|
|
|
|
|
|
|
|
if ( !defined( 'MEDIAWIKI' ) ) {
|
|
|
|
die( 'This file is a MediaWiki extension, it is not a valid entry point' );
|
|
|
|
}
|
2006-11-01 06:34:42 +00:00
|
|
|
|
2014-06-24 20:56:26 +00:00
|
|
|
//self executing anonymous function to prevent global scope assumptions
|
|
|
|
call_user_func( function() {
|
|
|
|
$dir = __DIR__ . '/';
|
|
|
|
$GLOBALS['wgMessagesDirs']['ImageMap'] = __DIR__ . '/i18n';
|
|
|
|
$GLOBALS['wgExtensionMessagesFiles']['ImageMap'] = $dir . 'ImageMap.i18n.php';
|
|
|
|
$GLOBALS['wgAutoloadClasses']['ImageMap'] = $dir . 'ImageMap_body.php';
|
2015-05-03 06:29:25 +00:00
|
|
|
$GLOBALS['wgHooks']['ParserFirstCallInit'][] = 'ImageMap::onParserFirstCallInit';
|
2008-01-11 08:41:57 +00:00
|
|
|
|
2014-06-24 20:56:26 +00:00
|
|
|
$GLOBALS['wgExtensionCredits']['parserhook']['ImageMap'] = array(
|
|
|
|
'path' => __FILE__,
|
|
|
|
'name' => 'ImageMap',
|
|
|
|
'author' => 'Tim Starling',
|
|
|
|
'url' => 'https://www.mediawiki.org/wiki/Extension:ImageMap',
|
|
|
|
'descriptionmsg' => 'imagemap_desc',
|
|
|
|
);
|
2006-11-01 06:34:42 +00:00
|
|
|
|
2014-06-24 20:56:26 +00:00
|
|
|
$GLOBALS['wgParserTestFiles'][] = $dir . 'imageMapParserTests.txt';
|
|
|
|
} );
|