foreground.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * Foreground Skin
  4. *
  5. * @file
  6. * @ingroup Skins
  7. * @author Garrick Van Buren, Jamie Thingelstad, Tom Hutchison
  8. * @license 2-clause BSD
  9. */
  10. if ( function_exists( 'wfLoadSkin' ) ) {
  11. wfLoadSkin( 'foreground' );
  12. // Keep i18n globals so mergeMessageFileList.php doesn't break
  13. $wgMessagesDirs['SkinForeground'] = __DIR__ . '/i18n';
  14. /* wfWarn(
  15. 'Deprecated PHP entry point used for foreground skin. Please use wfLoadSkin instead, ' .
  16. 'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
  17. ); */
  18. return;
  19. }
  20. // Note: Don't forget when updating to update the skin.json file with the same change.
  21. $wgExtensionCredits['skin'][] = array(
  22. 'path' => __FILE__,
  23. 'name' => 'Foreground',
  24. 'url' => 'http://foreground.thingelstad.com/',
  25. 'version' => '1.2.0',
  26. 'author' => array(
  27. 'Garrick Van Buren',
  28. 'Jamie Thingelstad',
  29. 'Tom Hutchison',
  30. '...'
  31. ),
  32. 'descriptionmsg' => 'foreground-desc'
  33. );
  34. $wgValidSkinNames['foreground'] = 'Foreground';
  35. $wgAutoloadClasses['SkinForeground'] = __DIR__ . '/Foreground.skin.php';
  36. $wgMessagesDirs['SkinForeground'] = __DIR__ . '/i18n';
  37. $wgExtensionMessagesFiles['SkinForeground'] = __DIR__ . '/Foreground.i18n.php';
  38. $wgResourceModules['skins.foreground.styles'] = array(
  39. 'position' => 'top',
  40. 'styles' => array(
  41. 'foreground/assets/stylesheets/normalize.css',
  42. 'foreground/assets/stylesheets/font-awesome.css',
  43. 'foreground/assets/stylesheets/foundation.css',
  44. 'foreground/assets/stylesheets/foreground.css',
  45. 'foreground/assets/stylesheets/foreground-print.css',
  46. 'foreground/assets/stylesheets/jquery.autocomplete.css',
  47. 'foreground/assets/stylesheets/responsive-tables.css'
  48. ),
  49. 'remoteBasePath' => &$GLOBALS['wgStylePath'],
  50. 'localBasePath' => &$GLOBALS['wgStyleDirectory']
  51. );
  52. $wgResourceModules['skins.foreground.js'] = array(
  53. 'position' => 'top',
  54. 'scripts' => array(
  55. 'foreground/assets/scripts/vendor/custom.modernizr.js',
  56. 'foreground/assets/scripts/vendor/fastclick.js',
  57. 'foreground/assets/scripts/vendor/responsive-tables.js',
  58. 'foreground/assets/scripts/foundation/foundation.js',
  59. 'foreground/assets/scripts/foundation/foundation.topbar.js',
  60. 'foreground/assets/scripts/foundation/foundation.dropdown.js',
  61. 'foreground/assets/scripts/foundation/foundation.section.js',
  62. 'foreground/assets/scripts/foundation/foundation.clearing.js',
  63. 'foreground/assets/scripts/foundation/foundation.cookie.js',
  64. 'foreground/assets/scripts/foundation/foundation.placeholder.js',
  65. 'foreground/assets/scripts/foundation/foundation.forms.js',
  66. 'foreground/assets/scripts/foundation/foundation.alerts.js',
  67. 'foreground/assets/scripts/foreground.js'
  68. ),
  69. 'remoteBasePath' => &$GLOBALS['wgStylePath'],
  70. 'localBasePath' => &$GLOBALS['wgStyleDirectory']
  71. );