2011-10-17 14:56:08 +00:00
|
|
|
<?php
|
2014-06-17 21:37:56 +00:00
|
|
|
/**
|
|
|
|
* Tabber
|
|
|
|
*
|
2015-04-08 10:00:01 +00:00
|
|
|
* @author Eric Fortin, Alexia E. Smith, Kris Blair
|
2014-06-17 21:37:56 +00:00
|
|
|
* @license GPL
|
|
|
|
* @package Tabber
|
|
|
|
* @link https://www.mediawiki.org/wiki/Extension:Tabber
|
2015-04-08 10:00:01 +00:00
|
|
|
*/
|
2014-06-17 21:37:56 +00:00
|
|
|
|
2015-04-08 10:00:01 +00:00
|
|
|
/*****************************************/
|
|
|
|
/* Credits */
|
|
|
|
/*****************************************/
|
2014-06-17 21:37:56 +00:00
|
|
|
$credits = [
|
|
|
|
'path' => __FILE__,
|
|
|
|
'name' => 'Tabber',
|
2015-04-08 10:00:01 +00:00
|
|
|
'author' => ['Eric Fortin', 'Alexia E. Smith', 'Curse Inc. Wiki Platform Team', 'Kris Blair'],
|
2014-06-17 21:37:56 +00:00
|
|
|
'url' => 'https://www.mediawiki.org/wiki/Extension:Tabber',
|
|
|
|
'descriptionmsg' => 'tabber-desc',
|
2015-04-21 19:25:16 +00:00
|
|
|
'version' => '2.1'
|
2014-06-17 21:37:56 +00:00
|
|
|
];
|
|
|
|
$wgExtensionCredits['parserhook'][] = $credits;
|
|
|
|
|
2015-04-08 10:00:01 +00:00
|
|
|
/*****************************************/
|
|
|
|
/* Language Strings, Page Aliases, Hooks */
|
|
|
|
/*****************************************/
|
|
|
|
$extDir = __DIR__ . '/';
|
2014-06-17 21:37:56 +00:00
|
|
|
|
2015-04-08 10:00:01 +00:00
|
|
|
$wgMessagesDirs['Tabber'] = "{$extDir}/i18n";
|
|
|
|
$wgExtensionMessagesFiles['Tabber'] = "{$extDir}/Tabber.i18n.php";
|
2014-06-17 21:37:56 +00:00
|
|
|
|
2015-04-08 10:00:01 +00:00
|
|
|
$wgAutoloadClasses['TabberHooks'] = "{$extDir}/Tabber.hooks.php";
|
2014-06-17 21:37:56 +00:00
|
|
|
|
2015-04-08 10:00:01 +00:00
|
|
|
$wgHooks['ParserFirstCallInit'][] = 'TabberHooks::onParserFirstCallInit';
|
2014-06-17 21:37:56 +00:00
|
|
|
|
2015-04-08 10:00:01 +00:00
|
|
|
$wgResourceModules['ext.Tabber'] = [
|
2014-06-17 21:37:56 +00:00
|
|
|
'localBasePath' => __DIR__,
|
|
|
|
'remoteExtPath' => 'Tabber',
|
|
|
|
'styles' => ['css/tabber.css'],
|
|
|
|
'scripts' => ['js/tabber.js']
|
2015-04-08 10:00:01 +00:00
|
|
|
];
|