aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--SkinTyrian.php8
-rw-r--r--Tyrian.php3
-rw-r--r--TyrianTemplate.php8
3 files changed, 14 insertions, 5 deletions
diff --git a/SkinTyrian.php b/SkinTyrian.php
index ab5e934..8833da2 100644
--- a/SkinTyrian.php
+++ b/SkinTyrian.php
@@ -3,7 +3,7 @@
* Tyrian -- the new look of gentoo.org
* MediaWiki implementation based on MonoBook nouveau.
*
- * Copyright (C) 2014-2015 Alex Legler <a3li@gentoo.org>
+ * Copyright (C) 2014-2016 Alex Legler <a3li@gentoo.org>
*/
/**
@@ -15,9 +15,13 @@ class SkinTyrian extends SkinTemplate {
public $stylename = 'Tyrian';
public $template = 'TyrianTemplate';
+ private $output;
+
const CDN_URL = 'https://1b9a50f4f9de4348cd9f-e703bc50ba0aa66772a874f8c7698be7.ssl.cf5.rackcdn.com/';
function setupSkinUserCss(OutputPage $out) {
+ $this->output = $out;
+
parent::setupSkinUserCss($out);
$out->addStyle(SkinTyrian::CDN_URL . 'bootstrap.min.css');
@@ -29,4 +33,4 @@ class SkinTyrian extends SkinTemplate {
'skins.tyrian.styles'
));
}
-} \ No newline at end of file
+}
diff --git a/Tyrian.php b/Tyrian.php
index 4ce80e3..e800bfe 100644
--- a/Tyrian.php
+++ b/Tyrian.php
@@ -3,7 +3,7 @@
* Tyrian -- the new look of gentoo.org
* MediaWiki implementation based on MonoBook nouveau.
*
- * Copyright (C) 2014-2015 Alex Legler <a3li@gentoo.org>
+ * Copyright (C) 2014-2016 Alex Legler <a3li@gentoo.org>
*/
$wgExtensionCredits['skin'][] = array(
@@ -26,6 +26,7 @@ $wgValidSkinNames['tyrian'] = 'Tyrian';
// Register modules
$wgResourceModules['skins.tyrian.styles'] = array(
+ 'position' => 'top',
'styles' => array(
'main.css' => array('media' => 'screen'),
),
diff --git a/TyrianTemplate.php b/TyrianTemplate.php
index 20f7b88..d35ddcf 100644
--- a/TyrianTemplate.php
+++ b/TyrianTemplate.php
@@ -3,7 +3,7 @@
* Tyrian -- the new look of gentoo.org
* MediaWiki implementation based on MonoBook nouveau.
*
- * Copyright (C) 2014-2015 Alex Legler <a3li@gentoo.org>
+ * Copyright (C) 2014-2016 Alex Legler <a3li@gentoo.org>
*/
class TyrianTemplate extends BaseTemplate {
function execute() {
@@ -62,7 +62,11 @@ class TyrianTemplate extends BaseTemplate {
<?php $this->footer(); ?>
- <script src="https://1b9a50f4f9de4348cd9f-e703bc50ba0aa66772a874f8c7698be7.ssl.cf5.rackcdn.com/bootstrap.min.js"></script>
+ <script>
+ window.RLQ = window.RLQ || []; window.RLQ.push( function () {
+ $.getScript("https://1b9a50f4f9de4348cd9f-e703bc50ba0aa66772a874f8c7698be7.ssl.cf5.rackcdn.com/bootstrap.min.js");
+ } );
+ </script>
<?php
$this->printTrail();
echo Html::closeElement( 'body' );