mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-28 01:10:04 +00:00
ce59f92489
Change-Id: I53f77a0c802ae3b9582c51a07fc56ad56e3fd53b
65 lines
1.9 KiB
PHP
65 lines
1.9 KiB
PHP
<?php
|
|
/*
|
|
* This file is part of the MediaWiki extension Popups.
|
|
*
|
|
* Popups 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.
|
|
*
|
|
* Popups 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 Popups. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
* This extension requires that the PageImages and TextExtracts
|
|
* extensions have also been installed.
|
|
*
|
|
* @file
|
|
* @ingroup extensions
|
|
*/
|
|
|
|
$wgExtensionCredits['other'][] = array(
|
|
'author' => array( 'Prateek Saxena', 'Yair Rand' ),
|
|
'descriptionmsg' => 'popups-desc',
|
|
'name' => 'Popups',
|
|
'path' => __FILE__,
|
|
'url' => 'https://www.mediawiki.org/wiki/Extension:Popups',
|
|
);
|
|
|
|
$localBasePath = dirname( __DIR__ ) . '/Popups';
|
|
$remoteExtPath = 'Popups';
|
|
|
|
$wgResourceModules = array_merge( $wgResourceModules, array(
|
|
"ext.popups" => array(
|
|
'scripts' => array(
|
|
'resources/ext.popups.core.js',
|
|
),
|
|
'styles' => array(
|
|
'resources/ext.popups.core.less',
|
|
'resources/ext.popups.animation.less',
|
|
),
|
|
'dependencies' => array(
|
|
'mediawiki.api',
|
|
),
|
|
'messages' => array(
|
|
'popups-edited-seconds',
|
|
'popups-edited-minutes',
|
|
'popups-edited-hours',
|
|
'popups-edited-days',
|
|
'popups-edited-years',
|
|
),
|
|
'remoteExtPath' => $remoteExtPath,
|
|
'localBasePath' => $localBasePath,
|
|
),
|
|
) );
|
|
|
|
$wgAutoloadClasses['PopupsHooks'] = __DIR__ . '/Popups.hooks.php';
|
|
$wgExtensionMessagesFiles['Popups'] = __DIR__ . '/Popups.i18n.php';
|
|
|
|
$wgHooks['GetBetaFeaturePreferences'][] = 'PopupsHooks::getPreferences';
|
|
$wgHooks['BeforePageDisplay'][] = 'PopupsHooks::onBeforePageDisplay';
|