2014-07-25 20:19:15 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* MediaWiki Extension: Echo
|
|
|
|
* http://www.mediawiki.org/wiki/Extension:Echo
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* This program is distributed WITHOUT ANY WARRANTY.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @ingroup Extensions
|
|
|
|
* @author Andrew Garrett, Benny Situ, Ryan Kaldari, Erik Bernhardson
|
|
|
|
* @licence MIT License
|
|
|
|
*/
|
|
|
|
|
|
|
|
$echoResourceTemplate = array(
|
|
|
|
'localBasePath' => __DIR__ . '/modules',
|
|
|
|
'remoteExtPath' => 'Echo/modules',
|
|
|
|
);
|
|
|
|
|
2014-08-12 15:09:09 +00:00
|
|
|
$mobileReadyTemplate = array(
|
|
|
|
'targets' => array( 'desktop', 'mobile' ),
|
|
|
|
);
|
|
|
|
|
2014-07-25 20:19:15 +00:00
|
|
|
$wgResourceModules += array(
|
|
|
|
// ext.echo.base is used by mobile notifications as well, so be sure not to add any
|
|
|
|
// dependencies that do not target mobile.
|
2014-08-12 15:09:09 +00:00
|
|
|
'ext.echo.base' => $echoResourceTemplate + $mobileReadyTemplate + array(
|
2014-08-04 18:43:27 +00:00
|
|
|
'styles' => 'base/ext.echo.base.less',
|
2014-08-05 22:18:38 +00:00
|
|
|
'scripts' => array(
|
|
|
|
'base/ext.echo.base.js',
|
|
|
|
),
|
2014-07-25 20:19:15 +00:00
|
|
|
'messages' => array(
|
|
|
|
'echo-error-preference',
|
|
|
|
'echo-error-token',
|
|
|
|
),
|
|
|
|
),
|
2014-08-12 15:09:09 +00:00
|
|
|
'ext.echo.overlay' => $echoResourceTemplate + $mobileReadyTemplate + array(
|
2014-07-25 20:19:15 +00:00
|
|
|
'scripts' => array(
|
|
|
|
'overlay/ext.echo.overlay.js',
|
|
|
|
),
|
|
|
|
'skinStyles' => array(
|
|
|
|
'modern' => 'overlay/ext.echo.overlay.modern.css',
|
|
|
|
'monobook' => 'overlay/ext.echo.overlay.monobook.css',
|
|
|
|
),
|
|
|
|
'dependencies' => array(
|
|
|
|
'mediawiki.util',
|
|
|
|
'mediawiki.language',
|
2014-08-11 23:40:20 +00:00
|
|
|
'mediawiki.ui.anchor',
|
2014-08-12 15:09:09 +00:00
|
|
|
'ext.echo.base',
|
|
|
|
'mediawiki.api',
|
|
|
|
'mediawiki.jqueryMsg',
|
2014-07-25 20:19:15 +00:00
|
|
|
),
|
|
|
|
'messages' => array(
|
|
|
|
'echo-overlay-link',
|
|
|
|
'echo-mark-all-as-read',
|
|
|
|
'echo-more-info',
|
|
|
|
'echo-feedback',
|
2014-08-06 19:29:17 +00:00
|
|
|
'echo-notification-alert',
|
|
|
|
'echo-notification-message',
|
2014-09-09 00:10:33 +00:00
|
|
|
'echo-notification-alert-text-only',
|
|
|
|
'echo-notification-message-text-only',
|
2014-08-06 19:29:17 +00:00
|
|
|
'echo-email-batch-bullet'
|
2014-07-25 20:19:15 +00:00
|
|
|
),
|
|
|
|
),
|
2014-08-05 23:48:07 +00:00
|
|
|
'ext.echo.overlay.init' => $echoResourceTemplate + array(
|
2014-08-12 15:09:09 +00:00
|
|
|
'styles' => array(
|
|
|
|
'overlay/ext.echo.overlay.less',
|
|
|
|
),
|
2014-08-05 23:48:07 +00:00
|
|
|
'dependencies' => array(
|
|
|
|
'ext.echo.overlay',
|
|
|
|
),
|
|
|
|
'scripts' => array(
|
|
|
|
'overlay/ext.echo.overlay.init.js',
|
|
|
|
),
|
|
|
|
),
|
2014-07-25 20:19:15 +00:00
|
|
|
'ext.echo.special' => $echoResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'special/ext.echo.special.js',
|
|
|
|
),
|
2014-08-04 18:43:27 +00:00
|
|
|
'styles' => 'special/ext.echo.special.less',
|
2014-07-25 20:19:15 +00:00
|
|
|
'dependencies' => array(
|
|
|
|
'mediawiki.ui.button',
|
2014-08-12 15:09:09 +00:00
|
|
|
'ext.echo.base',
|
2014-07-25 20:19:15 +00:00
|
|
|
),
|
|
|
|
'messages' => array(
|
|
|
|
'echo-load-more-error',
|
|
|
|
'echo-more-info',
|
|
|
|
'echo-feedback',
|
|
|
|
),
|
|
|
|
'position' => 'top',
|
|
|
|
),
|
|
|
|
'ext.echo.alert' => $echoResourceTemplate + array(
|
2014-08-04 18:43:27 +00:00
|
|
|
'styles' => 'alert/ext.echo.alert.less',
|
2014-07-25 20:19:15 +00:00
|
|
|
'skinStyles' => array(
|
|
|
|
'modern' => 'alert/ext.echo.alert.modern.css',
|
|
|
|
'monobook' => 'alert/ext.echo.alert.monobook.css',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'ext.echo.badge' => $echoResourceTemplate + array(
|
2014-08-04 18:43:27 +00:00
|
|
|
'styles' => 'badge/ext.echo.badge.less',
|
2014-07-25 20:19:15 +00:00
|
|
|
'skinStyles' => array(
|
|
|
|
'modern' => 'badge/ext.echo.badge.modern.css',
|
|
|
|
'monobook' => 'badge/ext.echo.badge.monobook.css',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|