forked from jthingelstad/foreground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
foreground.php
executable file
·94 lines (85 loc) · 3.2 KB
/
foreground.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
/**
* Foreground Skin
*
* @file
* @ingroup Skins
* @author Garrick Van Buren, Jamie Thingelstad, Tom Hutchison
* @license 2-clause BSD
*/
if ( function_exists( 'wfLoadSkin' ) ) {
wfLoadSkin( 'foreground' );
// Keep i18n globals so mergeMessageFileList.php doesn't break
$wgMessagesDirs['SkinForeground'] = __DIR__ . '/i18n';
/* wfWarn(
'Deprecated PHP entry point used for foreground skin. Please use wfLoadSkin instead, ' .
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
); */
return;
}
$wgExtensionCredits['skin'][] = array(
'path' => __FILE__,
'name' => 'Foreground',
'url' => 'http://foreground.thingelstad.com/',
'author' => array(
'Garrick Van Buren',
'Jamie Thingelstad',
'Tom Hutchison',
'...'
),
'version' => '2.0.0 (Albert)',
'descriptionmsg' => 'foreground-desc'
);
$wgValidSkinNames['foreground'] = 'Foreground';
$wgAutoloadClasses['SkinForeground'] = __DIR__ . '/Foreground.skin.php';
$wgAutoloadClasses['foregroundTemplate'] = __DIR__ . '/Foreground.skin.php';
$wgMessagesDirs['SkinForeground'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['SkinForeground'] = __DIR__ . '/Foreground.i18n.php';
$wgResourceModules['skins.foreground.styles'] = array(
'position' => 'top',
'styles' => array(
'foreground/assets/stylesheets/normalize.css',
'foreground/assets/stylesheets/font-awesome.css',
'foreground/assets/stylesheets/foundation.css',
'foreground/assets/stylesheets/foreground.css',
'foreground/assets/stylesheets/foreground-print.css'
),
'remoteBasePath' => &$GLOBALS['wgStylePath'],
'localBasePath' => &$GLOBALS['wgStyleDirectory']
);
$wgResourceModules['skins.foreground.modernizr'] = array(
'position' => 'top',
'scripts' => array(
'foreground/assets/scripts/vendor/modernizr.js'
),
'remoteBasePath' => &$GLOBALS['wgStylePath'],
'localBasePath' => &$GLOBALS['wgStyleDirectory']
);
$wgResourceModules['skins.foreground.js'] = array(
'position' => 'bottom',
'scripts' => array(
'foreground/assets/scripts/vendor/fastclick.js',
'foreground/assets/scripts/vendor/placeholder.js',
'foreground/assets/scripts/foundation/foundation.js',
'foreground/assets/scripts/foundation/foundation.topbar.js',
'foreground/assets/scripts/foundation/foundation.dropdown.js',
'foreground/assets/scripts/foundation/foundation.joyride.js',
'foreground/assets/scripts/foundation/foundation.accordion.js',
'foreground/assets/scripts/foundation/foundation.alert.js',
'foreground/assets/scripts/foundation/foundation.clearing.js',
'foreground/assets/scripts/foundation/foundation.equalizer.js',
'foreground/assets/scripts/foundation/foundation.interchange.js',
'foreground/assets/scripts/foundation/foundation.offcanvas.js',
'foreground/assets/scripts/foundation/foundation.orbit.js',
'foreground/assets/scripts/foundation/foundation.reveal.js',
'foreground/assets/scripts/foundation/foundation.tab.js',
'foreground/assets/scripts/foundation/foundation.tooltip.js',
'foreground/assets/scripts/foreground.js',
),
'dependencies' => array(
'jquery.cookie',
'skins.foreground.modernizr',
),
'remoteBasePath' => &$GLOBALS['wgStylePath'],
'localBasePath' => &$GLOBALS['wgStyleDirectory']
);