2011-10-17 14:56:08 +00:00
|
|
|
<?php
|
2014-06-17 21:37:56 +00:00
|
|
|
/**
|
|
|
|
* Tabber
|
|
|
|
* Tabber Main File
|
|
|
|
*
|
|
|
|
* @author Eric Fortin, Alexia E. Smith
|
|
|
|
* @license GPL
|
|
|
|
* @package Tabber
|
|
|
|
* @link https://www.mediawiki.org/wiki/Extension:Tabber
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
|
|
|
|
/******************************************/
|
|
|
|
/* Credits */
|
|
|
|
/******************************************/
|
|
|
|
$credits = [
|
|
|
|
'path' => __FILE__,
|
|
|
|
'name' => 'Tabber',
|
2015-03-11 20:29:55 +00:00
|
|
|
'author' => ['Eric Fortin', 'Alexia E. Smith', 'Curse Inc. Wiki Platform Team'],
|
2014-06-17 21:37:56 +00:00
|
|
|
'url' => 'https://www.mediawiki.org/wiki/Extension:Tabber',
|
|
|
|
'descriptionmsg' => 'tabber-desc',
|
|
|
|
'version' => '2.0'
|
|
|
|
];
|
|
|
|
$wgExtensionCredits['parserhook'][] = $credits;
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************/
|
|
|
|
/* Language Strings, Page Aliases, Hooks */
|
|
|
|
/******************************************/
|
|
|
|
$extDir = __DIR__.'/';
|
|
|
|
|
2014-06-17 21:42:20 +00:00
|
|
|
$wgMessagesDirs['Tabber'] = "{$extDir}/i18n";
|
2014-06-17 21:37:56 +00:00
|
|
|
$wgExtensionMessagesFiles['Tabber'] = "{$extDir}/Tabber.i18n.php";
|
|
|
|
|
|
|
|
$wgAutoloadClasses['TabberHooks'] = "{$extDir}/Tabber.hooks.php";
|
|
|
|
|
|
|
|
$wgHooks['ParserFirstCallInit'][] = 'TabberHooks::onParserFirstCallInit';
|
|
|
|
|
2014-07-23 21:42:05 +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-03-10 18:59:15 +00:00
|
|
|
];
|