MinervaNeue
A responsive mobile first skin
|
Hook handlers for Minerva skin. More...
Public Member Functions | |
onResourceLoaderRegisterModules (ResourceLoader $resourceLoader) | |
ResourceLoaderRegisterModules hook handler. | |
onFetchChangesList ( $user, $skin, &$list, $groups) | |
Disable recent changes enhanced mode (table mode) | |
onSpecialPageBeforeExecute ( $special, $subpage) | |
Invocation of hook SpecialPageBeforeExecute. | |
onUserLogoutComplete ( $user, &$inject_html, $oldName) | |
UserLogoutComplete hook handler. | |
onResourceLoaderGetConfigVars (array &$vars, $skin, Config $config) | |
ResourceLoaderGetConfigVars hook handler. | |
onOutputPageBodyAttributes ( $out, $skin, &$bodyAttrs) | |
Modifies the <body> element's attributes. | |
onSkinPageReadyConfig (Context $context, array &$config) | |
SkinPageReadyConfig hook handler. | |
Static Public Member Functions | |
static | onPreferencesGetLayout (&$useMobileLayout, $skin) |
PreferencesGetLayout hook handler. | |
static | setMinervaSkinOptions (MobileContext $mobileContext, Skin $skin) |
Set the skin options for Minerva. | |
Public Attributes | |
const | FEATURE_OVERFLOW_PAGE_ACTIONS = 'MinervaOverflowInPageActions' |
Hook handlers for Minerva skin.
Hook handler method names should be in the form of: on<HookName>()
MediaWiki\Minerva\Hooks::onFetchChangesList | ( | $user, | |
$skin, | |||
& | $list, | ||
$groups ) |
Disable recent changes enhanced mode (table mode)
User | $user | |
Skin | $skin | |
ChangesList | null | &$list | |
ChangesListFilterGroup[] | $groups |
MediaWiki\Minerva\Hooks::onOutputPageBodyAttributes | ( | $out, | |
$skin, | |||
& | $bodyAttrs ) |
Modifies the <body>
element's attributes.
By default, the class
attribute is set to the output's "bodyClassName" property.
OutputPage | $out | |
Skin | $skin | |
string[] | &$bodyAttrs |
|
static |
PreferencesGetLayout hook handler.
Use mobile layout in Special:Preferences
bool | &$useMobileLayout | |
Skin | string | $skin |
MediaWiki\Minerva\Hooks::onResourceLoaderGetConfigVars | ( | array & | $vars, |
$skin, | |||
Config | $config ) |
ResourceLoaderGetConfigVars hook handler.
Used for setting JS variables which are pulled in dynamically with RL instead of embedded directly on the page with a script tag. These vars have a shorter cache-life than those in getJsConfigVars
.
array | &$vars | Array of variables to be added into the output of the RL startup module. |
string | $skin | |
Config | $config |
MediaWiki\Minerva\Hooks::onResourceLoaderRegisterModules | ( | ResourceLoader | $resourceLoader | ) |
ResourceLoaderRegisterModules hook handler.
Registers:
ResourceLoader | $resourceLoader |
MediaWiki\Minerva\Hooks::onSkinPageReadyConfig | ( | Context | $context, |
array & | $config ) |
SkinPageReadyConfig hook handler.
Disable collapsible on page load
Context | $context | |
mixed[] | &$config | Associative array of configurable options |
MediaWiki\Minerva\Hooks::onSpecialPageBeforeExecute | ( | $special, | |
$subpage ) |
Invocation of hook SpecialPageBeforeExecute.
We use this hook to ensure that login/account creation pages are redirected to HTTPS if they are not accessed via HTTPS and $wgSecureLogin == true - but only when using the mobile site.
SpecialPage | $special | |
string | $subpage |
MediaWiki\Minerva\Hooks::onUserLogoutComplete | ( | $user, | |
& | $inject_html, | ||
$oldName ) |
UserLogoutComplete hook handler.
Resets skin options if a user logout occurs - this is necessary as the RequestContextCreateSkinMobile hook runs before the UserLogout hook.
User | $user | |
string | &$inject_html | |
string | $oldName |
|
static |
Set the skin options for Minerva.
MobileContext | $mobileContext | |
Skin | $skin |