MinervaNeue
A responsive mobile first skin
Loading...
Searching...
No Matches
MediaWiki\Minerva\Skins\SkinMinerva Class Reference

Minerva: Born from the godhead of Jupiter with weapons! A skin that works on both desktop and mobile. More...

+ Inheritance diagram for MediaWiki\Minerva\Skins\SkinMinerva:
+ Collaboration diagram for MediaWiki\Minerva\Skins\SkinMinerva:

Public Member Functions

 getTemplateData ()
 @inheritDoc
 
 doEditSectionLink (Title $nt, $section, $tooltip, Language $lang)
 Overrides Skin::doEditSectionLink.
 
 getPageClasses ( $title)
 Takes a title and returns classes to apply to the body tag.
 
 getUserPageHelper ()
 
 getDefaultModules ()
 Returns the javascript entry modules to load.
 

Static Public Member Functions

static getNotificationButtons (array $notifications)
 Prepares the notification badges for the Button template.
 

Public Attributes

const LEAD_SECTION_NUMBER = 0
 @const LEAD_SECTION_NUMBER integer which corresponds to the lead section in editing mode
 
 $skinname = 'minerva'
 
 $template = 'MinervaTemplate'
 

Protected Member Functions

 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 ()
 
 getRelativeHistoryLink (Title $title, $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 ( $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 ( $talkTitle, $label)
 Returns an array with details for a talk button.
 
 getJsConfigVars ()
 @inheritDoc
 
 getSkinStyles ()
 Provide styles required to present the server rendered page in this skin.
 

Detailed Description

Minerva: Born from the godhead of Jupiter with weapons! A skin that works on both desktop and mobile.

Member Function Documentation

◆ doEditSectionLink()

MediaWiki\Minerva\Skins\SkinMinerva::doEditSectionLink ( Title $nt,
$section,
$tooltip,
Language $lang )

Overrides Skin::doEditSectionLink.

Parameters
Title$ntThe title being linked to (may not be the same as the current page, if the section is included from a template)
string$section
string | null$tooltip
Language$lang
Returns
string

◆ 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

◆ 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$titleThe 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$titleThe 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$titleThe Title object of the page being viewed
Returns
string

◆ getJsConfigVars()

MediaWiki\Minerva\Skins\SkinMinerva::getJsConfigVars ( )
protected

@inheritDoc

Returns
array

◆ 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
Title$title
Returns
string

◆ getRelativeHistoryLink()

MediaWiki\Minerva\Skins\SkinMinerva::getRelativeHistoryLink ( Title $title,
$timestamp )
protected

Get a history link which describes author and relative time of last edit.

Parameters
Title$titleThe Title object of the page being viewed
string$timestamp
Returns
array

◆ getSkinStyles()

MediaWiki\Minerva\Skins\SkinMinerva::getSkinStyles ( )
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

◆ getSubjectPage()

MediaWiki\Minerva\Skins\SkinMinerva::getSubjectPage ( )
protected
Returns
string

◆ getTaglineHtml()

MediaWiki\Minerva\Skins\SkinMinerva::getTaglineHtml ( )
protected

Returns the HTML representing the tagline.

Returns
string HTML for tagline

◆ getTalkButton()

MediaWiki\Minerva\Skins\SkinMinerva::getTalkButton ( $talkTitle,
$label )
protected

Returns an array with details for a talk button.

Parameters
Title$talkTitleTitle object of the talk page
string$labelButton label
Returns
array

◆ getUserPageHelper()

MediaWiki\Minerva\Skins\SkinMinerva::getUserPageHelper ( )
Returns
SkinUserPageHelper

◆ prepareBanners()

MediaWiki\Minerva\Skins\SkinMinerva::prepareBanners ( $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$siteNoticeHTML 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: