/
Custard.php
48 lines (43 loc) · 1.41 KB
/
Custard.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
39
40
41
42
43
44
45
46
47
48
<?php
/**
* Custard skin
*
* @file
* @ingroup Skins
* @author Christopher Lazzaro <maestro35@outlook.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
* @version 1.0
*/
if ( !defined( 'MEDIAWIKI' ) ) {
die( -1 );
}
// Skin credits that will show up on Special:Version
$wgExtensionCredits['skin'][] = array(
'path' => __FILE__,
'name' => 'Custard',
'version' => '1.0',
'author' => 'Christopher Lazzaro',
'description' => 'Custard skin', // @todo Better description
'url' => '//www.mediawiki.org/wiki/Skin:Custard',
);
$wgValidSkinNames['custard'] = 'Custard';
$wgAutoloadClasses['SkinCustard'] = __DIR__ . '/custard/Custard.skin.php';
$wgExtensionMessagesFiles['Custard'] = __DIR__ . '/custard/Custard.i18n.php';
$wgResourceModules['skins.custard'] = array(
'styles' => array(
'skins/Custard/custard/CSS/custard.css' => array( 'media' => 'screen' ),
),
'position' => 'top'
);
$wgResourceModules['skins.custard.js'] = array(
'scripts' => array(
'skins/Custard/custard/JS/funcToggle.js',
'skins/Custard/custard/JS/TweenLite.min.js',
//'skins/Custard/custard/JS/CSSPlugin.min.js', - do not need yet, saving pageload time for now
//'skins/Custard/custard/JS/ScrollToPlugin.min.js', - " "
//'skins/Custard/custard/JS/EasePack.min.js', - " "
//'skins/Custard/custard/JS/AttrPlugin.min.js', - " "
'skins/Custard/custard/JS/custard.js',
),
'position' => 'top'
);