foreground.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. $wgExtensionCredits['skin'][] = array(
  21. 'path' => __FILE__,
  22. 'name' => 'Foreground',
  23. 'url' => 'http://foreground.thingelstad.com/',
  24. 'version' => '1.2-alpha',
  25. 'author' => array(
  26. 'Garrick Van Buren',
  27. 'Jamie Thingelstad',
  28. 'Tom Hutchison',
  29. '...'
  30. ),
  31. 'descriptionmsg' => 'foreground-desc'
  32. );
  33. $wgValidSkinNames['foreground'] = 'Foreground';
  34. $wgAutoloadClasses['SkinForeground'] = __DIR__ . '/Foreground.skin.php';
  35. $wgMessagesDirs['SkinForeground'] = __DIR__ . '/i18n';
  36. $wgExtensionMessagesFiles['SkinForeground'] = __DIR__ . '/Foreground.i18n.php';
  37. $wgResourceModules['skins.foreground.styles'] = array(
  38. 'position' => 'top',
  39. 'styles' => array(
  40. 'foreground/assets/stylesheets/normalize.css',
  41. 'foreground/assets/stylesheets/font-awesome.css',
  42. 'foreground/assets/stylesheets/foundation.css',
  43. 'foreground/assets/stylesheets/foreground.css',
  44. 'foreground/assets/stylesheets/foreground-print.css',
  45. 'foreground/assets/stylesheets/jquery.autocomplete.css',
  46. 'foreground/assets/stylesheets/responsive-tables.css'
  47. ),
  48. 'remoteBasePath' => &$GLOBALS['wgStylePath'],
  49. 'localBasePath' => &$GLOBALS['wgStyleDirectory']
  50. );
  51. $wgResourceModules['skins.foreground.js'] = array(
  52. 'position' => 'top',
  53. 'scripts' => array(
  54. 'foreground/assets/scripts/vendor/custom.modernizr.js',
  55. 'foreground/assets/scripts/vendor/fastclick.js',
  56. 'foreground/assets/scripts/vendor/responsive-tables.js',
  57. 'foreground/assets/scripts/foundation/foundation.js',
  58. 'foreground/assets/scripts/foundation/foundation.topbar.js',
  59. 'foreground/assets/scripts/foundation/foundation.dropdown.js',
  60. 'foreground/assets/scripts/foundation/foundation.section.js',
  61. 'foreground/assets/scripts/foundation/foundation.clearing.js',
  62. 'foreground/assets/scripts/foundation/foundation.cookie.js',
  63. 'foreground/assets/scripts/foundation/foundation.placeholder.js',
  64. 'foreground/assets/scripts/foundation/foundation.forms.js',
  65. 'foreground/assets/scripts/foundation/foundation.alerts.js',
  66. 'foreground/assets/scripts/foreground.js'
  67. ),
  68. 'remoteBasePath' => &$GLOBALS['wgStylePath'],
  69. 'localBasePath' => &$GLOBALS['wgStyleDirectory']
  70. );