foreground.php 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. /**
  3. * Foreground Skin
  4. *
  5. * @file
  6. * @ingroup Skins
  7. * @author Garrick Van Buren, Jamie Thingelstad, Tom Hutchison
  8. * @license BSD-2-Clause
  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' => 'https://github.com/thingles/foreground',
  24. 'author' => array(
  25. 'Garrick Van Buren',
  26. 'Jamie Thingelstad',
  27. 'Tom Hutchison',
  28. '...'
  29. ),
  30. 'version' => '2.0.1-alpha',
  31. 'descriptionmsg' => 'foreground-desc',
  32. 'license-name' => 'BSD-2-Clause'
  33. );
  34. $wgValidSkinNames['foreground'] = 'Foreground';
  35. $wgAutoloadClasses['SkinForeground'] = __DIR__ . '/Foreground.skin.php';
  36. $wgAutoloadClasses['foregroundTemplate'] = __DIR__ . '/Foreground.skin.php';
  37. $wgMessagesDirs['SkinForeground'] = __DIR__ . '/i18n';
  38. $wgExtensionMessagesFiles['SkinForeground'] = __DIR__ . '/Foreground.i18n.php';
  39. $wgResourceModules['skins.foreground.styles'] = array(
  40. 'position' => 'top',
  41. 'styles' => array(
  42. 'foreground/assets/stylesheets/normalize.css',
  43. 'foreground/assets/stylesheets/font-awesome.css',
  44. 'foreground/assets/stylesheets/foundation.css',
  45. 'foreground/assets/stylesheets/foreground.css',
  46. 'foreground/assets/stylesheets/foreground-print.css'
  47. ),
  48. 'remoteBasePath' => &$GLOBALS['wgStylePath'],
  49. 'localBasePath' => &$GLOBALS['wgStyleDirectory']
  50. );
  51. $wgResourceModules['skins.foreground.modernizr'] = array(
  52. 'position' => 'top',
  53. 'scripts' => array(
  54. 'foreground/assets/scripts/vendor/modernizr.js'
  55. ),
  56. 'remoteBasePath' => &$GLOBALS['wgStylePath'],
  57. 'localBasePath' => &$GLOBALS['wgStyleDirectory']
  58. );
  59. $wgResourceModules['skins.foreground.js'] = array(
  60. 'position' => 'bottom',
  61. 'scripts' => array(
  62. 'foreground/assets/scripts/vendor/fastclick.js',
  63. 'foreground/assets/scripts/vendor/placeholder.js',
  64. 'foreground/assets/scripts/foundation/foundation.js',
  65. 'foreground/assets/scripts/foundation/foundation.topbar.js',
  66. 'foreground/assets/scripts/foundation/foundation.dropdown.js',
  67. 'foreground/assets/scripts/foundation/foundation.joyride.js',
  68. 'foreground/assets/scripts/foundation/foundation.accordion.js',
  69. 'foreground/assets/scripts/foundation/foundation.alert.js',
  70. 'foreground/assets/scripts/foundation/foundation.clearing.js',
  71. 'foreground/assets/scripts/foundation/foundation.equalizer.js',
  72. 'foreground/assets/scripts/foundation/foundation.interchange.js',
  73. 'foreground/assets/scripts/foundation/foundation.offcanvas.js',
  74. 'foreground/assets/scripts/foundation/foundation.orbit.js',
  75. 'foreground/assets/scripts/foundation/foundation.reveal.js',
  76. 'foreground/assets/scripts/foundation/foundation.tab.js',
  77. 'foreground/assets/scripts/foundation/foundation.tooltip.js',
  78. 'foreground/assets/scripts/foreground.js',
  79. ),
  80. 'dependencies' => array(
  81. 'jquery.cookie',
  82. 'skins.foreground.modernizr',
  83. ),
  84. 'remoteBasePath' => &$GLOBALS['wgStylePath'],
  85. 'localBasePath' => &$GLOBALS['wgStyleDirectory']
  86. );