__DIR__ . '/modules', 'remoteExtPath' => 'Echo/modules', ); $mobileReadyTemplate = array( 'targets' => array( 'desktop', 'mobile' ), ); $wgResourceModules += array( // ext.echo.base is used by mobile notifications as well, so be sure not to add any // dependencies that do not target mobile. 'ext.echo.base' => $echoResourceTemplate + $mobileReadyTemplate + array( 'position' => 'top', 'styles' => 'base/ext.echo.base.less', 'scripts' => array( 'base/ext.echo.base.js', ), 'messages' => array( 'echo-error-preference', 'echo-error-token', ), ), 'ext.echo.overlay' => $echoResourceTemplate + $mobileReadyTemplate + array( 'scripts' => array( 'overlay/ext.echo.overlay.js', ), 'skinStyles' => array( 'modern' => 'overlay/ext.echo.overlay.modern.css', 'monobook' => 'overlay/ext.echo.overlay.monobook.css', ), 'dependencies' => array( 'mediawiki.util', 'mediawiki.language', 'mediawiki.ui.anchor', 'ext.echo.base', 'mediawiki.api', 'mediawiki.jqueryMsg', ), 'messages' => array( 'echo-overlay-link', 'echo-mark-all-as-read', 'echo-more-info', 'echo-feedback', 'echo-notification-alert', 'echo-notification-message', 'echo-notification-alert-text-only', 'echo-notification-message-text-only', 'echo-email-batch-bullet' ), ), 'ext.echo.overlay.init' => $echoResourceTemplate + array( 'styles' => array( 'overlay/ext.echo.overlay.less', ), 'dependencies' => array( 'ext.echo.overlay', ), 'scripts' => array( 'overlay/ext.echo.overlay.init.js', ), ), 'ext.echo.special' => $echoResourceTemplate + array( 'scripts' => array( 'special/ext.echo.special.js', ), 'styles' => 'special/ext.echo.special.less', 'dependencies' => array( 'mediawiki.ui.button', 'ext.echo.base', ), 'messages' => array( 'echo-load-more-error', 'echo-more-info', 'echo-feedback', ), 'position' => 'top', ), 'ext.echo.alert' => $echoResourceTemplate + array( 'position' => 'top', 'styles' => 'alert/ext.echo.alert.less', 'skinStyles' => array( 'modern' => 'alert/ext.echo.alert.modern.css', 'monobook' => 'alert/ext.echo.alert.monobook.css', ), ), 'ext.echo.badge' => $echoResourceTemplate + array( 'position' => 'top', 'styles' => 'badge/ext.echo.badge.less', 'skinStyles' => array( 'modern' => 'badge/ext.echo.badge.modern.css', 'monobook' => 'badge/ext.echo.badge.monobook.css', ), ), );