. * * This extension requires that the PageImages and TextExtracts * extensions have also been installed. * * @file * @ingroup extensions */ $wgExtensionCredits['betafeatures'][] = 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', 'mediawiki.jqueryMsg', ), 'messages' => array( 'popups-edited-seconds', 'popups-edited-minutes', 'popups-edited-hours', 'popups-edited-days', 'popups-edited-years', 'popups-redirects', ), 'remoteExtPath' => $remoteExtPath, 'localBasePath' => $localBasePath, ), 'schema.Popups' => array( 'class' => 'ResourceLoaderSchemaModule', 'schema' => 'Popups', 'revision' => 7536956, ), ) ); $wgAutoloadClasses['PopupsHooks'] = __DIR__ . '/Popups.hooks.php'; $wgExtensionMessagesFiles['Popups'] = __DIR__ . '/Popups.i18n.php'; $wgHooks['GetBetaFeaturePreferences'][] = 'PopupsHooks::getPreferences'; $wgHooks['BeforePageDisplay'][] = 'PopupsHooks::onBeforePageDisplay';