-
Notifications
You must be signed in to change notification settings - Fork 1
/
pcgwnvector.php
executable file
·45 lines (36 loc) · 1.09 KB
/
pcgwnvector.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
<?php
/*
* @file
* @ingroup Skins
*/
if ( !defined( 'MEDIAWIKI' ) ) {
die( -1 );
}
$wgExtensionCredits['skin'][] = array (
'path' => __FILE__,
'name' => 'PCGamingWiki Network Vector',
'descriptionmsg' => 'pcgwnvector-desc',
'author' => array( 'Stanisław Gackowski' ),
'url' => "https://github.com/PCGamingWiki/pcgwnvector",
'license-name' => 'GPL-2.0+',
);
$wgValidSkinNames['pcgwnvector'] = 'PCGWNVector';
$wgHooks['GetPreferences'][] = 'wfPrefHook';
function wfPrefHook( $user, &$preferences ) {
$preferences['pcgwnvector-googleads'] = array(
'type' => 'toggle',
'label-message' => 'tog-googleads',
'section' => 'rendering/skin',
);
return true;
}
$wgDefaultUserOptions['pcgwnvector-googleads'] = 0;
$wgAutoloadClasses['SkinPCGWNVector'] = dirname(__FILE__).'/PCGWNVector.skin.php';
$wgMessagesDirs['PCGWNVector'] = __DIR__ . '/i18n';
$wgResourceModules['skins.pcgwnvector'] = array(
'styles' => array(
'pcgwnvector/css/screen.css' => array( 'media' => 'screen' ),
),
'remoteBasePath' => &$GLOBALS['wgStylePath'],
'localBasePath' => &$GLOBALS['wgStyleDirectory'],
);