Minerva: Born from the godhead of Jupiter with weapons! A skin that works on both desktop and mobile.
More...
|
| __construct (GenderCache $genderCache, LinkRenderer $linkRenderer, LanguagesHelper $languagesHelper, Definitions $definitions, PageActions $pageActions, MinervaPagePermissions $permissions, SkinOptions $skinOptions, SkinUserPageHelper $skinUserPageHelper, NamespaceInfo $namespaceInfo, RevisionLookup $revisionLookup, UserIdentityUtils $userIdentityUtils, UserOptionsManager $userOptionsManager, $options=[]) |
|
| getTemplateData () |
| @inheritDoc
|
|
| getPageClasses ( $title) |
| Takes a title and returns classes to apply to the body tag.
|
|
| getHtmlElementAttributes () |
| Provides skin-specific modifications to the HTML element attributes.
|
|
| getDefaultModules () |
| Returns the javascript entry modules to load.
|
|
|
static | getNotificationButtons (array $notifications) |
| Prepares the notification badges for the Button template.
|
|
|
const | LEAD_SECTION_NUMBER = 0 |
| @const LEAD_SECTION_NUMBER integer which corresponds to the lead section in editing mode
|
|
| $skinname = 'minerva' |
|
| $template = 'MinervaTemplate' |
|
|
| runOnSkinTemplateNavigationHooks (SkinTemplate $skin, &$contentNavigationUrls) |
| Caches content navigation urls locally for use inside getTemplateData.
|
|
| getMainMenu () |
| Build the Main Menu Director by passing the skin options.
|
|
| getSubjectPage () |
|
| doEditSectionLinksHTML (array $links, Language $lang) |
| Modifies the template data before parsing in SkinMustache.
|
|
| getRelativeHistoryLink (Title $title, string $timestamp) |
| Get a history link which describes author and relative time of last edit.
|
|
| getGenericHistoryLink (Title $title) |
| Get a history link which makes no reference to user or last edited time.
|
|
| getHistoryUrl (Title $title) |
| Get the URL for the history page for the given title using Special:History when available.
|
|
| getHistoryLink (Title $title) |
| Prepare the content for the 'last edited' message, e.g.
|
|
| getTaglineHtml () |
| Returns the HTML representing the tagline.
|
|
| prepareBanners (string $siteNotice) |
| Load internal banner content to show in pre content in template Beware of HTML caching when using this function.
|
|
| getLanguageButton () |
| Returns an array with details for a language button.
|
|
| getTalkButton (Title $talkTitle, string $label) |
| Returns an array with details for a talk button.
|
|
| getSecondaryActions (array $contentNavigationUrls) |
| Returns an array of links for page secondary actions.
|
|
| getJsConfigVars () |
| @inheritDoc
|
|
| getPageSpecificStyles () |
| Provide styles required to present the server rendered page in this skin.
|
|
| getFeatureSpecificStyles () |
| Provide styles required to present the server rendered page with related features in this skin.
|
|
Minerva: Born from the godhead of Jupiter with weapons! A skin that works on both desktop and mobile.
◆ __construct()
MediaWiki\Minerva\Skins\SkinMinerva::__construct |
( |
GenderCache | $genderCache, |
|
|
LinkRenderer | $linkRenderer, |
|
|
LanguagesHelper | $languagesHelper, |
|
|
Definitions | $definitions, |
|
|
PageActions | $pageActions, |
|
|
MinervaPagePermissions | $permissions, |
|
|
SkinOptions | $skinOptions, |
|
|
SkinUserPageHelper | $skinUserPageHelper, |
|
|
NamespaceInfo | $namespaceInfo, |
|
|
RevisionLookup | $revisionLookup, |
|
|
UserIdentityUtils | $userIdentityUtils, |
|
|
UserOptionsManager | $userOptionsManager, |
|
|
| $options = [] ) |
- Parameters
-
GenderCache | $genderCache | |
LinkRenderer | $linkRenderer | |
LanguagesHelper | $languagesHelper | |
Definitions | $definitions | |
PageActions | $pageActions | |
MinervaPagePermissions | $permissions | |
SkinOptions | $skinOptions | |
SkinUserPageHelper | $skinUserPageHelper | |
NamespaceInfo | $namespaceInfo | |
RevisionLookup | $revisionLookup | |
UserIdentityUtils | $userIdentityUtils | |
UserOptionsManager | $userOptionsManager | |
array | $options | |
◆ doEditSectionLinksHTML()
MediaWiki\Minerva\Skins\SkinMinerva::doEditSectionLinksHTML |
( |
array | $links, |
|
|
Language | $lang ) |
|
finalprotected |
Modifies the template data before parsing in SkinMustache.
@inheritDoc
◆ getDefaultModules()
MediaWiki\Minerva\Skins\SkinMinerva::getDefaultModules |
( |
| ) |
|
Returns the javascript entry modules to load.
Only modules that need to be overriden or added conditionally should be placed here.
- Returns
- array
◆ getFeatureSpecificStyles()
MediaWiki\Minerva\Skins\SkinMinerva::getFeatureSpecificStyles |
( |
| ) |
|
|
protected |
Provide styles required to present the server rendered page with related features in this skin.
Additional styles may be loaded dynamically by the client.
Any styles returned by this method are loaded on the critical rendering path as linked stylesheets. I.e., they are required to load on the client before first paint.
- Returns
- array
◆ getGenericHistoryLink()
MediaWiki\Minerva\Skins\SkinMinerva::getGenericHistoryLink |
( |
Title | $title | ) |
|
|
protected |
Get a history link which makes no reference to user or last edited time.
- Parameters
-
Title | $title | The Title object of the page being viewed |
- Returns
- array
◆ getHistoryLink()
MediaWiki\Minerva\Skins\SkinMinerva::getHistoryLink |
( |
Title | $title | ) |
|
|
protected |
Prepare the content for the 'last edited' message, e.g.
'Last edited on 30 August 2013, at 23:31'. This message is different for the main page since main page content is typically transcluded rather than edited directly.
The relative time is only rendered on the latest revision. For older revisions the last modified information will not render with a relative time nor will it show the name of the editor.
- Parameters
-
Title | $title | The Title object of the page being viewed |
- Returns
- array|null
◆ getHistoryUrl()
MediaWiki\Minerva\Skins\SkinMinerva::getHistoryUrl |
( |
Title | $title | ) |
|
|
protected |
Get the URL for the history page for the given title using Special:History when available.
- Parameters
-
Title | $title | The Title object of the page being viewed |
- Returns
- string
◆ getHtmlElementAttributes()
MediaWiki\Minerva\Skins\SkinMinerva::getHtmlElementAttributes |
( |
| ) |
|
Provides skin-specific modifications to the HTML element attributes.
Currently only used for adding the night mode class
- Returns
- array
◆ getJsConfigVars()
MediaWiki\Minerva\Skins\SkinMinerva::getJsConfigVars |
( |
| ) |
|
|
protected |
◆ getLanguageButton()
MediaWiki\Minerva\Skins\SkinMinerva::getLanguageButton |
( |
| ) |
|
|
protected |
Returns an array with details for a language button.
- Returns
- array
◆ getMainMenu()
MediaWiki\Minerva\Skins\SkinMinerva::getMainMenu |
( |
| ) |
|
|
protected |
Build the Main Menu Director by passing the skin options.
- Returns
- MainMenuDirector
◆ getPageClasses()
MediaWiki\Minerva\Skins\SkinMinerva::getPageClasses |
( |
| $title | ) |
|
Takes a title and returns classes to apply to the body tag.
- Parameters
-
- Returns
- string
◆ getPageSpecificStyles()
MediaWiki\Minerva\Skins\SkinMinerva::getPageSpecificStyles |
( |
| ) |
|
|
protected |
Provide styles required to present the server rendered page in this skin.
Additional styles may be loaded dynamically by the client.
Any styles returned by this method are loaded on the critical rendering path as linked stylesheets. I.e., they are required to load on the client before first paint.
- Returns
- array
◆ getRelativeHistoryLink()
MediaWiki\Minerva\Skins\SkinMinerva::getRelativeHistoryLink |
( |
Title | $title, |
|
|
string | $timestamp ) |
|
protected |
Get a history link which describes author and relative time of last edit.
- Parameters
-
Title | $title | The Title object of the page being viewed |
string | $timestamp | |
- Returns
- array
◆ getSecondaryActions()
MediaWiki\Minerva\Skins\SkinMinerva::getSecondaryActions |
( |
array | $contentNavigationUrls | ) |
|
|
protected |
Returns an array of links for page secondary actions.
- Parameters
-
array | $contentNavigationUrls | |
- Returns
- array|null
◆ getSubjectPage()
MediaWiki\Minerva\Skins\SkinMinerva::getSubjectPage |
( |
| ) |
|
|
protected |
◆ getTaglineHtml()
MediaWiki\Minerva\Skins\SkinMinerva::getTaglineHtml |
( |
| ) |
|
|
protected |
Returns the HTML representing the tagline.
- Returns
- string HTML for tagline
◆ getTalkButton()
MediaWiki\Minerva\Skins\SkinMinerva::getTalkButton |
( |
Title | $talkTitle, |
|
|
string | $label ) |
|
protected |
Returns an array with details for a talk button.
- Parameters
-
Title | $talkTitle | Title object of the talk page |
string | $label | Button label |
- Returns
- array
◆ prepareBanners()
MediaWiki\Minerva\Skins\SkinMinerva::prepareBanners |
( |
string | $siteNotice | ) |
|
|
protected |
Load internal banner content to show in pre content in template Beware of HTML caching when using this function.
Content set as "internalbanner"
- Parameters
-
string | $siteNotice | HTML fragment |
- Returns
- array
◆ runOnSkinTemplateNavigationHooks()
MediaWiki\Minerva\Skins\SkinMinerva::runOnSkinTemplateNavigationHooks |
( |
SkinTemplate | $skin, |
|
|
& | $contentNavigationUrls ) |
|
protected |
Caches content navigation urls locally for use inside getTemplateData.
@inheritDoc
The documentation for this class was generated from the following file: