Merge "Add at least one RTL language to the TestSites mock collection"
[lhc/web/wiklou.git] / skins / Vector / Vector.php
1 <?php
2 /**
3 * Vector - Modern version of MonoBook with fresh look and many usability
4 * improvements.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 * http://www.gnu.org/copyleft/gpl.html
20 *
21 * @file
22 * @ingroup Skins
23 */
24
25 $wgExtensionCredits['skin'][] = array(
26 'path' => __FILE__,
27 'name' => 'Vector',
28 'namemsg' => 'skinname-vector',
29 'descriptionmsg' => 'vector-skin-desc',
30 'url' => 'https://www.mediawiki.org/wiki/Skin:Vector',
31 'author' => array( 'Trevor Parscal', 'Roan Kattouw', '...' ),
32 'license-name' => 'GPLv2+',
33 );
34
35 // Register files
36 $wgAutoloadClasses['SkinVector'] = __DIR__ . '/SkinVector.php';
37 $wgAutoloadClasses['VectorTemplate'] = __DIR__ . '/VectorTemplate.php';
38 $wgMessagesDirs['Vector'] = __DIR__ . '/i18n';
39
40 // Register skin
41 $wgValidSkinNames['vector'] = 'Vector';
42
43 // Register modules
44 $wgResourceModules['skins.vector.styles'] = array(
45 'styles' => array(
46 'screen.less' => array( 'media' => 'screen' ),
47 'screen-hd.less' => array( 'media' => 'screen and (min-width: 982px)' ),
48 ),
49 'remoteSkinPath' => 'Vector',
50 'localBasePath' => __DIR__,
51 );
52 $wgResourceModules['skins.vector.js'] = array(
53 'scripts' => array(
54 'collapsibleTabs.js',
55 'vector.js',
56 ),
57 'position' => 'top',
58 'dependencies' => array(
59 'jquery.throttle-debounce',
60 'jquery.tabIndex',
61 ),
62 'remoteSkinPath' => 'Vector',
63 'localBasePath' => __DIR__,
64 );
65
66 // Apply module customizations
67 $wgResourceModuleSkinStyles['vector'] = array(
68 'jquery.tipsy' => 'skinStyles/jquery.tipsy.less',
69 'jquery.ui.core' => array(
70 'skinStyles/jquery.ui/jquery.ui.core.css',
71 'skinStyles/jquery.ui/jquery.ui.theme.css',
72 ),
73 'jquery.ui.accordion' => 'skinStyles/jquery.ui/jquery.ui.accordion.css',
74 'jquery.ui.autocomplete' => 'skinStyles/jquery.ui/jquery.ui.autocomplete.css',
75 'jquery.ui.button' => 'skinStyles/jquery.ui/jquery.ui.button.css',
76 'jquery.ui.datepicker' => 'skinStyles/jquery.ui/jquery.ui.datepicker.css',
77 'jquery.ui.dialog' => 'skinStyles/jquery.ui/jquery.ui.dialog.css',
78 'jquery.ui.progressbar' => 'skinStyles/jquery.ui/jquery.ui.progressbar.css',
79 'jquery.ui.resizable' => 'skinStyles/jquery.ui/jquery.ui.resizable.css',
80 'jquery.ui.selectable' => 'skinStyles/jquery.ui/jquery.ui.selectable.css',
81 'jquery.ui.slider' => 'skinStyles/jquery.ui/jquery.ui.slider.css',
82 'jquery.ui.tabs' => 'skinStyles/jquery.ui/jquery.ui.tabs.css',
83 'mediawiki.notification' => 'skinStyles/mediawiki.notification.less',
84 'mediawiki.special' => 'skinStyles/mediawiki.special.less',
85 'mediawiki.special.preferences' => 'skinStyles/mediawiki.special.preferences.less',
86 'remoteSkinPath' => 'Vector',
87 'localBasePath' => __DIR__,
88 );