/monaco.php
https://gitlab.com/GethN7/monaco-port · PHP · 71 lines · 47 code · 10 blank · 14 comment · 1 complexity · 50a87049d3f6f78ff3195eaa1d03f1ff MD5 · raw file
- <?php
- /**
- * Monaco skin
- *
- * @package MediaWiki
- * @subpackage Skins
- *
- * @author Inez Korczynski <inez@wikia.com>
- * @author Christian Williams
- * @author Daniel Friesen
- * @author James Haley
- */
- if( !defined( 'MEDIAWIKI' ) ) die( "This is an extension to the MediaWiki package and cannot be run standalone." );
- $wgExtensionCredits['skin'][] = array(
- 'path' => __FILE__,
- 'name' => 'Monaco',
- 'author' => array('Inez Korczynski', 'Christian Williams', '[http://mediawiki.org/wiki/User:Dantman Daniel Friesen]', '[http://doomwiki.org/wiki/User:Quasar James Haley]'),
- 'descriptionmsg' => 'monaco-desc',
- 'url' => 'https://github.com/haleyjd/monaco-port',
- );
- $wgValidSkinNames['monaco'] = 'Monaco';
- $wgAutoloadClasses['SkinMonaco'] = dirname(__FILE__) . '/Monaco.skin.php';
- $wgAutoloadClasses['MonacoSidebar'] = dirname(__FILE__) . '/MonacoSidebar.class.php';
- $wgExtensionMessagesFiles['Monaco'] = dirname(__FILE__) . '/Monaco.i18n.php';
- $wgHooks['MessageCacheReplace'][] = 'MonacoSidebar::invalidateCache';
- $wgResourceModules['skins.monaco'] = array(
- 'styles' => array(
- 'style/css/monobook_modified.css' => array( 'media' => 'screen' ),
- 'style/css/reset_modified.css' => array( 'media' => 'screen' ),
- 'style/css/buttons.css' => array( 'media' => 'screen' ),
- 'style/css/sprite.css' => array( 'media' => 'screen' ),
- 'style/css/root.css' => array( 'media' => 'screen' ),
- 'style/css/header.css' => array( 'media' => 'screen' ),
- 'style/css/article.css' => array( 'media' => 'screen' ),
- 'style/css/widgets.css' => array( 'media' => 'screen' ),
- 'style/css/modal.css' => array( 'media' => 'screen' ),
- 'style/css/footer.css' => array( 'media' => 'screen' ),
- 'style/css/star_rating.css' => array( 'media' => 'screen' ),
- 'style/css/ny.css' => array( 'media' => 'screen' ),
- ),
- 'scripts' => 'style/js/monaco.js',
- 'localBasePath' => __DIR__,
- );
- /* haleyjd 20140809: Widget Framework 2.0 */
- $wgResourceModules['ext.monacoWidget'] = array(
- 'scripts' => 'ext/ext.monacoWidget.js',
- 'styles' => 'ext/ext.monacoWidget.css',
- 'localBasePath' => __DIR__,
- );
- /* Bad Configs - These are left-over junk used inside Monaco.skin.php that should be slowly removed */
- $wgSearchDefaultFulltext = false; // bad config
- $wgSpecialPagesRequiredLogin = array(); // bad config, it should be possible to check if the user has special page access without doing something like this
- $wgMastheadVisible = false; // we may want to integrate masthead into Monaco and make it a optional skin feature
- /* Config Settings */
- $wgMonacoAllowUsetheme = false; // Set to false to disable &usetheme= support.
- $wgMonacoTheme = "sapphire"; // load a pre-made Monaco theme from the styles folder
- $wgMonacoDynamicCreateOverride = false; // Override "Special:CreatePage" urls with something else
- $wgMonacoUseMoreButton = true; // Set to false to disable the more button and just list out links
- $wgMonacoUseSitenoticeIsland = false; // Use an island above the content area for the sitenotice instead of embedding it above the page title
- $wgMonacoUseMasthead = true; // Show the masthead on userpages
- $wgMonacoCompactSpecialPages = false; // Compact the tab_bar on special pages