summaryrefslogtreecommitdiff
path: root/extensions/Spoilers/Spoilers.php
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/Spoilers/Spoilers.php')
-rw-r--r--extensions/Spoilers/Spoilers.php43
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";
+?>