2013-08-07 08:59:08 +00:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* This file is part of the MediaWiki extension MultimediaViewer.
|
|
|
|
*
|
|
|
|
* MultimediaViewer is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* MultimediaViewer is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with MultimediaViewer. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @ingroup extensions
|
|
|
|
* @author Mark Holmquist <mtraceur@member.fsf.org>
|
|
|
|
* @copyright Copyright © 2013, Mark Holmquist
|
|
|
|
*/
|
2014-04-07 04:34:09 +00:00
|
|
|
if ( !isset( $wgNetworkPerformanceSamplingFactor ) ) {
|
2014-05-19 09:24:54 +00:00
|
|
|
/** @var int|bool: If set, records image load network performance via EventLogging once per this many requests. False if unset. **/
|
2014-04-07 04:34:09 +00:00
|
|
|
$wgNetworkPerformanceSamplingFactor = false;
|
|
|
|
}
|
2013-08-07 08:59:08 +00:00
|
|
|
|
2014-05-19 09:24:54 +00:00
|
|
|
if ( !isset( $wgMediaViewerDurationLoggingSamplingFactor ) ) {
|
2014-05-16 18:17:52 +00:00
|
|
|
/**
|
2014-05-19 09:24:54 +00:00
|
|
|
* If set, records loading times via EventLogging. A value of 1000 means there will be an
|
|
|
|
* 1:1000 chance to log the duration event.
|
2014-05-16 18:17:52 +00:00
|
|
|
* False if unset.
|
|
|
|
* @var int|bool
|
|
|
|
*/
|
2014-05-19 09:24:54 +00:00
|
|
|
$wgMediaViewerDurationLoggingSamplingFactor = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( !isset( $wgMediaViewerActionLoggingSamplingFactorMap ) ) {
|
|
|
|
/**
|
|
|
|
* If set, records user actions via EventLogging and applies a sampling factor according to the map. A "default" key in the map must be set.
|
|
|
|
* False if unset.
|
|
|
|
* @var array|bool
|
|
|
|
*/
|
|
|
|
$wgMediaViewerActionLoggingSamplingFactorMap = false;
|
2014-05-16 18:17:52 +00:00
|
|
|
}
|
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
if ( !isset( $wgMediaViewerIsInBeta ) ) {
|
|
|
|
/** @var bool: If set, Media Viewer will try to use BetaFeatures. False if unset. **/
|
|
|
|
$wgMediaViewerIsInBeta = false;
|
|
|
|
}
|
2014-01-31 00:06:33 +00:00
|
|
|
|
2014-04-10 01:08:36 +00:00
|
|
|
if ( !isset( $wgMediaViewerUseThumbnailGuessing ) ) {
|
|
|
|
/**
|
|
|
|
* When this is enabled, MediaViewer will try to guess image URLs instead of making an
|
|
|
|
* imageinfo API to get them from the server. This speeds up image loading, but does not
|
|
|
|
* work well with certain settings (especially $wgGenerateThumbnailOnParse == true).
|
|
|
|
* If e.g. you use non-standard thumbnail URLs, you might want to override this to false.
|
|
|
|
*
|
|
|
|
* Note that MediaViewer will catch 404 errors and do an API request when this is enabled,
|
|
|
|
* so even if it does not work with your config, there should be no visible breakage, but
|
|
|
|
* there will be a small performance hit. You have to look at network logs to checks whether
|
|
|
|
* it works or not.
|
|
|
|
*
|
|
|
|
* FIXME this should be configurable per-repo. Even if the local wiki pre-renders thumbnails,
|
|
|
|
* remotes such as Commons will work (and vice versa).
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
$wgMediaViewerUseThumbnailGuessing = true;
|
|
|
|
}
|
|
|
|
|
2014-04-08 09:37:24 +00:00
|
|
|
if ( !isset( $wgMediaViewerShowSurvey ) ) {
|
|
|
|
/** @var bool: If set, MediaViewer might direct the user to a survey. **/
|
|
|
|
$wgMediaViewerShowSurvey = false;
|
|
|
|
}
|
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
if ( !isset( $wgEnableMediaViewerForLoggedInUsersOnly ) ) {
|
2014-01-31 00:06:33 +00:00
|
|
|
/**
|
2014-04-07 04:34:09 +00:00
|
|
|
* @var bool: If set, and $wgMediaViewerIsInBeta is unset, Media Viewer will be turned on for
|
|
|
|
* all logged-in users. False if unset.
|
2014-01-31 00:06:33 +00:00
|
|
|
*/
|
2014-04-07 04:34:09 +00:00
|
|
|
$wgEnableMediaViewerForLoggedInUsersOnly = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
$wgMessagesDirs['MultimediaViewer'] = __DIR__ . '/i18n';
|
|
|
|
$wgExtensionMessagesFiles['MultimediaViewer'] = __DIR__ . '/MultimediaViewer.i18n.php';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $path
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
$wgMediaViewerResourceTemplate = array(
|
|
|
|
'localBasePath' => __DIR__ . '/resources',
|
|
|
|
'remoteExtPath' => 'MultimediaViewer/resources',
|
|
|
|
);
|
2014-01-31 00:06:33 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
$wgResourceModules += array(
|
|
|
|
'mmv.lightboximage' => $wgMediaViewerResourceTemplate + array(
|
2014-01-31 00:06:33 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/mmv.lightboximage.js',
|
2014-01-31 00:06:33 +00:00
|
|
|
),
|
2014-02-25 02:28:49 +00:00
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.base',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-01-31 00:06:33 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.lightboxinterface' => $wgMediaViewerResourceTemplate + array(
|
2014-01-31 00:06:33 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/mmv.lightboxinterface.js',
|
2014-01-31 00:06:33 +00:00
|
|
|
),
|
|
|
|
|
2014-03-05 02:24:18 +00:00
|
|
|
'styles' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/mmv.lightboxinterface.less',
|
2014-03-05 02:24:18 +00:00
|
|
|
),
|
|
|
|
|
2014-01-31 00:06:33 +00:00
|
|
|
'dependencies' => array(
|
2014-02-25 02:28:49 +00:00
|
|
|
'mmv.base',
|
2014-05-19 09:24:54 +00:00
|
|
|
'mmv.ActionLogger',
|
2014-03-04 12:52:08 +00:00
|
|
|
'mmv.ui',
|
2014-02-26 20:09:37 +00:00
|
|
|
'mmv.ui.canvas',
|
2014-03-28 00:10:04 +00:00
|
|
|
'mmv.ui.canvasButtons',
|
2014-02-03 11:13:37 +00:00
|
|
|
'mmv.ui.categories',
|
2014-01-31 00:06:33 +00:00
|
|
|
'mmv.ui.description',
|
|
|
|
'mmv.ui.fileUsage',
|
2014-02-07 14:47:00 +00:00
|
|
|
'mmv.ui.metadataPanel',
|
2014-02-06 23:18:47 +00:00
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-02-06 23:18:47 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.ThumbnailWidthCalculator' => $wgMediaViewerResourceTemplate + array(
|
2014-02-06 23:18:47 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/mmv.ThumbnailWidthCalculator.js',
|
2014-02-06 23:18:47 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'jquery.hidpi',
|
|
|
|
'mmv.base',
|
|
|
|
'mmv.model.ThumbnailWidth',
|
2014-01-31 00:06:33 +00:00
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-01-31 00:06:33 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.HtmlUtils' => $wgMediaViewerResourceTemplate + array(
|
2014-03-26 23:59:04 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/mmv.HtmlUtils.js',
|
2014-03-26 23:59:04 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.base',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-03-26 23:59:04 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.model' => $wgMediaViewerResourceTemplate + array(
|
2014-01-31 00:06:33 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/model/mmv.model.js',
|
2014-01-31 00:06:33 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.base',
|
|
|
|
'oojs',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-01-31 00:06:33 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.model.EmbedFileInfo' => $wgMediaViewerResourceTemplate + array(
|
2014-03-19 02:00:26 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/model/mmv.model.EmbedFileInfo.js',
|
2014-03-19 02:00:26 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.model',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-03-19 02:00:26 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.model.License' => $wgMediaViewerResourceTemplate + array(
|
2014-03-20 01:19:54 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/model/mmv.model.License.js',
|
2014-03-20 01:19:54 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.model',
|
2014-03-26 23:59:04 +00:00
|
|
|
'mmv.HtmlUtils',
|
2014-03-20 01:19:54 +00:00
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-03-20 01:19:54 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.model.FileUsage' => $wgMediaViewerResourceTemplate + array(
|
2014-01-31 00:06:33 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/model/mmv.model.FileUsage.js',
|
2014-01-31 00:06:33 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.model',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-01-31 00:06:33 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.model.Image' => $wgMediaViewerResourceTemplate + array(
|
2014-01-31 00:06:33 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/model/mmv.model.Image.js',
|
2014-01-31 00:06:33 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.model',
|
2014-03-20 01:19:54 +00:00
|
|
|
'mmv.model.License',
|
2014-01-31 00:06:33 +00:00
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-01-31 00:06:33 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.model.Repo' => $wgMediaViewerResourceTemplate + array(
|
2014-01-31 00:06:33 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/model/mmv.model.Repo.js',
|
2014-01-31 00:06:33 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.model',
|
|
|
|
'oojs',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-01-31 00:06:33 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.model.Thumbnail' => $wgMediaViewerResourceTemplate + array(
|
2014-02-05 01:06:10 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/model/mmv.model.Thumbnail.js',
|
2014-02-05 01:06:10 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.model',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-02-05 01:06:10 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.model.ThumbnailWidth' => $wgMediaViewerResourceTemplate + array(
|
2014-02-06 23:18:47 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/model/mmv.model.ThumbnailWidth.js',
|
2014-02-06 23:18:47 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.model',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-02-06 23:18:47 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.model.User' => $wgMediaViewerResourceTemplate + array(
|
2014-02-13 09:52:40 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/model/mmv.model.User.js',
|
2014-02-13 09:52:40 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.model',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-02-13 09:52:40 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.model.TaskQueue' => $wgMediaViewerResourceTemplate + array(
|
2014-02-10 21:24:19 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/model/mmv.model.TaskQueue.js',
|
2014-02-10 21:24:19 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.model',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-02-10 21:24:19 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.provider' => $wgMediaViewerResourceTemplate + array(
|
2014-01-31 00:06:33 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/provider/mmv.provider.Api.js',
|
|
|
|
'mmv/provider/mmv.provider.ImageUsage.js',
|
|
|
|
'mmv/provider/mmv.provider.GlobalUsage.js',
|
|
|
|
'mmv/provider/mmv.provider.ImageInfo.js',
|
|
|
|
'mmv/provider/mmv.provider.FileRepoInfo.js',
|
|
|
|
'mmv/provider/mmv.provider.ThumbnailInfo.js',
|
2014-04-09 08:10:21 +00:00
|
|
|
'mmv/provider/mmv.provider.GuessedThumbnailInfo.js',
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/provider/mmv.provider.UserInfo.js',
|
|
|
|
'mmv/provider/mmv.provider.Image.js',
|
2014-01-31 00:06:33 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mediawiki.Title',
|
|
|
|
'mmv.model',
|
2014-03-07 23:53:23 +00:00
|
|
|
'mmv.model.FileUsage',
|
|
|
|
'mmv.model.Image',
|
|
|
|
'mmv.model.Repo',
|
|
|
|
'mmv.model.Thumbnail',
|
|
|
|
'mmv.model.User',
|
2014-02-15 02:15:54 +00:00
|
|
|
'mmv.performance',
|
2014-03-07 23:53:23 +00:00
|
|
|
'oojs',
|
2014-01-31 00:06:33 +00:00
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-01-31 00:06:33 +00:00
|
|
|
|
2014-04-14 18:32:30 +00:00
|
|
|
'mmv.routing' => $wgMediaViewerResourceTemplate + array(
|
2014-05-16 18:27:13 +00:00
|
|
|
'scripts' => array(
|
|
|
|
'mmv/routing/mmv.routing.js',
|
|
|
|
'mmv/routing/mmv.routing.Route.js',
|
|
|
|
'mmv/routing/mmv.routing.ThumbnailRoute.js',
|
|
|
|
'mmv/routing/mmv.routing.MainFileRoute.js',
|
|
|
|
'mmv/routing/mmv.routing.Router.js',
|
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mediawiki.Title',
|
|
|
|
'oojs',
|
|
|
|
),
|
2014-04-14 18:32:30 +00:00
|
|
|
),
|
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.base' => $wgMediaViewerResourceTemplate + array(
|
2014-01-31 00:06:33 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/mmv.base.js',
|
2014-01-31 00:06:33 +00:00
|
|
|
),
|
2014-05-16 18:27:13 +00:00
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'jquery.client',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-01-31 00:06:33 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.ui' => $wgMediaViewerResourceTemplate + array(
|
2014-01-31 00:06:33 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.js',
|
2014-01-31 00:06:33 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.base',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-01-31 00:06:33 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.ui.canvas' => $wgMediaViewerResourceTemplate + array(
|
2014-02-26 20:09:37 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.canvas.js',
|
2014-02-26 20:09:37 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'styles' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.canvas.less',
|
2014-02-26 20:09:37 +00:00
|
|
|
),
|
|
|
|
|
2014-03-01 01:10:51 +00:00
|
|
|
'messages' => array(
|
|
|
|
'multimediaviewer-thumbnail-error',
|
|
|
|
),
|
|
|
|
|
2014-02-26 20:09:37 +00:00
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.ui',
|
|
|
|
'mmv.ThumbnailWidthCalculator',
|
|
|
|
'oojs',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-02-26 20:09:37 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.ui.categories' => $wgMediaViewerResourceTemplate + array(
|
2014-02-03 11:13:37 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.categories.js',
|
2014-02-03 11:13:37 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'styles' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.categories.less',
|
2014-02-03 11:13:37 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.ui',
|
|
|
|
'oojs',
|
|
|
|
),
|
2014-03-07 23:53:23 +00:00
|
|
|
|
|
|
|
'messages' => array(
|
|
|
|
'comma-separator',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-02-03 11:13:37 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.ui.stripeButtons' => $wgMediaViewerResourceTemplate + array(
|
2014-04-01 01:41:57 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.stripeButtons.js',
|
2014-04-01 01:41:57 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'styles' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.stripeButtons.less',
|
2014-04-01 01:41:57 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
2014-04-22 19:35:16 +00:00
|
|
|
'mediawiki.jqueryMsg',
|
2014-04-01 01:41:57 +00:00
|
|
|
'mmv.ui',
|
|
|
|
'oojs',
|
2014-04-02 00:39:54 +00:00
|
|
|
'jquery.tipsy',
|
2014-04-01 01:41:57 +00:00
|
|
|
),
|
2014-04-01 19:02:33 +00:00
|
|
|
|
|
|
|
'messages' => array(
|
|
|
|
'multimediaviewer-feedback-button-text',
|
|
|
|
'multimediaviewer-feedback-popup-text',
|
2014-04-02 00:07:51 +00:00
|
|
|
'multimediaviewer-description-page-button-text',
|
|
|
|
'multimediaviewer-description-page-popup-text',
|
|
|
|
'multimediaviewer-description-page-popup-text-local',
|
2014-04-02 01:58:41 +00:00
|
|
|
'multimediaviewer-reuse-link',
|
2014-04-01 19:02:33 +00:00
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-04-01 01:41:57 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.ui.description' => $wgMediaViewerResourceTemplate + array(
|
2014-01-31 00:06:33 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.description.js',
|
2014-01-31 00:06:33 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.ui',
|
2014-03-26 23:59:04 +00:00
|
|
|
'mmv.HtmlUtils',
|
2014-01-31 00:06:33 +00:00
|
|
|
'oojs',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-01-31 00:06:33 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.ui.fileUsage' => $wgMediaViewerResourceTemplate + array(
|
2014-01-31 00:06:33 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.fileUsage.js',
|
2014-01-31 00:06:33 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'styles' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.fileUsage.less',
|
2014-01-31 00:06:33 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
2014-03-07 23:53:23 +00:00
|
|
|
'mediawiki.language',
|
2014-01-31 00:06:33 +00:00
|
|
|
'mediawiki.Uri',
|
|
|
|
'mediawiki.jqueryMsg',
|
|
|
|
'mmv.ui',
|
|
|
|
'oojs',
|
|
|
|
),
|
2014-03-07 23:53:23 +00:00
|
|
|
|
|
|
|
'messages' => array(
|
|
|
|
'multimediaviewer-fileusage-count',
|
|
|
|
'multimediaviewer-fileusage-count-more',
|
|
|
|
'multimediaviewer-fileusage-link',
|
|
|
|
'multimediaviewer-fileusage-local-section',
|
|
|
|
'multimediaviewer-fileusage-global-section',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-01-31 00:06:33 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.ui.permission' => $wgMediaViewerResourceTemplate + array(
|
2014-02-14 00:36:10 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.permission.js',
|
2014-02-14 00:36:10 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'styles' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.permission.less',
|
2014-02-14 00:36:10 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'messages' => array(
|
|
|
|
'multimediaviewer-permission-title',
|
2014-02-26 02:47:24 +00:00
|
|
|
'multimediaviewer-permission-viewmore',
|
2014-02-14 00:36:10 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'jquery.color',
|
|
|
|
'mediawiki.jqueryMsg',
|
2014-05-19 09:24:54 +00:00
|
|
|
'mmv.ActionLogger',
|
2014-02-14 00:36:10 +00:00
|
|
|
'mmv.ui',
|
2014-03-26 23:59:04 +00:00
|
|
|
'mmv.HtmlUtils',
|
2014-02-14 00:36:10 +00:00
|
|
|
'oojs',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-02-14 00:36:10 +00:00
|
|
|
|
2014-03-27 06:05:47 +00:00
|
|
|
'mmv.ui.truncatableTextField' => $wgMediaViewerResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'mmv/ui/mmv.ui.truncatableTextField.js',
|
|
|
|
),
|
|
|
|
|
|
|
|
'styles' => array(
|
|
|
|
'mmv/ui/mmv.ui.truncatableTextField.less',
|
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.HtmlUtils',
|
|
|
|
'mmv.ui',
|
|
|
|
'oojs',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
2014-04-21 21:48:40 +00:00
|
|
|
'mmv.ui.progressBar' => $wgMediaViewerResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'mmv/ui/mmv.ui.progressBar.js',
|
|
|
|
),
|
|
|
|
|
|
|
|
'styles' => array(
|
|
|
|
'mmv/ui/mmv.ui.progressBar.less',
|
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.ui',
|
|
|
|
'oojs',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.ui.metadataPanel' => $wgMediaViewerResourceTemplate + array(
|
2014-02-07 14:47:00 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.metadataPanel.js',
|
2014-05-05 21:44:27 +00:00
|
|
|
'mmv/ui/mmv.ui.metadataPanelScroller.js',
|
2014-02-07 14:47:00 +00:00
|
|
|
),
|
2014-02-14 00:36:10 +00:00
|
|
|
|
|
|
|
'styles' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.metadataPanel.less',
|
2014-05-05 21:44:27 +00:00
|
|
|
'mmv/ui/mmv.ui.metadataPanelScroller.less',
|
2014-02-14 00:36:10 +00:00
|
|
|
),
|
2014-02-07 14:47:00 +00:00
|
|
|
|
|
|
|
'dependencies' => array(
|
2014-03-27 06:05:47 +00:00
|
|
|
'mmv.HtmlUtils',
|
2014-05-19 09:24:54 +00:00
|
|
|
'mmv.ActionLogger',
|
2014-02-07 14:47:00 +00:00
|
|
|
'mmv.ui',
|
2014-04-21 21:48:40 +00:00
|
|
|
'mmv.ui.progressBar',
|
2014-04-01 01:41:57 +00:00
|
|
|
'mmv.ui.stripeButtons',
|
2014-03-07 23:53:23 +00:00
|
|
|
'mmv.ui.categories',
|
|
|
|
'mmv.ui.description',
|
2014-02-14 00:36:10 +00:00
|
|
|
'mmv.ui.fileUsage',
|
|
|
|
'mmv.ui.permission',
|
2014-03-17 08:07:53 +00:00
|
|
|
'mmv.ui.reuse.dialog',
|
2014-03-27 06:05:47 +00:00
|
|
|
'mmv.ui.truncatableTextField',
|
2014-03-07 23:53:23 +00:00
|
|
|
'oojs',
|
2014-02-07 14:47:00 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'messages' => array(
|
|
|
|
'multimediaviewer-repository',
|
|
|
|
'multimediaviewer-repository-local',
|
2014-04-08 22:43:54 +00:00
|
|
|
'multimediaviewer-commons-subtitle',
|
2014-02-07 14:47:00 +00:00
|
|
|
|
|
|
|
'multimediaviewer-credit',
|
|
|
|
|
|
|
|
'multimediaviewer-userpage-link',
|
|
|
|
|
|
|
|
'multimediaviewer-datetime-created',
|
|
|
|
'multimediaviewer-datetime-uploaded',
|
|
|
|
|
2014-02-14 00:36:10 +00:00
|
|
|
// for license messages see end of file
|
|
|
|
'multimediaviewer-permission-link',
|
|
|
|
|
2014-02-07 14:47:00 +00:00
|
|
|
'multimediaviewer-geoloc-north',
|
|
|
|
'multimediaviewer-geoloc-east',
|
|
|
|
'multimediaviewer-geoloc-south',
|
|
|
|
'multimediaviewer-geoloc-west',
|
|
|
|
'multimediaviewer-geoloc-coord',
|
|
|
|
'multimediaviewer-geoloc-coords',
|
|
|
|
'multimediaviewer-geolocation',
|
|
|
|
|
|
|
|
'multimediaviewer-about-mmv',
|
|
|
|
'multimediaviewer-discuss-mmv',
|
2014-03-24 13:35:34 +00:00
|
|
|
'multimediaviewer-help-mmv',
|
2014-03-01 01:10:51 +00:00
|
|
|
|
2014-04-23 20:31:43 +00:00
|
|
|
// Reuse the preferences message in the top-right menu.
|
|
|
|
'mypreferences',
|
|
|
|
|
2014-03-01 01:10:51 +00:00
|
|
|
'multimediaviewer-metadata-error',
|
2014-02-07 14:47:00 +00:00
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-02-07 14:47:00 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.embedFileFormatter' => $wgMediaViewerResourceTemplate + array(
|
2014-03-19 02:00:26 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/mmv.EmbedFileFormatter.js',
|
2014-03-19 02:00:26 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.base',
|
2014-04-14 23:22:28 +00:00
|
|
|
'mmv.routing',
|
2014-03-19 02:00:26 +00:00
|
|
|
'oojs',
|
2014-03-26 23:59:04 +00:00
|
|
|
'mmv.HtmlUtils',
|
2014-03-19 02:00:26 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'messages' => array(
|
|
|
|
'multimediaviewer-credit',
|
|
|
|
|
|
|
|
'multimediaviewer-html-embed-credit-text-tbls',
|
|
|
|
'multimediaviewer-html-embed-credit-text-tls',
|
|
|
|
'multimediaviewer-html-embed-credit-text-tbs',
|
|
|
|
'multimediaviewer-html-embed-credit-text-tbl',
|
|
|
|
'multimediaviewer-html-embed-credit-text-tb',
|
|
|
|
'multimediaviewer-html-embed-credit-text-ts',
|
|
|
|
'multimediaviewer-html-embed-credit-text-tl',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-03-19 02:00:26 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.ui.reuse.dialog' => $wgMediaViewerResourceTemplate + array(
|
2014-02-07 14:47:00 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.reuse.dialog.js',
|
2014-02-07 14:47:00 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'styles' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.reuse.dialog.less',
|
2014-03-17 08:07:53 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.ui',
|
|
|
|
'oojs',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-03-17 08:07:53 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.ui.reuse.utils' => $wgMediaViewerResourceTemplate + array(
|
2014-03-31 16:08:02 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.reuse.utils.js',
|
2014-03-31 16:08:02 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.HtmlUtils',
|
|
|
|
'mmv.ui',
|
|
|
|
'oojs',
|
|
|
|
'oojs-ui',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-03-31 16:08:02 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.ui.reuse.tab' => $wgMediaViewerResourceTemplate + array(
|
2014-03-17 08:07:53 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.reuse.tab.js',
|
2014-02-07 14:47:00 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.ui',
|
|
|
|
'oojs',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-03-17 08:07:53 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.ui.reuse.share' => $wgMediaViewerResourceTemplate + array(
|
2014-03-17 08:07:53 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.reuse.share.js',
|
2014-03-17 08:07:53 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'styles' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.reuse.share.less',
|
|
|
|
'mmv/ui/mmv.ui.reuse.shareembed.less',
|
2014-03-17 08:07:53 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.ui.reuse.tab',
|
2014-03-31 16:08:02 +00:00
|
|
|
'mmv.ui.reuse.utils',
|
2014-04-14 23:22:28 +00:00
|
|
|
'mmv.routing',
|
2014-03-17 08:07:53 +00:00
|
|
|
'oojs',
|
|
|
|
'oojs-ui',
|
|
|
|
),
|
|
|
|
|
|
|
|
'messages' => array(
|
2014-03-19 22:35:55 +00:00
|
|
|
'multimediaviewer-reuse-loading-placeholder',
|
2014-03-17 08:07:53 +00:00
|
|
|
'multimediaviewer-share-tab',
|
2014-03-26 13:34:44 +00:00
|
|
|
'multimediaviewer-share-explanation',
|
2014-03-17 08:07:53 +00:00
|
|
|
|
|
|
|
'multimediaviewer-link-to-file',
|
|
|
|
'multimediaviewer-link-to-page',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-02-07 14:47:00 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.ui.reuse.embed' => $wgMediaViewerResourceTemplate + array(
|
2014-03-19 02:00:26 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.reuse.embed.js',
|
2014-03-19 02:00:26 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'styles' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.reuse.embed.less',
|
|
|
|
'mmv/ui/mmv.ui.reuse.shareembed.less',
|
2014-03-19 02:00:26 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.ui.reuse.tab',
|
2014-03-31 16:08:02 +00:00
|
|
|
'mmv.ui.reuse.utils',
|
2014-03-19 02:00:26 +00:00
|
|
|
'oojs',
|
|
|
|
'oojs-ui',
|
|
|
|
'mmv.model.EmbedFileInfo',
|
|
|
|
'mmv.embedFileFormatter',
|
|
|
|
),
|
|
|
|
|
|
|
|
'messages' => array(
|
2014-03-19 22:35:55 +00:00
|
|
|
'multimediaviewer-reuse-loading-placeholder',
|
2014-03-19 02:00:26 +00:00
|
|
|
'multimediaviewer-embed-tab',
|
|
|
|
'multimediaviewer-embed-html',
|
|
|
|
'multimediaviewer-embed-wt',
|
2014-03-26 13:34:44 +00:00
|
|
|
'multimediaviewer-embed-explanation',
|
2014-03-19 02:00:26 +00:00
|
|
|
|
|
|
|
'multimediaviewer-embed-byline',
|
|
|
|
'multimediaviewer-embed-license',
|
|
|
|
'multimediaviewer-embed-via',
|
|
|
|
|
2014-03-24 14:44:41 +00:00
|
|
|
'multimediaviewer-default-embed-dimensions',
|
|
|
|
'multimediaviewer-original-embed-dimensions',
|
|
|
|
'multimediaviewer-large-embed-dimensions',
|
|
|
|
'multimediaviewer-medium-embed-dimensions',
|
|
|
|
'multimediaviewer-small-embed-dimensions',
|
|
|
|
'multimediaviewer-embed-dimensions',
|
2014-03-31 16:08:02 +00:00
|
|
|
'multimediaviewer-embed-dimensions-separated',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-03-31 16:08:02 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.ui.reuse.download' => $wgMediaViewerResourceTemplate + array(
|
2014-03-31 16:08:02 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.reuse.download.js',
|
2014-03-31 16:08:02 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'styles' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.reuse.download.less',
|
2014-03-31 16:08:02 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mediawiki.ui',
|
|
|
|
'mediawiki.ui.button',
|
|
|
|
'mmv.ui.reuse.tab',
|
|
|
|
'mmv.ui.reuse.utils',
|
|
|
|
),
|
|
|
|
|
|
|
|
'messages' => array(
|
|
|
|
'multimediaviewer-download-tab',
|
|
|
|
'multimediaviewer-download-preview-link-title',
|
|
|
|
'multimediaviewer-download-original-button-name',
|
|
|
|
'multimediaviewer-download-small-button-name',
|
|
|
|
'multimediaviewer-download-medium-button-name',
|
|
|
|
'multimediaviewer-download-large-button-name',
|
|
|
|
'multimediaviewer-embed-dimensions',
|
|
|
|
'multimediaviewer-embed-dimensions-with-file-format',
|
2014-03-19 02:00:26 +00:00
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-03-19 02:00:26 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.ui.canvasButtons' => $wgMediaViewerResourceTemplate + array(
|
2014-02-04 23:44:36 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.canvasButtons.js',
|
2014-02-04 23:44:36 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'styles' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/ui/mmv.ui.canvasButtons.less',
|
2014-02-04 23:44:36 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.ui',
|
|
|
|
'oojs',
|
|
|
|
),
|
2014-06-10 20:39:10 +00:00
|
|
|
|
|
|
|
'messages' => array(
|
|
|
|
'multimediaviewer-viewfile-link',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-02-04 23:44:36 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.logger' => $wgMediaViewerResourceTemplate + array(
|
2014-02-07 14:47:00 +00:00
|
|
|
'scripts' => array(
|
2014-05-19 09:24:54 +00:00
|
|
|
'mmv/mmv.Logger.js',
|
2014-02-07 14:47:00 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
2014-02-17 15:09:23 +00:00
|
|
|
'mmv.base',
|
2014-02-07 14:47:00 +00:00
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-02-07 14:47:00 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.performance' => $wgMediaViewerResourceTemplate + array(
|
2014-02-06 16:17:38 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/mmv.performance.js',
|
2014-02-06 16:17:38 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
2014-02-11 13:25:39 +00:00
|
|
|
'mmv.base',
|
2014-05-19 09:24:54 +00:00
|
|
|
'mmv.logger',
|
|
|
|
'oojs',
|
2014-02-06 16:17:38 +00:00
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-02-06 16:17:38 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.api' => $wgMediaViewerResourceTemplate + array(
|
2014-02-15 02:15:54 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/mmv.api.js',
|
2014-02-15 02:15:54 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mediawiki.api',
|
|
|
|
'mmv.base',
|
2014-02-19 14:41:40 +00:00
|
|
|
'oojs',
|
2014-02-15 02:15:54 +00:00
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-02-15 02:15:54 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv' => $wgMediaViewerResourceTemplate + array(
|
2014-01-31 00:06:33 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/mmv.js',
|
2014-01-31 00:06:33 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'styles' => array(
|
2014-02-24 17:06:11 +00:00
|
|
|
// Always make this one the last of the list (Bug 61852)
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/mmv.loaded.css',
|
2014-01-31 00:06:33 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
2014-03-07 23:53:23 +00:00
|
|
|
'mmv.api',
|
2014-02-25 02:28:49 +00:00
|
|
|
'mmv.base',
|
2014-01-31 00:06:33 +00:00
|
|
|
'mmv.lightboximage',
|
2014-05-19 09:24:54 +00:00
|
|
|
'mmv.ActionLogger',
|
2014-03-07 23:53:23 +00:00
|
|
|
'mmv.model.TaskQueue',
|
|
|
|
'mmv.lightboxinterface',
|
|
|
|
'mmv.provider',
|
2014-04-14 23:22:28 +00:00
|
|
|
'mmv.routing',
|
2014-04-28 16:11:55 +00:00
|
|
|
'mmv.DurationLogger',
|
2014-01-31 00:06:33 +00:00
|
|
|
'jquery.fullscreen',
|
2014-03-07 23:53:23 +00:00
|
|
|
'jquery.hidpi',
|
|
|
|
'jquery.scrollTo',
|
2014-02-12 21:30:18 +00:00
|
|
|
'jquery.throttle-debounce',
|
2014-03-17 08:07:53 +00:00
|
|
|
'jquery.hidpi',
|
2014-01-31 00:06:33 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'messages' => array(
|
|
|
|
'multimediaviewer-file-page',
|
|
|
|
'multimediaviewer-desc-nil',
|
2014-04-20 03:35:54 +00:00
|
|
|
|
|
|
|
// messages that are gender-dependent (we need to check if they really depend on the gender):
|
|
|
|
'multimediaviewer-userpage-link',
|
2014-01-31 00:06:33 +00:00
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-01-31 00:06:33 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.bootstrap' => $wgMediaViewerResourceTemplate + array(
|
2014-02-17 15:09:23 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/mmv.bootstrap.js',
|
2014-02-17 15:09:23 +00:00
|
|
|
),
|
|
|
|
|
2014-03-28 08:06:53 +00:00
|
|
|
'styles' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/mmv.bootstrap.less',
|
2014-03-28 08:06:53 +00:00
|
|
|
),
|
|
|
|
|
2014-02-17 15:09:23 +00:00
|
|
|
'dependencies' => array(
|
2014-03-07 23:53:23 +00:00
|
|
|
'jquery.hashchange',
|
2014-02-17 15:09:23 +00:00
|
|
|
'mediawiki.Title',
|
2014-05-19 09:24:54 +00:00
|
|
|
'mmv.ActionLogger',
|
2014-03-26 23:59:04 +00:00
|
|
|
'mmv.HtmlUtils',
|
2014-04-28 16:11:55 +00:00
|
|
|
'mmv.DurationLogger',
|
2014-04-11 09:31:38 +00:00
|
|
|
'jquery.scrollTo',
|
2014-02-17 15:09:23 +00:00
|
|
|
),
|
2014-04-08 21:01:07 +00:00
|
|
|
|
|
|
|
'messages' => array(
|
|
|
|
'multimediaviewer-view-expanded',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-02-17 15:09:23 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.bootstrap.autostart' => $wgMediaViewerResourceTemplate + array(
|
2014-03-04 11:53:53 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/mmv.bootstrap.autostart.js',
|
2014-03-04 11:53:53 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.base',
|
|
|
|
'mmv.bootstrap',
|
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-03-04 11:53:53 +00:00
|
|
|
|
2014-05-19 09:24:54 +00:00
|
|
|
'mmv.ActionLogger' => $wgMediaViewerResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'mmv/mmv.ActionLogger.js',
|
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.base',
|
|
|
|
'mmv.logger',
|
|
|
|
'oojs'
|
|
|
|
)
|
|
|
|
),
|
|
|
|
|
2014-04-28 16:11:55 +00:00
|
|
|
'mmv.DurationLogger' => $wgMediaViewerResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'mmv/mmv.DurationLogger.js',
|
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
2014-05-19 09:24:54 +00:00
|
|
|
'mmv.base',
|
|
|
|
'mmv.logger',
|
|
|
|
'oojs'
|
2014-04-28 16:11:55 +00:00
|
|
|
)
|
|
|
|
),
|
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv.head' => $wgMediaViewerResourceTemplate + array(
|
2014-03-28 22:39:36 +00:00
|
|
|
'scripts' => array(
|
2014-04-07 04:34:09 +00:00
|
|
|
'mmv/mmv.head.js',
|
2014-03-28 22:39:36 +00:00
|
|
|
),
|
|
|
|
|
2014-03-31 15:04:53 +00:00
|
|
|
'dependencies' => array(
|
2014-05-19 09:24:54 +00:00
|
|
|
'mmv.base'
|
2014-03-31 15:04:53 +00:00
|
|
|
),
|
|
|
|
|
2014-03-28 22:39:36 +00:00
|
|
|
'position' => 'top',
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'jquery.scrollTo' => $wgMediaViewerResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'jquery.scrollTo/jquery.scrollTo.js',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
'jquery.hashchange' => $wgMediaViewerResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'jquery.hashchange/jquery.hashchange.js',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
2014-01-31 00:06:33 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
$wgExtensionFunctions[] = function () {
|
2014-05-19 09:24:54 +00:00
|
|
|
global $wgResourceModules, $wgEventLoggingSchemas;
|
2014-03-07 01:56:56 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
if ( isset( $wgResourceModules['ext.eventLogging'] ) ) {
|
2014-05-19 09:24:54 +00:00
|
|
|
$wgEventLoggingSchemas[ 'MediaViewer' ] = 8572637;
|
|
|
|
$wgEventLoggingSchemas[ 'MultimediaViewerNetworkPerformance' ] = 7917896;
|
|
|
|
$wgEventLoggingSchemas[ 'MultimediaViewerDuration' ] = 8572641;
|
2014-03-07 01:56:56 +00:00
|
|
|
|
2014-05-19 09:24:54 +00:00
|
|
|
$wgResourceModules['mmv.ActionLogger']['dependencies'][] = 'ext.eventLogging';
|
2014-04-07 04:34:09 +00:00
|
|
|
$wgResourceModules['mmv.performance']['dependencies'][] = 'ext.eventLogging';
|
2014-04-28 16:11:55 +00:00
|
|
|
$wgResourceModules['mmv.DurationLogger']['dependencies'][] = 'ext.eventLogging';
|
2014-03-07 01:56:56 +00:00
|
|
|
}
|
2014-04-07 04:34:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
foreach ( array(
|
|
|
|
'cc-by-1.0',
|
|
|
|
'cc-sa-1.0',
|
|
|
|
'cc-by-sa-1.0',
|
|
|
|
'cc-by-2.0',
|
|
|
|
'cc-by-sa-2.0',
|
|
|
|
'cc-by-2.1',
|
|
|
|
'cc-by-sa-2.1',
|
|
|
|
'cc-by-2.5',
|
|
|
|
'cc-by-sa-2.5',
|
|
|
|
'cc-by-3.0',
|
|
|
|
'cc-by-sa-3.0',
|
|
|
|
'cc-by-sa-3.0-migrated',
|
|
|
|
'cc-by-4.0',
|
|
|
|
'cc-by-sa-4.0',
|
|
|
|
'cc-pd',
|
|
|
|
'cc-zero',
|
|
|
|
'pd',
|
|
|
|
'default',
|
|
|
|
) as $license ) {
|
|
|
|
$wgResourceModules['mmv']['messages'][] = 'multimediaviewer-license-' . $license;
|
|
|
|
}
|
|
|
|
|
|
|
|
$wgAutoloadClasses['MultimediaViewerHooks'] = __DIR__ . '/MultimediaViewerHooks.php';
|
|
|
|
|
|
|
|
$wgDefaultUserOptions['multimediaviewer-enable'] = true;
|
|
|
|
|
|
|
|
$wgHooks['GetPreferences'][] = 'MultimediaViewerHooks::getPreferences';
|
|
|
|
$wgHooks['GetBetaFeaturePreferences'][] = 'MultimediaViewerHooks::getBetaPreferences';
|
|
|
|
$wgHooks['BeforePageDisplay'][] = 'MultimediaViewerHooks::getModulesForArticle';
|
|
|
|
$wgHooks['CategoryPageView'][] = 'MultimediaViewerHooks::getModulesForCategory';
|
|
|
|
$wgHooks['ResourceLoaderGetConfigVars'][] = 'MultimediaViewerHooks::resourceLoaderGetConfigVars';
|
|
|
|
$wgHooks['MakeGlobalVariablesScript'][] = 'MultimediaViewerHooks::makeGlobalVariablesScript';
|
|
|
|
$wgHooks['ResourceLoaderTestModules'][] = 'MultimediaViewerHooks::getTestModules';
|
|
|
|
$wgHooks['ThumbnailBeforeProduceHTML'][] = 'MultimediaViewerHooks::thumbnailBeforeProduceHTML';
|
|
|
|
|
|
|
|
$wgExtensionCredits['other'][] = array(
|
|
|
|
'path' => __FILE__,
|
|
|
|
'name' => 'MultimediaViewer',
|
|
|
|
'descriptionmsg' => 'multimediaviewer-desc',
|
|
|
|
'version' => '0.3.0',
|
|
|
|
'author' => array(
|
|
|
|
'MarkTraceur (Mark Holmquist)',
|
|
|
|
'Gilles Dubuc',
|
|
|
|
'Gergő Tisza',
|
|
|
|
'Aaron Arcos',
|
|
|
|
'Zeljko Filipin',
|
|
|
|
'Pau Giner',
|
|
|
|
'theopolisme',
|
|
|
|
'MatmaRex',
|
|
|
|
'apsdehal',
|
|
|
|
'vldandrew',
|
|
|
|
'Ebrahim Byagowi',
|
|
|
|
'Dereckson',
|
|
|
|
'Brion VIBBER',
|
|
|
|
'Yuki Shira',
|
|
|
|
'Yaroslav Melnychuk',
|
|
|
|
'tonythomas01',
|
|
|
|
'Raimond Spekking',
|
|
|
|
'Kunal Mehta',
|
|
|
|
'Jeff Hall',
|
|
|
|
'Christian Aistleitner',
|
|
|
|
'Amir E. Aharoni',
|
|
|
|
),
|
|
|
|
'url' => 'https://mediawiki.org/wiki/Extension:MultimediaViewer',
|
|
|
|
);
|