Naiad MediaWiki skin from the Blender wiki
[NaiadSkin.git] / Naiad.php
blobd62753e6902f31da8bb20e73623e254778d38a31
1 <?php
2 /*
3 * Copyright (c) 2011-2012 Francesco Siddi (fsiddi.com), Luca Bonavita (mindrones.com)
4 *
5 * This file is part of Naiad Skin for Mediawiki:
6 * http://wiki.blender.org/index.php/Meta:Skins/Naiad/Mediawiki
7 *
8 * Naiad 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 3 of the License, or
11 * (at your option) any later version.
13 * Naiad 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.
18 * You should have received a copy of the GNU General Public License
19 * along with Naiad. If not, see <http://www.gnu.org/licenses/>.
22 /**
23 * Naiad skin
25 * @file
26 * @ingroup Extensions
27 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 3.0 or later
30 if( !defined( 'MEDIAWIKI' ) )
31 die();
33 $wgExtensionCredits['skin'][] = array (
34 'path' => __FILE__,
35 'name' => 'Naiad skin',
36 'url' => "[...]",
37 'author' => '[...]',
38 'descriptionmsg' => 'naiad-desc',
41 $wgValidSkinNames['naiad'] = 'Naiad';
42 $wgAutoloadClasses['SkinNaiad'] = dirname(__FILE__).'/Naiad.skin.php';
43 # $wgExtensionMessagesFiles['naiad'] = dirname(__FILE__).'/Naiad.i18n.php';
45 $wgResourceModules['skins.naiad'] = array(
46 'styles' => array(
47 'main.css' => array( 'media' => 'screen' ),
49 'scripts' => array(
50 'js/jquery.slimscroll.js',
51 'js/jquery.tinyscrollbar.min.js',
52 'js/jquery.blenderwiki.js',
54 'remoteBasePath' => "$wgScriptPath/skins/naiad/",
55 'localBasePath' => "$IP/skins/naiad/",
57 'dependencies' => array(
58 'jquery.cookie',
59 'jquery.ui.draggable',
63 require_once(dirname(__FILE__).'/Naiad.body.php');