Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Verified Commit 6dd72fc8 authored by Carl Schwan's avatar Carl Schwan 🚴🏻

Initial commit

parents
<?php
/**
* Neverland - Modern version of MonoBook with fresh look and many usability
* improvements.
*
* @todo document
* @file
* @ingroup Skins
*/
<?php
if ( function_exists( 'wfLoadSkin' ) ) {
wfLoadSkin( 'Aether' );
/* wfWarn(
'Deprecated PHP entry point used for Vector skin. Please use wfLoadSkin instead, ' .
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
); */
return true;
} else {
die( 'This version of the Neverland skin requires MediaWiki 1.25+' );
}
This diff is collapsed.
<?php
/**
* Neverland - Modern version of MonoBook with fresh look and many usability
* improvements.
*
* @todo document
* @file
* @ingroup Skins
*/
/**
* SkinTemplate class for Neverland skin
* @ingroup Skins
*/
class SkinAether extends SkinTemplate {
public $skinname = 'aether';
public $stylename = 'Aether';
public $template = 'AetherTemplate';
private $neverlandConfig;
public function __construct() {
$this->aetherConfig = ConfigFactory::getDefaultInstance()->makeConfig( 'aether' );
}
/**
* Initializes output page and sets up skin-specific parameters
* @param $out OutputPage object to initialize
*/
public function initPage( OutputPage $out ) {
parent::initPage( $out );
// Append CSS which includes IE only behavior fixes for hover support -
// this is better than including this in a CSS fille since it doesn't
// wait for the CSS file to load before fetching the HTC file.
$min = $this->getRequest()->getFuzzyBool( 'debug' ) ? '' : '.min';
$out->addModules( array('skins.aether') );
$out->addMeta( 'viewport', 'width=device-width, initial-scale=1, shrink-to-fit=no' );
}
/**
* Load skin and user CSS files in the correct order
* @param $out OutputPage object
*/
function setupSkinUserCss( OutputPage $out ){
$out->addStyle( 'https://cdn.kde.org/aether/css/bootstrap.min.css', 'screen' );
$out->addStyle( $this->stylename . '/resources/main.css', 'screen' );
}
/**
* Override to pass our Config instance to it
*/
public function setupTemplate( $classname, $repository = false, $cache_dir = false ) {
return new $classname( $this->aetherConfig );
}
}
This diff is collapsed.
This diff is collapsed.
{
"name": "Aether",
"author": [
"Ingo Malchow",
"Ken Vermette",
"Carl Schwan"
],
"url": "",
"descriptionmsg": "Aether theme for MediaWiki",
"namemsg": "Aether",
"license-name": "GPL-2.0+",
"type": "skin",
"ConfigRegistry": {
"aether": "GlobalVarConfig::newInstance"
},
"ValidSkinNames": {
"aether": "Aether"
},
"MessagesDirs": {
"Aether": [
"i18n"
]
},
"AutoloadClasses": {
"SkinAether": "SkinAether.php",
"AetherTemplate": "AetherTemplate.php"
},
"config": {
"AetherUseSimpleSearch": true,
"AetherUseIconWatch": true,
"AetherResponsive": false
},
"manifest_version": 1
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment