This repository has been archived by the owner on Aug 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
/
strapping.php
54 lines (48 loc) · 1.92 KB
/
strapping.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
<?php
/**
* Initialization file for the Strapping skin
*
* Strapping is a skin built on top of a modified Vector theme from
* MediaWiki and utilizes Bootstrap 2 for base layout,
* typography, and additional widgets.
*
* @file
* @ingroup Skins
* @author Garrett LeSage
*/
if( !defined( 'MEDIAWIKI' ) ) die( "This is an extension to the MediaWiki package and cannot be run standalone." );
$wgExtensionCredits['skin'][] = array(
'path' => __FILE__,
'name' => 'Strapping',
'url' => "https://github.com/OSAS/strapping-mediawiki",
'author' => 'Garrett LeSage',
'descriptionmsg' => 'strapping-desc',
);
$wgValidSkinNames['strapping'] = 'Strapping';
$wgAutoloadClasses['SkinStrapping'] = dirname(__FILE__).'/Strapping.skin.php';
$wgExtensionMessagesFiles['SkinStrapping'] = dirname(__FILE__).'/Strapping.i18n.php';
$wgResourceModules['skins.strapping'] = array(
'styles' => array(
'strapping/bootstrap/css/bootstrap.css' => array( 'media' => 'screen' ),
'strapping/bootstrap/awesome/css/font-awesome.css' => array( 'media' => 'screen' ),
'strapping/screen.css' => array( 'media' => 'screen' ),
'strapping/theme.css' => array( 'media' => 'screen' ),
),
'scripts' => array(
'strapping/bootstrap/js/bootstrap.js',
'strapping/strapping.js',
),
'remoteBasePath' => &$GLOBALS['wgStylePath'],
'localBasePath' => &$GLOBALS['wgStyleDirectory'],
);
if (file_exists('strapping/fonts.css')) {
$wgResourceModules['skins.strapping']['styles'][] = 'strapping/fonts.css';
}
# Default options to customize skin
$wgStrappingSkinLogoLocation = 'bodycontent';
$wgStrappingSkinLoginLocation = 'footer';
$wgStrappingSkinAnonNavbar = false;
$wgStrappingSkinUseStandardLayout = false;
$wgStrappingSkinDisplaySidebarNavigation = false;
# Show print/export in navbar by default
$wgStrappingSkinSidebarItemsInNavbar = array( 'coll-print_export' );