. * * 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' => 'resources/ext.popups.core.js', 'styles' => array( 'resources/ext.popups.core.less', 'resources/ext.popups.animation.less', ), 'dependencies' => array( 'mediawiki.api', ), 'remoteExtPath' => $remoteExtPath, 'localBasePath' => $localBasePath, ), ) ); $wgAutoloadClasses['PopupsHooks'] = __DIR__ . '/Popups.hooks.php'; $wgExtensionMessagesFiles['Popups'] = __DIR__ . '/Popups.i18n.php'; $wgHooks['BeforePageDisplay'][] = 'PopupsHooks::onBeforePageDisplay';