-
Notifications
You must be signed in to change notification settings - Fork 0
/
FreshMedia.php
38 lines (33 loc) · 1.37 KB
/
FreshMedia.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Fresh Media: a MediaWiki skin based on modern design ideas. It aims to provide
* a clean experience where blocks are separated by whitespace rather than borders.
*
* @file
* @ingroup Skins
* @author Elmer de Looff ([email protected])
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2
*/
if( !defined( 'MEDIAWIKI' ) ) die( "This is an extension to the MediaWiki package and cannot be run standalone." );
$wgExtensionCredits['skin'][] = array(
'path' => __FILE__,
'name' => 'FreshMedia',
'version' => '0.1',
'url' => "https://github.com/frack/FreshMedia-MW",
'author' => array('Elmer de Looff'),
'descriptionmsg' => 'freshmedia-desc',
);
$skinPath = dirname(__FILE__);
$skinName = basename($skinPath);
$wgValidSkinNames['freshmedia'] = 'FreshMedia';
$wgAutoloadClasses['SkinFreshMedia'] = "{$skinPath}/FreshMedia.skin.php";
$wgExtensionMessagesFiles['FreshMedia'] = "{$skinPath}/FreshMedia.i18n.php";
$wgResourceModules['skins.freshmedia'] = array(
'styles' => array(
"{$skinName}/styles/monobook.css" => array( 'media' => 'screen' ),
"{$skinName}/styles/structure.css" => array( 'media' => 'screen' ),
"{$skinName}/styles/skin.css" => array( 'media' => 'screen' ),
),
'remoteBasePath' => &$GLOBALS['wgStylePath'],
'localBasePath' => &$GLOBALS['wgStyleDirectory'],
);