PageRenderTime 28ms CodeModel.GetById 8ms RepoModel.GetById 0ms app.codeStats 0ms

/monaco.php

https://gitlab.com/GethN7/monaco-port
PHP | 71 lines | 47 code | 10 blank | 14 comment | 1 complexity | 50a87049d3f6f78ff3195eaa1d03f1ff MD5 | raw file
  1. <?php
  2. /**
  3. * Monaco skin
  4. *
  5. * @package MediaWiki
  6. * @subpackage Skins
  7. *
  8. * @author Inez Korczynski <inez@wikia.com>
  9. * @author Christian Williams
  10. * @author Daniel Friesen
  11. * @author James Haley
  12. */
  13. if( !defined( 'MEDIAWIKI' ) ) die( "This is an extension to the MediaWiki package and cannot be run standalone." );
  14. $wgExtensionCredits['skin'][] = array(
  15. 'path' => __FILE__,
  16. 'name' => 'Monaco',
  17. 'author' => array('Inez Korczynski', 'Christian Williams', '[http://mediawiki.org/wiki/User:Dantman Daniel Friesen]', '[http://doomwiki.org/wiki/User:Quasar James Haley]'),
  18. 'descriptionmsg' => 'monaco-desc',
  19. 'url' => 'https://github.com/haleyjd/monaco-port',
  20. );
  21. $wgValidSkinNames['monaco'] = 'Monaco';
  22. $wgAutoloadClasses['SkinMonaco'] = dirname(__FILE__) . '/Monaco.skin.php';
  23. $wgAutoloadClasses['MonacoSidebar'] = dirname(__FILE__) . '/MonacoSidebar.class.php';
  24. $wgExtensionMessagesFiles['Monaco'] = dirname(__FILE__) . '/Monaco.i18n.php';
  25. $wgHooks['MessageCacheReplace'][] = 'MonacoSidebar::invalidateCache';
  26. $wgResourceModules['skins.monaco'] = array(
  27. 'styles' => array(
  28. 'style/css/monobook_modified.css' => array( 'media' => 'screen' ),
  29. 'style/css/reset_modified.css' => array( 'media' => 'screen' ),
  30. 'style/css/buttons.css' => array( 'media' => 'screen' ),
  31. 'style/css/sprite.css' => array( 'media' => 'screen' ),
  32. 'style/css/root.css' => array( 'media' => 'screen' ),
  33. 'style/css/header.css' => array( 'media' => 'screen' ),
  34. 'style/css/article.css' => array( 'media' => 'screen' ),
  35. 'style/css/widgets.css' => array( 'media' => 'screen' ),
  36. 'style/css/modal.css' => array( 'media' => 'screen' ),
  37. 'style/css/footer.css' => array( 'media' => 'screen' ),
  38. 'style/css/star_rating.css' => array( 'media' => 'screen' ),
  39. 'style/css/ny.css' => array( 'media' => 'screen' ),
  40. ),
  41. 'scripts' => 'style/js/monaco.js',
  42. 'localBasePath' => __DIR__,
  43. );
  44. /* haleyjd 20140809: Widget Framework 2.0 */
  45. $wgResourceModules['ext.monacoWidget'] = array(
  46. 'scripts' => 'ext/ext.monacoWidget.js',
  47. 'styles' => 'ext/ext.monacoWidget.css',
  48. 'localBasePath' => __DIR__,
  49. );
  50. /* Bad Configs - These are left-over junk used inside Monaco.skin.php that should be slowly removed */
  51. $wgSearchDefaultFulltext = false; // bad config
  52. $wgSpecialPagesRequiredLogin = array(); // bad config, it should be possible to check if the user has special page access without doing something like this
  53. $wgMastheadVisible = false; // we may want to integrate masthead into Monaco and make it a optional skin feature
  54. /* Config Settings */
  55. $wgMonacoAllowUsetheme = false; // Set to false to disable &usetheme= support.
  56. $wgMonacoTheme = "sapphire"; // load a pre-made Monaco theme from the styles folder
  57. $wgMonacoDynamicCreateOverride = false; // Override "Special:CreatePage" urls with something else
  58. $wgMonacoUseMoreButton = true; // Set to false to disable the more button and just list out links
  59. $wgMonacoUseSitenoticeIsland = false; // Use an island above the content area for the sitenotice instead of embedding it above the page title
  60. $wgMonacoUseMasthead = true; // Show the masthead on userpages
  61. $wgMonacoCompactSpecialPages = false; // Compact the tab_bar on special pages