Page Menu
Home
Wolfplex
Search
Configure Global Search
Log In
Files
F408511
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
View Options
diff --git a/Campaign2013.class.php b/Campaign2013.class.php
new file mode 100644
index 0000000..5c86afd
--- /dev/null
+++ b/Campaign2013.class.php
@@ -0,0 +1,20 @@
+<?php
+/**
+ * Campaign 2013 extension - link to /2013
+ *
+ * @package MediaWiki
+ * @subpackage Extensions
+ * @author Dereckson
+ * @license GNU General Public Licence 2.0 or later
+ */
+
+class Campaign2013 {
+ static public function onBeforePageDisplay( OutputPage &$out, Skin &$skin ) {
+ // If your set of extension doesn't use jquery, please consider something like:
+ // $out->addHeadItem( 'jquery', '<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>' );
+
+ $out->addHeadItem( 'campaign2013-js', '<script src="//assets.wolfplex.org/campaign2013/campaign2013.js"></script>' );
+ $out->addHeadItem( 'campaign2013-css', '<link rel="stylesheet" href="//assets.wolfplex.org/campaign2013/campaign2013.css"></script>' );
+ return true;
+ }
+}
diff --git a/Campaign2013.i18n.php b/Campaign2013.i18n.php
new file mode 100644
index 0000000..b2f9b09
--- /dev/null
+++ b/Campaign2013.i18n.php
@@ -0,0 +1,19 @@
+<?php
+/**
+ * Internationalisation file for Campaign2013 extension.
+ *
+ * @file
+ * @ingroup Extensions
+ */
+
+$messages = array();
+
+$messages['en'] = [
+ 'campaign2013-desc' => 'Display the 2013 campaign banner.',
+];
+
+/** Message documentation (Message documentation)
+ */
+$messages['qqq'] = [
+ 'campaign2013-desc' => 'Extension description displayed on [[Special:Version]]',
+];
diff --git a/Campaign2013.php b/Campaign2013.php
new file mode 100755
index 0000000..9c620b3
--- /dev/null
+++ b/Campaign2013.php
@@ -0,0 +1,27 @@
+<?php
+/**
+ * Campaign 2013 extension - link to /2013
+ *
+ * @package MediaWiki
+ * @subpackage Extensions
+ * @author Dereckson
+ * @license GNU General Public Licence 2.0 or later
+ */
+
+if ( !defined( 'MEDIAWIKI' ) ) {
+ echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" );
+ die( 1 );
+}
+
+$wgExtensionCredits['other'][] = array(
+ 'path' => __FILE__,
+ 'name' => 'Campaign2013',
+ 'author' => 'Sébastien Santoro aka Dereckson',
+ 'descriptionmsg' => 'campaign2013-desc',
+);
+
+$dir = __DIR__ . '/';
+$wgExtensionMessagesFiles['Campaign2013'] = $dir . 'Campaign2013.i18n.php';
+$wgAutoloadClasses['Campaign2013'] = $dir . 'Campaign2013.class.php';
+
+$wgHooks['BeforePageDisplay'][] = 'Campaign2013::onBeforePageDisplay';
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Jun 9, 3:10 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
46403
Default Alt Text
(2 KB)
Attached To
rMWECXIII mediawiki-extensions-Campaign2013
Event Timeline
Log In to Comment