diff options
author | Wushin <pasekei@gmail.com> | 2015-02-16 00:45:23 -0600 |
---|---|---|
committer | Wushin <pasekei@gmail.com> | 2015-02-16 00:45:23 -0600 |
commit | 94e14807d6c5a957d58ee46511454f53532bb1d2 (patch) | |
tree | fd96033a577e0aedfc0b4f4ac0910ede82f264d1 /extensions/Spoilers/Spoilers.php | |
parent | 03e3336b8915be1e0132c524bf71b7a2411a15c9 (diff) | |
parent | ce884ff98ca11638d2658c8dff6ad00f0efd411f (diff) | |
download | website-94e14807d6c5a957d58ee46511454f53532bb1d2.tar.gz website-94e14807d6c5a957d58ee46511454f53532bb1d2.tar.bz2 website-94e14807d6c5a957d58ee46511454f53532bb1d2.tar.xz website-94e14807d6c5a957d58ee46511454f53532bb1d2.zip |
Merge pull request #11 from wushin/spoilers
Spoilers
Diffstat (limited to 'extensions/Spoilers/Spoilers.php')
-rw-r--r-- | extensions/Spoilers/Spoilers.php | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/extensions/Spoilers/Spoilers.php b/extensions/Spoilers/Spoilers.php new file mode 100644 index 0000000..247cfe4 --- /dev/null +++ b/extensions/Spoilers/Spoilers.php @@ -0,0 +1,43 @@ +<?php +/** + * Spoilers + * Spoilers Mediawiki Settings + * + * @author: Telshin + * @license: LGPLv3 http://opensource.org/licenses/lgpl-3.0.html + * @package: Spoilers + * @link: http://www.mediawiki.org/wiki/Extension:Spoilers + */ + +/******************************************/ +/* Credits */ +/******************************************/ +$wgExtensionCredits['specialpage'][] = array ( + 'path' => __FILE__, + 'name' => 'Spoilers', + 'author' => 'Tim Aldridge', + 'descriptionmsg' => 'spoilers_description', + 'version' => '1.1', + 'license-name' => 'LGPLv3' + ); + +/******************************************/ +/* Language Strings, Page Aliases, Hooks */ +/******************************************/ +$extDir = dirname( __FILE__ ); + +$wgMessagesDirs['Spoilers'] = __DIR__ . '/i18n'; +$wgExtensionMessagesFiles['Spoilers'] = $extDir . "/Spoilers.i18n.php"; + +$wgAutoloadClasses['Spoilers'] = $extDir . "/Spoilers.hooks.php"; + +$wgResourceModules['ext.spoilers'] = array ( + 'styles' => array( 'css/spoilers.css' ), + 'scripts' => array( 'js/spoilers.js' ), + 'localBasePath' => __DIR__, + 'remoteExtPath' => 'Spoilers', + 'dependencies' => array() + ); + +$wgHooks['ParserFirstCallInit'][] = "Spoilers::onParserFirstCallInit"; +?> |