Merge "Kill $wgEnableNewpagesUserFilter"
[lhc/web/wiklou.git] / skins / MonoBook / MonoBook.php
1 <?php
2 /**
3 * MonoBook nouveau.
4 *
5 * Translated from gwicke's previous TAL template version to remove
6 * dependency on PHPTAL.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 * http://www.gnu.org/copyleft/gpl.html
22 *
23 * @file
24 * @ingroup Skins
25 */
26
27 $wgExtensionCredits['skin'][] = array(
28 'path' => __FILE__,
29 'name' => 'MonoBook',
30 'url' => 'https://www.mediawiki.org/wiki/Skin:MonoBook',
31 );
32
33 // Register files
34 $wgAutoloadClasses['SkinMonoBook'] = __DIR__ . '/SkinMonoBook.php';
35 $wgAutoloadClasses['MonoBookTemplate'] = __DIR__ . '/MonoBookTemplate.php';
36 $wgMessagesDirs['MonoBook'] = __DIR__ . '/i18n';
37
38 // Register skin
39 $wgValidSkinNames['monobook'] = 'MonoBook';
40
41 // Register modules
42 $wgResourceModules['skins.monobook.styles'] = array(
43 'styles' => array(
44 'main.css' => array( 'media' => 'screen' ),
45 ),
46 'remoteSkinPath' => 'MonoBook',
47 'localBasePath' => __DIR__,
48 );