foreground.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. 'author' => array(
  25. 'Garrick Van Buren',
  26. 'Jamie Thingelstad',
  27. 'Tom Hutchison',
  28. '...'
  29. ),
  30. 'version' => '2.0.0 (Albert)',
  31. 'descriptionmsg' => 'foreground-desc'
  32. );
  33. $wgValidSkinNames['foreground'] = 'Foreground';
  34. $wgAutoloadClasses['SkinForeground'] = __DIR__ . '/Foreground.skin.php';
  35. $wgAutoloadClasses['foregroundTemplate'] = __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. ),
  47. 'remoteBasePath' => &$GLOBALS['wgStylePath'],
  48. 'localBasePath' => &$GLOBALS['wgStyleDirectory']
  49. );
  50. $wgResourceModules['skins.foreground.modernizr'] = array(
  51. 'position' => 'top',
  52. 'scripts' => array(
  53. 'foreground/assets/scripts/vendor/modernizr.js'
  54. ),
  55. 'remoteBasePath' => &$GLOBALS['wgStylePath'],
  56. 'localBasePath' => &$GLOBALS['wgStyleDirectory']
  57. );
  58. $wgResourceModules['skins.foreground.js'] = array(
  59. 'position' => 'bottom',
  60. 'scripts' => array(
  61. 'foreground/assets/scripts/vendor/fastclick.js',
  62. 'foreground/assets/scripts/vendor/placeholder.js',
  63. 'foreground/assets/scripts/foundation/foundation.js',
  64. 'foreground/assets/scripts/foundation/foundation.topbar.js',
  65. 'foreground/assets/scripts/foundation/foundation.dropdown.js',
  66. 'foreground/assets/scripts/foundation/foundation.joyride.js',
  67. 'foreground/assets/scripts/foundation/foundation.accordion.js',
  68. 'foreground/assets/scripts/foundation/foundation.alert.js',
  69. 'foreground/assets/scripts/foundation/foundation.clearing.js',
  70. 'foreground/assets/scripts/foundation/foundation.equalizer.js',
  71. 'foreground/assets/scripts/foundation/foundation.interchange.js',
  72. 'foreground/assets/scripts/foundation/foundation.offcanvas.js',
  73. 'foreground/assets/scripts/foundation/foundation.orbit.js',
  74. 'foreground/assets/scripts/foundation/foundation.reveal.js',
  75. 'foreground/assets/scripts/foundation/foundation.tab.js',
  76. 'foreground/assets/scripts/foundation/foundation.tooltip.js',
  77. 'foreground/assets/scripts/foreground.js',
  78. ),
  79. 'dependencies' => array(
  80. 'jquery.cookie',
  81. 'skins.foreground.modernizr',
  82. ),
  83. 'remoteBasePath' => &$GLOBALS['wgStylePath'],
  84. 'localBasePath' => &$GLOBALS['wgStyleDirectory']
  85. );