MediaWiki
1.32.5
|
Public Member Functions | |
execute () | |
Template filter callback for MonoBook skin. More... | |
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 ( $msgKey) | |
html ( $str) | |
set ( $name, $value) | |
Sets the value $value to $name. More... | |
setRef ( $name, &$value) | |
text ( $str) | |
Protected Member Functions | |
deprecatedHookHack ( $hook, $hookOptions=[]) | |
Wrapper to catch output of old hooks expecting to write directly to page We no longer do things that way. More... | |
getBox ( $name, $contents, $msg=null, $setOptions=[]) | |
Generate a sidebar box using getPortlet(); prefill some common stuff. More... | |
getCactions () | |
Generate the cactions (content actions) tabs, as well as a second set of spoof tabs for mobile. More... | |
getIfExists ( $object, $setOptions=[]) | |
Simple wrapper for random if-statement-wrapped $this->data things. More... | |
getLanguageBox () | |
Generate the languages box. More... | |
getMobileNavigationIcon ( $target, $title) | |
Create a wrapped link to create a mobile toggle/jump icon Needs to be an on-page link (as opposed to drawing something on the fly for an onclick event) for no-js support. More... | |
getPortlet ( $name, $content, $msg=null, $setOptions=[]) | |
Generates a block of navigation links with a header. More... | |
getRenderedSidebar () | |
Generate the full sidebar. More... | |
getSearchBox () | |
Generate the search, using config options for buttons (?) More... | |
getSimpleFooter () | |
Renderer for getFooterIcons and getFooterLinks as a generic footer block. More... | |
getToolboxBox () | |
Generate the toolbox, complete with all three old hooks. More... | |
mergeClasses ( $class, $extraClasses) | |
Helper function for getPortlet. More... | |
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) | |
Additional Inherited Members | |
Public Attributes inherited from QuickTemplate | |
array | $data |
Protected Attributes inherited from QuickTemplate | |
$config | |
Definition at line 30 of file MonoBookTemplate.php.
|
protected |
Wrapper to catch output of old hooks expecting to write directly to page We no longer do things that way.
string | $hook | event |
array | $hookOptions | args |
Definition at line 533 of file MonoBookTemplate.php.
References Hooks\run().
Referenced by execute(), getPortlet(), and getToolboxBox().
MonoBookTemplate::execute | ( | ) |
Template filter callback for MonoBook 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 QuickTemplate.
Definition at line 38 of file MonoBookTemplate.php.
References $html, Html\closeElement(), data, deprecatedHookHack(), Html\element(), getBox(), getCactions(), BaseTemplate\getClear(), getIfExists(), BaseTemplate\getIndicators(), getMobileNavigationIcon(), BaseTemplate\getMsg(), BaseTemplate\getPersonalTools(), getRenderedSidebar(), getSimpleFooter(), QuickTemplate\getSkin(), BaseTemplate\getTrail(), Html\openElement(), Html\rawElement(), QuickTemplate\text(), and Linker\tooltipAndAccesskeyAttribs().
|
protected |
Generate a sidebar box using getPortlet(); prefill some common stuff.
string | $name | |
array | string | $contents | |
null | string | array | bool | $msg | |
array | $setOptions |
Definition at line 345 of file MonoBookTemplate.php.
References $name, $options, $value, as, BaseTemplate\getMsg(), getPortlet(), QuickTemplate\getSkin(), User\groupHasPermission(), BaseTemplate\makeListItem(), and Html\rawElement().
Referenced by execute(), getCactions(), getLanguageBox(), getRenderedSidebar(), getSearchBox(), and getToolboxBox().
|
protected |
Generate the cactions (content actions) tabs, as well as a second set of spoof tabs for mobile.
Definition at line 164 of file MonoBookTemplate.php.
References $attribs, $html, as, captcha-old\count, data, getBox(), and BaseTemplate\getMsg().
Referenced by execute().
|
protected |
Simple wrapper for random if-statement-wrapped $this->data things.
string | $object | name of thing |
array | $setOptions |
Definition at line 554 of file MonoBookTemplate.php.
References $html, $options, $value, as, data, and Html\rawElement().
Referenced by execute().
|
protected |
Generate the languages box.
Definition at line 325 of file MonoBookTemplate.php.
References $html, data, and getBox().
Referenced by getRenderedSidebar().
|
protected |
Create a wrapped link to create a mobile toggle/jump icon Needs to be an on-page link (as opposed to drawing something on the fly for an onclick event) for no-js support.
string | $target | link target |
string | $title | icon title |
Definition at line 150 of file MonoBookTemplate.php.
References $title, and Html\element().
Referenced by execute().
|
protected |
Generates a block of navigation links with a header.
string | $name | |
array | string | $content | array of links for use with makeListItem, or a block of text |
null | string | array | $msg | |
array | $setOptions | random crap to rename/do/whatever |
Definition at line 389 of file MonoBookTemplate.php.
References $content, $html, $name, $options, $value, as, Html\closeElement(), deprecatedHookHack(), BaseTemplate\getAfterPortlet(), BaseTemplate\getMsg(), BaseTemplate\makeListItem(), mergeClasses(), Html\openElement(), Html\rawElement(), and Linker\titleAttrib().
Referenced by getBox().
|
protected |
Generate the full sidebar.
Definition at line 219 of file MonoBookTemplate.php.
References $content, $html, as, data, getBox(), getLanguageBox(), getSearchBox(), getToolboxBox(), and string.
Referenced by execute().
|
protected |
Generate the search, using config options for buttons (?)
Definition at line 265 of file MonoBookTemplate.php.
References $html, getBox(), BaseTemplate\getMsg(), Html\hidden(), BaseTemplate\makeSearchButton(), BaseTemplate\makeSearchInput(), and Html\rawElement().
Referenced by getRenderedSidebar().
|
protected |
Renderer for getFooterIcons and getFooterLinks as a generic footer block.
Definition at line 587 of file MonoBookTemplate.php.
References $html, as, Html\closeElement(), captcha-old\count, BaseTemplate\getFooterIcons(), BaseTemplate\getFooterLinks(), QuickTemplate\getSkin(), Html\openElement(), and Html\rawElement().
Referenced by execute().
|
protected |
Generate the toolbox, complete with all three old hooks.
Definition at line 305 of file MonoBookTemplate.php.
References $html, $skin, deprecatedHookHack(), getBox(), and BaseTemplate\getToolbox().
Referenced by getRenderedSidebar().
|
protected |
Helper function for getPortlet.
Merge all provided css classes into a single array Account for possible different input methods matching what Html::element stuff takes
string | array | $class | base portlet/body class |
string | array | $extraClasses | any extra classes to also include |
Definition at line 513 of file MonoBookTemplate.php.
Referenced by getPortlet().