Merge "Use quickUserCan instead of userCan for searches"
[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-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 );