[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Summary view] [Print] [Text view]
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 $GLOBALS['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+', 33 ); 34 35 // Register files 36 $GLOBALS['wgAutoloadClasses']['SkinVector'] = __DIR__ . '/SkinVector.php'; 37 $GLOBALS['wgAutoloadClasses']['VectorTemplate'] = __DIR__ . '/VectorTemplate.php'; 38 $GLOBALS['wgMessagesDirs']['Vector'] = __DIR__ . '/i18n'; 39 40 // Register skin 41 SkinFactory::getDefaultInstance()->register( 'vector', 'Vector', function(){ 42 $config = ConfigFactory::getDefaultInstance()->makeConfig( 'vector' ); 43 return new SkinVector( $config ); 44 } ); 45 46 // Register config 47 $GLOBALS['wgConfigRegistry']['vector'] = 'GlobalVarConfig::newInstance'; 48 49 // Configuration options 50 /** 51 * Search form look. 52 * - true = use an icon search button 53 * - false = use Go & Search buttons 54 */ 55 $GLOBALS['wgVectorUseSimpleSearch'] = true; 56 57 /** 58 * Watch and unwatch as an icon rather than a link. 59 * - true = use an icon watch/unwatch button 60 * - false = use watch/unwatch text link 61 */ 62 $GLOBALS['wgVectorUseIconWatch'] = true; 63 64 // Register modules 65 $GLOBALS['wgResourceModules']['skins.vector.styles'] = array( 66 'styles' => array( 67 'screen.less' => array( 'media' => 'screen' ), 68 'screen-hd.less' => array( 'media' => 'screen and (min-width: 982px)' ), 69 ), 70 'remoteSkinPath' => 'Vector', 71 'localBasePath' => __DIR__, 72 ); 73 74 $GLOBALS['wgResourceModules']['skins.vector.js'] = array( 75 'scripts' => array( 76 'collapsibleTabs.js', 77 'vector.js', 78 ), 79 'position' => 'top', 80 'dependencies' => array( 81 'jquery.throttle-debounce', 82 'jquery.tabIndex', 83 ), 84 'remoteSkinPath' => 'Vector', 85 'localBasePath' => __DIR__, 86 ); 87 88 // Apply module customizations 89 $GLOBALS['wgResourceModuleSkinStyles']['vector'] = array( 90 'jquery.tipsy' => 'skinStyles/jquery.tipsy.less', 91 'jquery.ui.core' => array( 92 'skinStyles/jquery.ui/jquery.ui.core.css', 93 'skinStyles/jquery.ui/jquery.ui.theme.css', 94 ), 95 'jquery.ui.accordion' => 'skinStyles/jquery.ui/jquery.ui.accordion.css', 96 'jquery.ui.autocomplete' => 'skinStyles/jquery.ui/jquery.ui.autocomplete.css', 97 'jquery.ui.button' => 'skinStyles/jquery.ui/jquery.ui.button.css', 98 'jquery.ui.datepicker' => 'skinStyles/jquery.ui/jquery.ui.datepicker.css', 99 'jquery.ui.dialog' => 'skinStyles/jquery.ui/jquery.ui.dialog.css', 100 'jquery.ui.progressbar' => 'skinStyles/jquery.ui/jquery.ui.progressbar.css', 101 'jquery.ui.resizable' => 'skinStyles/jquery.ui/jquery.ui.resizable.css', 102 'jquery.ui.selectable' => 'skinStyles/jquery.ui/jquery.ui.selectable.css', 103 'jquery.ui.slider' => 'skinStyles/jquery.ui/jquery.ui.slider.css', 104 'jquery.ui.tabs' => 'skinStyles/jquery.ui/jquery.ui.tabs.css', 105 'mediawiki.notification' => 'skinStyles/mediawiki.notification.less', 106 'mediawiki.special' => 'skinStyles/mediawiki.special.less', 107 'mediawiki.special.preferences' => 'skinStyles/mediawiki.special.preferences.less', 108 'remoteSkinPath' => 'Vector', 109 'localBasePath' => __DIR__, 110 );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |