Remove AjaxAddScript hook
[mediawiki.git] / skins / Vector / Vector.php
blobbe8719a89d3f29fe9b92aa520373e8fc9957f94d
1 <?php
2 /**
3 * Vector - Modern version of MonoBook with fresh look and many usability
4 * improvements.
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.
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.
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
21 * @file
22 * @ingroup Skins
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+',
35 // Register files
36 $wgAutoloadClasses['SkinVector'] = __DIR__ . '/SkinVector.php';
37 $wgAutoloadClasses['VectorTemplate'] = __DIR__ . '/VectorTemplate.php';
38 $wgMessagesDirs['Vector'] = __DIR__ . '/i18n';
40 // Register skin
41 $wgValidSkinNames['vector'] = 'Vector';
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)' ),
49 'remoteSkinPath' => 'Vector',
50 'localBasePath' => __DIR__,
52 $wgResourceModules['skins.vector.js'] = array(
53 'scripts' => array(
54 'collapsibleTabs.js',
55 'vector.js',
57 'position' => 'top',
58 'dependencies' => array(
59 'jquery.throttle-debounce',
60 'jquery.tabIndex',
62 'remoteSkinPath' => 'Vector',
63 'localBasePath' => __DIR__,