MediaWiki  1.29.2
ModernTemplate Class Reference
Inheritance diagram for ModernTemplate:
Collaboration diagram for ModernTemplate:

Public Member Functions

 execute ()
 Template filter callback for Modern skin. More...
 
- Public Member Functions inherited from MonoBookTemplate
 cactions ()
 Prints the content actions (cactions) bar. More...
 
 customBox ( $bar, $cont)
 
 languageBox ()
 
 searchBox ()
 
 toolbox ()
 
- Public Member Functions inherited from BaseTemplate
 getFooterIcons ( $option=null)
 Returns an array of footer icons filtered down by options relevant to how the skin wishes to display them. More...
 
 getFooterLinks ( $option=null)
 Returns an array of footerlinks trimmed down to only those footer links that are valid. More...
 
 getIndicators ()
 Get the suggested HTML for page status indicators: icons (or short text snippets) usually displayed in the top-right corner of the page, outside of the main content. More...
 
 getMsg ( $name)
 Get a Message object with its context set. More...
 
 getPersonalTools ()
 Create an array of personal tools items from the data in the quicktemplate stored by SkinTemplate. More...
 
 getSidebar ( $options=[])
 
 getToolbox ()
 Create an array of common toolbox items from the data in the quicktemplate stored by SkinTemplate. More...
 
 getTrail ()
 Get the basic end-page trail including bottomscripts, reporttime, and debug stuff. More...
 
 makeLink ( $key, $item, $options=[])
 Makes a link, usually used by makeListItem to generate a link for an item in a list used in navigation lists, portlets, portals, sidebars, etc... More...
 
 makeListItem ( $key, $item, $options=[])
 Generates a list item for a navigation, portlet, portal, sidebar... More...
 
 makeSearchButton ( $mode, $attrs=[])
 
 makeSearchInput ( $attrs=[])
 
 msg ( $str)
 
 msgHtml ( $str)
 
 msgWiki ( $str)
 An ugly, ugly hack. More...
 
 printTrail ()
 Output getTrail. More...
 
- Public Member Functions inherited from QuickTemplate
 __construct (Config $config=null)
 
 extend ( $name, $value)
 extends the value of data with name $name with the value $value More...
 
 get ( $name, $default=null)
 Gets the template data requested. More...
 
 getHTML ()
 Fetch the output of a QuickTemplate and return it. More...
 
 getSkin ()
 Get the Skin object related to this object. More...
 
 haveData ( $str)
 
 haveMsg ( $str)
 
 html ( $str)
 
 set ( $name, $value)
 Sets the value $value to $name. More...
 
 setRef ( $name, &$value)
 
 setTranslator (&$t)
 
 text ( $str)
 

Additional Inherited Members

- Public Attributes inherited from MonoBookTemplate
$this msg('personaltools') $this html('userlangattributes') $personalTools = $this->getPersonalTools()
 
 $validFooterIcons = $this->getFooterIcons( 'icononly' )
 
 $validFooterLinks = $this->getFooterLinks( 'flat' )
 
if(count( $validFooterIcons)+count( $validFooterLinks) > 0) else
 
if(array_key_exists( 'uls', $personalTools)) if(! $this->getSkin() ->getUser() ->isLoggedIn() &&User::groupHasPermission(' *', 'edit') foreach )($personalTools as $key=> $item)
 
foreach( $validFooterIcons as $blockName=> $footerIcons) foreach( $footerIcons as $icon) if(count( $validFooterLinks) > 0) $this html ( $aLink)
 
$this text ( 'searchtitle')
 
- Protected Member Functions inherited from MonoBookTemplate
 renderPortals ( $sidebar)
 
- Protected Member Functions inherited from BaseTemplate
 getAfterPortlet ( $name)
 Allows extensions to hook into known portlets and add stuff to them. More...
 
 getClear ()
 Get a div with the core visualClear class, for clearing floats. More...
 
 getFooter ( $iconStyle='icononly', $linkStyle='flat')
 Renderer for getFooterIcons and getFooterLinks. More...
 
 renderAfterPortlet ( $name)
 
- Protected Attributes inherited from QuickTemplate
 $config
 

Detailed Description

Todo:
document

Definition at line 51 of file SkinModern.php.

Member Function Documentation

◆ execute()

ModernTemplate::execute ( )

Template filter callback for Modern skin.

Takes an associative array of data set from a SkinTemplate-based class, and a wrapper for MediaWiki's localization database, and outputs a formatted page.

Reimplemented from MonoBookTemplate.

Definition at line 59 of file SkinModern.php.

References a, as, by, MonoBookTemplate\cactions(), content, data, div, BaseTemplate\getFooterIcons(), BaseTemplate\getFooterLinks(), BaseTemplate\getIndicators(), BaseTemplate\getPersonalTools(), QuickTemplate\getSkin(), href, MonoBookTemplate\html, in, is(), Makefile\main(), BaseTemplate\makeListItem(), BaseTemplate\msg(), navigation, of, php, BaseTemplate\printTrail(), MonoBookTemplate\renderPortals(), style, MonoBookTemplate\text, and used.


The documentation for this class was generated from the following file: