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;
|
|
|
|
}
|
|
|
|
|
2014-11-06 17:51:08 +00:00
|
|
|
if ( !isset( $wgMediaViewerDurationLoggingLoggedinSamplingFactor ) ) {
|
|
|
|
/**
|
|
|
|
* If set, records loading times via EventLogging with factor specific to loggedin users.
|
|
|
|
* A value of 1000 means there will be an 1:1000 chance to log the duration event.
|
|
|
|
* False if unset.
|
|
|
|
* @var int|bool
|
|
|
|
*/
|
|
|
|
$wgMediaViewerDurationLoggingLoggedinSamplingFactor = false;
|
|
|
|
}
|
|
|
|
|
2014-09-05 00:45:36 +00:00
|
|
|
if ( !isset( $wgMediaViewerAttributionLoggingSamplingFactor ) ) {
|
|
|
|
/**
|
|
|
|
* If set, records whether image attribution data was available. A value of 1000 means there will be an
|
|
|
|
* 1:1000 chance to log the attribution event.
|
|
|
|
* False if unset.
|
|
|
|
* @var int|bool
|
|
|
|
*/
|
|
|
|
$wgMediaViewerAttributionLoggingSamplingFactor = false;
|
|
|
|
}
|
|
|
|
|
2014-09-26 18:37:53 +00:00
|
|
|
if ( !isset( $wgMediaViewerDimensionLoggingSamplingFactor ) ) {
|
|
|
|
/**
|
|
|
|
* If set, records whether image dimension data was available. A value of 1000 means there will be an
|
|
|
|
* 1:1000 chance to log the dimension event.
|
|
|
|
* False if unset.
|
|
|
|
* @var int|bool
|
|
|
|
*/
|
|
|
|
$wgMediaViewerDimensionLoggingSamplingFactor = false;
|
|
|
|
}
|
|
|
|
|
2014-05-19 09:24:54 +00:00
|
|
|
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
|
2014-06-27 01:37:03 +00:00
|
|
|
* imageinfo API to get them from the server. This speeds up image loading, but will result in 404s
|
|
|
|
* when $wgGenerateThumbnailOnParse (so the thumbnails are only generated as a result of the API request).
|
|
|
|
* MediaViewer will catch such 404 errors and fall back to the API request, but depending on how the site
|
|
|
|
* is set up, the 404 might get cached, or redirected, causing the image load to fail. The safe way to
|
|
|
|
* use URL guessing is with a 404 handler: https://www.mediawiki.org/wiki/Manual:Thumb.php#404_Handler
|
2014-04-10 01:08:36 +00:00
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
2014-06-27 01:37:03 +00:00
|
|
|
$wgMediaViewerUseThumbnailGuessing = false;
|
2014-04-10 01:08:36 +00:00
|
|
|
}
|
|
|
|
|
2014-08-10 11:16:01 +00:00
|
|
|
if ( !isset( $wgMediaViewerEnableByDefault ) ) {
|
2014-01-31 00:06:33 +00:00
|
|
|
/**
|
2014-08-10 11:16:01 +00:00
|
|
|
* If trueish, and $wgMediaViewerIsInBeta is unset, Media Viewer will be turned on by default.
|
|
|
|
* @var bool
|
2014-01-31 00:06:33 +00:00
|
|
|
*/
|
2014-08-10 11:16:01 +00:00
|
|
|
$wgMediaViewerEnableByDefault = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( !isset( $wgMediaViewerEnableByDefaultForAnonymous ) ) {
|
|
|
|
/**
|
|
|
|
* If set, overrides $wgMediaViewerEnableByDefault for anonymous users.
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
$wgMediaViewerEnableByDefaultForAnonymous = $wgMediaViewerEnableByDefault;
|
2014-04-07 04:34:09 +00:00
|
|
|
}
|
|
|
|
|
2014-11-16 11:31:47 +00:00
|
|
|
if ( !isset( $wgMediaViewerImageQueryParameter ) ) {
|
|
|
|
/**
|
|
|
|
* If set, adds a query parameter to image requests made by Media Viewer
|
|
|
|
* @var string|bool
|
|
|
|
*/
|
|
|
|
$wgMediaViewerImageQueryParameter = false;
|
|
|
|
}
|
|
|
|
|
2014-11-20 23:39:29 +00:00
|
|
|
if ( !isset( $wgMediaViewerRecordViewDuration ) ) {
|
|
|
|
/**
|
|
|
|
* If set, record the view duration via a HEAD request.
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
$wgMediaViewerRecordViewDuration = false;
|
|
|
|
}
|
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
$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-09-04 23:00:55 +00:00
|
|
|
'mmv.logging.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-01-31 00:06:33 +00:00
|
|
|
'mmv.ui.description',
|
2014-09-16 20:33:05 +00:00
|
|
|
'mmv.ui.download.dialog',
|
2014-02-07 14:47:00 +00:00
|
|
|
'mmv.ui.metadataPanel',
|
2014-09-12 18:05:13 +00:00
|
|
|
'mmv.ui.reuse.dialog',
|
2014-07-23 23:00:37 +00:00
|
|
|
'mmv.ui.viewingOptions',
|
2014-02-06 23:18:47 +00:00
|
|
|
),
|
2014-05-31 00:18:12 +00:00
|
|
|
|
|
|
|
'messages' => array(
|
|
|
|
'multimediaviewer-close-popup-text',
|
|
|
|
'multimediaviewer-fullscreen-popup-text',
|
|
|
|
'multimediaviewer-defullscreen-popup-text',
|
|
|
|
),
|
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-06-11 21:36:54 +00:00
|
|
|
'mmv.model.IwTitle' => $wgMediaViewerResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'mmv/model/mmv.model.IwTitle.js',
|
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.model',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
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.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.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',
|
2014-11-16 11:31:47 +00:00
|
|
|
'mediawiki.Uri',
|
2014-01-31 00:06:33 +00:00
|
|
|
'mmv.model',
|
2014-06-11 21:36:54 +00:00
|
|
|
'mmv.model.IwTitle',
|
2014-03-07 23:53:23 +00:00
|
|
|
'mmv.model.Image',
|
|
|
|
'mmv.model.Repo',
|
|
|
|
'mmv.model.Thumbnail',
|
|
|
|
'mmv.model.User',
|
2014-11-21 10:07:40 +00:00
|
|
|
'mmv.logging.PerformanceLogger',
|
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-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-09-05 12:52:53 +00:00
|
|
|
'mmv.logging.ActionLogger',
|
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.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-09-16 20:33:05 +00:00
|
|
|
'mmv.ui.dialog' => $wgMediaViewerResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'mmv/ui/mmv.ui.dialog.js',
|
|
|
|
),
|
|
|
|
|
|
|
|
'styles' => array(
|
|
|
|
'mmv/ui/mmv.ui.dialog.less',
|
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.ui',
|
|
|
|
'oojs',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
'mmv.ui.download' => $wgMediaViewerResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'mmv/ui/mmv.ui.download.js',
|
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.ui',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
'mmv.ui.download.dialog' => $wgMediaViewerResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'mmv/ui/mmv.ui.download.dialog.js',
|
|
|
|
),
|
|
|
|
|
|
|
|
'styles' => array(
|
|
|
|
'mmv/ui/mmv.ui.download.dialog.less',
|
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.logging.ActionLogger',
|
|
|
|
'mmv.ui.dialog',
|
|
|
|
'mmv.ui.download',
|
|
|
|
'oojs',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
'mmv.ui.download.pane' => $wgMediaViewerResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'mmv/ui/mmv.ui.download.pane.js',
|
|
|
|
),
|
|
|
|
|
|
|
|
'styles' => array(
|
|
|
|
'mmv/ui/mmv.ui.download.pane.less',
|
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mediawiki.ui',
|
|
|
|
'mediawiki.ui.button',
|
|
|
|
'mmv.ui',
|
|
|
|
'mmv.ui.download',
|
|
|
|
'mmv.ui.utils',
|
|
|
|
'mmv.embedFileFormatter',
|
|
|
|
'mmv.logging.ActionLogger',
|
|
|
|
'mmv.model.EmbedFileInfo',
|
|
|
|
'oojs',
|
|
|
|
'oojs-ui',
|
|
|
|
),
|
|
|
|
|
|
|
|
'messages' => array(
|
|
|
|
'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',
|
|
|
|
'multimediaviewer-download-attribution-cta-header',
|
2014-11-24 22:09:03 +00:00
|
|
|
'multimediaviewer-download-optional-attribution-cta-header',
|
2014-09-16 20:33:05 +00:00
|
|
|
'multimediaviewer-download-attribution-cta',
|
|
|
|
'multimediaviewer-attr-plain',
|
|
|
|
'multimediaviewer-attr-html',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
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-06-26 01:26:49 +00:00
|
|
|
'jquery.throttle-debounce',
|
2014-04-01 01:41:57 +00:00
|
|
|
),
|
2014-04-01 19:02:33 +00:00
|
|
|
|
|
|
|
'messages' => array(
|
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-09-24 21:31:41 +00:00
|
|
|
'multimediaviewer-repository-local',
|
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.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-09-04 23:00:55 +00:00
|
|
|
'mmv.logging.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-06-11 23:14:32 +00:00
|
|
|
'mediawiki.user',
|
2014-03-27 06:05:47 +00:00
|
|
|
'mmv.HtmlUtils',
|
2014-09-04 23:00:55 +00:00
|
|
|
'mmv.logging.ActionLogger',
|
2014-09-05 00:45:36 +00:00
|
|
|
'mmv.logging.AttributionLogger',
|
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.description',
|
2014-02-14 00:36:10 +00:00
|
|
|
'mmv.ui.permission',
|
2014-03-27 06:05:47 +00:00
|
|
|
'mmv.ui.truncatableTextField',
|
2014-03-07 23:53:23 +00:00
|
|
|
'oojs',
|
2014-06-11 02:14:59 +00:00
|
|
|
'jquery.tipsy',
|
2014-11-27 07:19:24 +00:00
|
|
|
'mediawiki.jqueryMsg',
|
2014-02-07 14:47:00 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'messages' => array(
|
2014-04-08 22:43:54 +00:00
|
|
|
'multimediaviewer-commons-subtitle',
|
2014-02-07 14:47:00 +00:00
|
|
|
|
|
|
|
'multimediaviewer-credit',
|
2014-10-29 13:36:08 +00:00
|
|
|
'multimediaviewer-credit-fallback',
|
2014-11-27 07:19:24 +00:00
|
|
|
'multimediaviewer-multiple-authors',
|
2014-12-02 22:49:29 +00:00
|
|
|
'multimediaviewer-multiple-authors-combine',
|
2014-02-07 14:47:00 +00:00
|
|
|
|
|
|
|
'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-12-28 21:19:42 +00:00
|
|
|
'multimediaviewer-permission-link-hide',
|
2014-02-14 00:36:10 +00:00
|
|
|
|
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-06-11 02:14:59 +00:00
|
|
|
'multimediaviewer-optout-mmv',
|
|
|
|
'multimediaviewer-optin-mmv',
|
2014-06-18 00:17:45 +00:00
|
|
|
'multimediaviewer-optout-pending-mmv',
|
|
|
|
'multimediaviewer-optin-pending-mmv',
|
2014-06-11 02:14:59 +00:00
|
|
|
'multimediaviewer-optout-help',
|
|
|
|
'multimediaviewer-optin-help',
|
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-05-31 00:18:12 +00:00
|
|
|
|
|
|
|
'multimediaviewer-title-popup-text',
|
2014-07-03 19:12:59 +00:00
|
|
|
'multimediaviewer-credit-popup-text',
|
|
|
|
'multimediaviewer-title-popup-text-more',
|
|
|
|
'multimediaviewer-credit-popup-text-more',
|
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',
|
|
|
|
|
2014-06-12 23:59:06 +00:00
|
|
|
'multimediaviewer-text-embed-credit-text-tbls',
|
2014-11-24 22:09:03 +00:00
|
|
|
'multimediaviewer-text-embed-credit-text-tbls-nonfree',
|
2014-06-12 23:59:06 +00:00
|
|
|
'multimediaviewer-text-embed-credit-text-tls',
|
2014-11-24 22:09:03 +00:00
|
|
|
'multimediaviewer-text-embed-credit-text-tls-nonfree',
|
2014-06-12 23:59:06 +00:00
|
|
|
'multimediaviewer-text-embed-credit-text-tbs',
|
|
|
|
'multimediaviewer-text-embed-credit-text-tbl',
|
2014-11-24 22:09:03 +00:00
|
|
|
'multimediaviewer-text-embed-credit-text-tbl-nonfree',
|
2014-06-12 23:59:06 +00:00
|
|
|
'multimediaviewer-text-embed-credit-text-tb',
|
|
|
|
'multimediaviewer-text-embed-credit-text-ts',
|
|
|
|
'multimediaviewer-text-embed-credit-text-tl',
|
2014-11-24 22:09:03 +00:00
|
|
|
'multimediaviewer-text-embed-credit-text-tl-nonfree',
|
2014-06-12 23:59:06 +00:00
|
|
|
|
2014-03-19 02:00:26 +00:00
|
|
|
'multimediaviewer-html-embed-credit-text-tbls',
|
2014-11-24 22:09:03 +00:00
|
|
|
'multimediaviewer-html-embed-credit-text-tbls-nonfree',
|
2014-03-19 02:00:26 +00:00
|
|
|
'multimediaviewer-html-embed-credit-text-tls',
|
2014-11-24 22:09:03 +00:00
|
|
|
'multimediaviewer-html-embed-credit-text-tls-nonfree',
|
2014-03-19 02:00:26 +00:00
|
|
|
'multimediaviewer-html-embed-credit-text-tbs',
|
|
|
|
'multimediaviewer-html-embed-credit-text-tbl',
|
2014-11-24 22:09:03 +00:00
|
|
|
'multimediaviewer-html-embed-credit-text-tbl-nonfree',
|
2014-03-19 02:00:26 +00:00
|
|
|
'multimediaviewer-html-embed-credit-text-tb',
|
|
|
|
'multimediaviewer-html-embed-credit-text-ts',
|
|
|
|
'multimediaviewer-html-embed-credit-text-tl',
|
2014-11-24 22:09:03 +00:00
|
|
|
'multimediaviewer-html-embed-credit-text-tl-nonfree',
|
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.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(
|
2014-09-16 20:33:05 +00:00
|
|
|
'mmv.logging.ActionLogger',
|
|
|
|
'mmv.ui.dialog',
|
2014-03-31 16:08:02 +00:00
|
|
|
'oojs',
|
|
|
|
),
|
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-04-14 23:22:28 +00:00
|
|
|
'mmv.routing',
|
2014-03-17 08:07:53 +00:00
|
|
|
'oojs',
|
|
|
|
'oojs-ui',
|
2014-09-05 12:52:53 +00:00
|
|
|
'mmv.logging.ActionLogger',
|
2014-03-17 08:07:53 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'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(
|
2014-06-11 23:14:32 +00:00
|
|
|
'mediawiki.user',
|
2014-03-19 02:00:26 +00:00
|
|
|
'mmv.ui.reuse.tab',
|
2014-09-16 20:33:05 +00:00
|
|
|
'mmv.ui.utils',
|
2014-03-19 02:00:26 +00:00
|
|
|
'oojs',
|
|
|
|
'oojs-ui',
|
|
|
|
'mmv.model.EmbedFileInfo',
|
|
|
|
'mmv.embedFileFormatter',
|
2014-09-05 12:52:53 +00:00
|
|
|
'mmv.logging.ActionLogger',
|
2014-03-19 02:00:26 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'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-09-16 20:33:05 +00:00
|
|
|
'mmv.ui.utils' => $wgMediaViewerResourceTemplate + array(
|
2014-03-31 16:08:02 +00:00
|
|
|
'scripts' => array(
|
2014-09-16 20:33:05 +00:00
|
|
|
'mmv/ui/mmv.ui.utils.js',
|
2014-03-31 16:08:02 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
2014-09-16 20:33:05 +00:00
|
|
|
'mmv.HtmlUtils',
|
|
|
|
'mmv.ui',
|
|
|
|
'oojs',
|
|
|
|
'oojs-ui',
|
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',
|
2014-07-23 23:00:37 +00:00
|
|
|
'mmv.ui.viewingOptions',
|
2014-02-04 23:44:36 +00:00
|
|
|
'oojs',
|
|
|
|
),
|
2014-09-12 18:05:13 +00:00
|
|
|
|
|
|
|
'messages' => array(
|
2014-09-16 20:33:05 +00:00
|
|
|
'multimediaviewer-download-link',
|
2014-09-12 18:05:13 +00:00
|
|
|
'multimediaviewer-reuse-link',
|
2014-07-23 23:00:37 +00:00
|
|
|
'multimediaviewer-options-tooltip',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
'mmv.ui.viewingOptions' => $wgMediaViewerResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'mmv/ui/mmv.ui.viewingOptions.js',
|
|
|
|
),
|
|
|
|
|
|
|
|
'styles' => array(
|
|
|
|
'mmv/ui/mmv.ui.viewingOptions.less',
|
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.ui',
|
|
|
|
'mmv.ui.dialog',
|
|
|
|
'oojs',
|
|
|
|
),
|
|
|
|
|
|
|
|
'messages' => array(
|
2014-10-22 16:20:19 +00:00
|
|
|
'multimediaviewer-options-learn-more',
|
2014-07-23 23:00:37 +00:00
|
|
|
'multimediaviewer-options-dialog-header',
|
|
|
|
'multimediaviewer-option-header-viewer',
|
|
|
|
'multimediaviewer-option-header-filepage',
|
|
|
|
'multimediaviewer-option-desc-viewer',
|
|
|
|
'multimediaviewer-option-desc-filepage',
|
|
|
|
'multimediaviewer-option-submit-button',
|
|
|
|
'multimediaviewer-option-cancel-button',
|
|
|
|
'multimediaviewer-options-text-header',
|
|
|
|
'multimediaviewer-enable-alert',
|
|
|
|
'multimediaviewer-options-text-body',
|
|
|
|
'multimediaviewer-disable-confirmation-header',
|
|
|
|
'multimediaviewer-disable-confirmation-text',
|
|
|
|
'multimediaviewer-enable-dialog-header',
|
|
|
|
'multimediaviewer-enable-text-header',
|
|
|
|
'multimediaviewer-enable-submit-button',
|
|
|
|
'multimediaviewer-enable-confirmation-header',
|
|
|
|
'multimediaviewer-enable-confirmation-text',
|
2014-09-12 18:05:13 +00:00
|
|
|
),
|
2014-04-07 04:34:09 +00:00
|
|
|
),
|
2014-02-04 23:44:36 +00:00
|
|
|
|
2014-10-03 09:15:28 +00:00
|
|
|
'mmv.ui.tipsyDialog' => $wgMediaViewerResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'mmv/ui/mmv.ui.tipsyDialog.js',
|
|
|
|
),
|
|
|
|
|
|
|
|
'styles' => array(
|
|
|
|
'mmv/ui/mmv.ui.tipsyDialog.less',
|
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.ui',
|
|
|
|
'oojs',
|
|
|
|
'jquery.tipsy',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
2014-09-04 23:00:55 +00:00
|
|
|
'mmv.logging.Logger' => $wgMediaViewerResourceTemplate + array(
|
2014-02-07 14:47:00 +00:00
|
|
|
'scripts' => array(
|
2014-09-04 23:00:55 +00:00
|
|
|
'mmv/logging/mmv.logging.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-11-21 10:07:40 +00:00
|
|
|
'mmv.logging.PerformanceLogger' => $wgMediaViewerResourceTemplate + array(
|
2014-02-06 16:17:38 +00:00
|
|
|
'scripts' => array(
|
2014-11-21 10:07:40 +00:00
|
|
|
'mmv/logging/mmv.logging.PerformanceLogger.js',
|
2014-02-06 16:17:38 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
2014-02-11 13:25:39 +00:00
|
|
|
'mmv.base',
|
2014-09-04 23:00:55 +00:00
|
|
|
'mmv.logging.Logger',
|
2014-05-19 09:24:54 +00:00
|
|
|
'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-09-04 23:00:55 +00:00
|
|
|
'mmv.logging.Api' => $wgMediaViewerResourceTemplate + array(
|
2014-02-15 02:15:54 +00:00
|
|
|
'scripts' => array(
|
2014-09-04 23:00:55 +00:00
|
|
|
'mmv/logging/mmv.logging.Api.js',
|
2014-02-15 02:15:54 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mediawiki.api',
|
|
|
|
'mmv.base',
|
2014-09-04 23:00:55 +00:00
|
|
|
'mmv.logging.Logger',
|
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-06-10 23:29:50 +00:00
|
|
|
'mmv.Config' => $wgMediaViewerResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'mmv/mmv.Config.js',
|
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.base',
|
2014-06-11 23:14:32 +00:00
|
|
|
'mediawiki.user',
|
2014-06-10 23:29:50 +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-09-04 23:00:55 +00:00
|
|
|
'mmv.logging.Api',
|
2014-02-25 02:28:49 +00:00
|
|
|
'mmv.base',
|
2014-01-31 00:06:33 +00:00
|
|
|
'mmv.lightboximage',
|
2014-09-04 23:00:55 +00:00
|
|
|
'mmv.logging.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-09-04 23:00:55 +00:00
|
|
|
'mmv.logging.DurationLogger',
|
2014-09-26 18:37:53 +00:00
|
|
|
'mmv.logging.DimensionLogger',
|
2014-11-20 23:39:29 +00:00
|
|
|
'mmv.logging.ViewLogger',
|
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',
|
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-10-19 19:02:49 +00:00
|
|
|
'mediawiki.ui.icon',
|
2014-02-17 15:09:23 +00:00
|
|
|
'mediawiki.Title',
|
2014-06-10 23:29:50 +00:00
|
|
|
'mmv.Config',
|
2014-09-04 23:00:55 +00:00
|
|
|
'mmv.logging.ActionLogger',
|
2014-03-26 23:59:04 +00:00
|
|
|
'mmv.HtmlUtils',
|
2014-09-04 23:00:55 +00:00
|
|
|
'mmv.logging.DurationLogger',
|
2014-10-03 09:15:28 +00:00
|
|
|
'jquery.hashchange',
|
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-10-19 19:02:49 +00:00
|
|
|
'multimediaviewer-view-config',
|
2014-10-03 09:15:28 +00:00
|
|
|
'multimediaviewer-disable-info-title',
|
|
|
|
'multimediaviewer-disable-info',
|
2014-04-08 21:01:07 +00:00
|
|
|
),
|
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-09-04 23:00:55 +00:00
|
|
|
'mmv.logging.ActionLogger' => $wgMediaViewerResourceTemplate + array(
|
2014-05-19 09:24:54 +00:00
|
|
|
'scripts' => array(
|
2014-09-04 23:00:55 +00:00
|
|
|
'mmv/logging/mmv.logging.ActionLogger.js',
|
2014-05-19 09:24:54 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.base',
|
2014-09-04 23:00:55 +00:00
|
|
|
'mmv.logging.Logger',
|
2014-05-19 09:24:54 +00:00
|
|
|
'oojs'
|
2014-09-05 00:45:36 +00:00
|
|
|
),
|
2014-05-19 09:24:54 +00:00
|
|
|
),
|
|
|
|
|
2014-09-04 23:00:55 +00:00
|
|
|
'mmv.logging.DurationLogger' => $wgMediaViewerResourceTemplate + array(
|
2014-04-28 16:11:55 +00:00
|
|
|
'scripts' => array(
|
2014-09-04 23:00:55 +00:00
|
|
|
'mmv/logging/mmv.logging.DurationLogger.js',
|
2014-04-28 16:11:55 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
2014-05-19 09:24:54 +00:00
|
|
|
'mmv.base',
|
2014-09-04 23:00:55 +00:00
|
|
|
'mmv.logging.Logger',
|
2014-06-11 23:14:32 +00:00
|
|
|
'oojs',
|
|
|
|
'mediawiki.user',
|
2014-09-05 00:45:36 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
'mmv.logging.AttributionLogger' => $wgMediaViewerResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'mmv/logging/mmv.logging.AttributionLogger.js',
|
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.base',
|
|
|
|
'mmv.logging.Logger',
|
|
|
|
'oojs',
|
|
|
|
'mediawiki.user',
|
|
|
|
),
|
2014-04-28 16:11:55 +00:00
|
|
|
),
|
|
|
|
|
2014-09-26 18:37:53 +00:00
|
|
|
'mmv.logging.DimensionLogger' => $wgMediaViewerResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'mmv/logging/mmv.logging.DimensionLogger.js',
|
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mmv.base',
|
|
|
|
'mmv.logging.Logger',
|
|
|
|
'oojs',
|
|
|
|
'jquery.hidpi',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
2014-11-20 23:39:29 +00:00
|
|
|
'mmv.logging.ViewLogger' => $wgMediaViewerResourceTemplate + array(
|
|
|
|
'scripts' => array(
|
|
|
|
'mmv/logging/mmv.logging.ViewLogger.js',
|
|
|
|
),
|
|
|
|
|
|
|
|
'dependencies' => array(
|
|
|
|
'mediawiki.Uri',
|
|
|
|
'mmv.base',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
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-06-11 23:14:32 +00:00
|
|
|
'mmv.base',
|
|
|
|
'mediawiki.user',
|
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-10-11 23:00:05 +00:00
|
|
|
$wgHooks['EventLoggingRegisterSchemas'][] = function( array &$schemas ) {
|
|
|
|
$schemas += array(
|
2015-01-01 02:24:32 +00:00
|
|
|
'MediaViewer' => 10867062,
|
2014-12-17 10:31:45 +00:00
|
|
|
'MultimediaViewerNetworkPerformance' => 10774577,
|
2014-11-05 10:40:31 +00:00
|
|
|
'MultimediaViewerDuration' => 10427980,
|
2014-10-11 23:00:05 +00:00
|
|
|
'MultimediaViewerAttribution' => 9758179,
|
|
|
|
'MultimediaViewerDimensions' => 10014238,
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
$wgExtensionFunctions[] = function () {
|
2014-10-11 23:00:05 +00:00
|
|
|
global $wgResourceModules, $wgDefaultUserOptions,
|
|
|
|
$wgMediaViewerEnableByDefault;
|
2014-03-07 01:56:56 +00:00
|
|
|
|
2014-04-07 04:34:09 +00:00
|
|
|
if ( isset( $wgResourceModules['ext.eventLogging'] ) ) {
|
2014-09-04 23:00:55 +00:00
|
|
|
$wgResourceModules['mmv.logging.ActionLogger']['dependencies'][] = 'ext.eventLogging';
|
2014-11-21 10:07:40 +00:00
|
|
|
$wgResourceModules['mmv.logging.PerformanceLogger']['dependencies'][] = 'ext.eventLogging';
|
2014-09-04 23:00:55 +00:00
|
|
|
$wgResourceModules['mmv.logging.DurationLogger']['dependencies'][] = 'ext.eventLogging';
|
2014-09-26 18:37:53 +00:00
|
|
|
$wgResourceModules['mmv.logging.AttributionLogger']['dependencies'][] = 'ext.eventLogging';
|
|
|
|
$wgResourceModules['mmv.logging.DimensionLogger']['dependencies'][] = 'ext.eventLogging';
|
2014-03-07 01:56:56 +00:00
|
|
|
}
|
2014-09-25 04:28:39 +00:00
|
|
|
|
|
|
|
if ( $wgMediaViewerEnableByDefault ) {
|
|
|
|
$wgDefaultUserOptions['multimediaviewer-enable'] = true;
|
|
|
|
}
|
|
|
|
|
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';
|
|
|
|
|
|
|
|
$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',
|
|
|
|
);
|