Merge "Removed deprecated WebRequest::escapeAppendQuery()"
[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 'url' => 'https://www.mediawiki.org/wiki/Skin:Vector',
29 );
30
31 // Register files
32 $wgAutoloadClasses['SkinVector'] = __DIR__ . '/SkinVector.php';
33 $wgAutoloadClasses['VectorTemplate'] = __DIR__ . '/VectorTemplate.php';
34 $wgMessagesDirs['Vector'] = __DIR__ . '/i18n';
35
36 // Register skin
37 $wgValidSkinNames['vector'] = 'Vector';
38
39 // Register modules
40 $wgResourceModules['skins.vector.styles'] = array(
41 'styles' => array(
42 'screen.less' => array( 'media' => 'screen' ),
43 'screen-hd.less' => array( 'media' => 'screen and (min-width: 982px)' ),
44 ),
45 'remoteSkinPath' => 'Vector',
46 'localBasePath' => __DIR__,
47 );
48 $wgResourceModules['skins.vector.js'] = array(
49 'scripts' => array(
50 'collapsibleTabs.js',
51 'vector.js',
52 ),
53 'position' => 'top',
54 'dependencies' => array(
55 'jquery.throttle-debounce',
56 'jquery.tabIndex',
57 ),
58 'remoteSkinPath' => 'Vector',
59 'localBasePath' => __DIR__,
60 );