MediaWiki REL1_31
|
BaseTemplate class for the Timeless skin. More...
Public Member Functions | |
execute () | |
Outputs the entire contents of the page. | |
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. | |
getFooterLinks ( $option=null) | |
Returns an array of footerlinks trimmed down to only those footer links that are valid. | |
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. | |
getMsg ( $name) | |
Get a Message object with its context set. | |
getPersonalTools () | |
Create an array of personal tools items from the data in the quicktemplate stored by SkinTemplate. | |
getSidebar ( $options=[]) | |
getToolbox () | |
Create an array of common toolbox items from the data in the quicktemplate stored by SkinTemplate. | |
getTrail () | |
Get the basic end-page trail including bottomscripts, reporttime, and debug stuff. | |
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... | |
makeListItem ( $key, $item, $options=[]) | |
Generates a list item for a navigation, portlet, portal, sidebar... list. | |
makeSearchButton ( $mode, $attrs=[]) | |
makeSearchInput ( $attrs=[]) | |
msg ( $str) | |
msgHtml ( $str) | |
msgWiki ( $str) | |
An ugly, ugly hack. | |
printTrail () | |
Output getTrail. | |
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 | |
get ( $name, $default=null) | |
Gets the template data requested. | |
getHTML () | |
Fetch the output of a QuickTemplate and return it. | |
getSkin () | |
Get the Skin object related to this object. | |
haveData ( $str) | |
haveMsg ( $msgKey) | |
html ( $str) | |
set ( $name, $value) | |
Sets the value $value to $name. | |
setRef ( $name, &$value) | |
setTranslator (&$t) | |
text ( $str) | |
Protected Member Functions | |
getAfterContent () | |
The data after content, catlinks, and potential other stuff that may appear within the content block but after the main content. | |
getCategories () | |
Categories for the sidebar. | |
getCatList ( $list, $id, $message) | |
List of categories. | |
getContentSub () | |
Links and information that may appear below the firstHeading. | |
getHeaderHack () | |
The colour bars Split this out so we don't have to look at it/can easily kill it later. | |
getInterlanguageLinks () | |
Interlanguage links block, also with variants. | |
getLogo ( $id='p-logo', $part='both') | |
The logo and (optionally) site title. | |
getMainNavigation () | |
Left sidebar navigation, usually. | |
getPageTools () | |
Generate pile of all the tools. | |
getPageToolSidebar () | |
Page tools in sidebar. | |
getPortlet ( $name, $content, $msg=null) | |
Generates a block of navigation links with a header. | |
getSearch () | |
The search box at the top. | |
getSidebarChunk ( $id, $headerMessage, $content) | |
Sidebar chunk containing one or more portlets. | |
getSiteNotices () | |
Notices that may appear above the firstHeading. | |
getUserLinks () | |
Personal/user links portlet for header. | |
Protected Member Functions inherited from BaseTemplate | |
getAfterPortlet ( $name) | |
Allows extensions to hook into known portlets and add stuff to them. | |
getClear () | |
Get a div with the core visualClear class, for clearing floats. | |
getFooter ( $iconStyle='icononly', $linkStyle='flat') | |
Renderer for getFooterIcons and getFooterLinks. | |
renderAfterPortlet ( $name) | |
Protected Attributes | |
array | $pileOfTools |
Protected Attributes inherited from QuickTemplate | |
$config | |
Additional Inherited Members | |
Public Attributes inherited from QuickTemplate | |
array | $data |
MediaWikiI18N | $translator |
BaseTemplate class for the Timeless skin.
Definition at line 7 of file TimelessTemplate.php.
TimelessTemplate::execute | ( | ) |
Outputs the entire contents of the page.
Reimplemented from QuickTemplate.
Definition at line 15 of file TimelessTemplate.php.
References $html, getAfterContent(), getCategories(), BaseTemplate\getClear(), getContentSub(), getContext(), BaseTemplate\getFooter(), getHeaderHack(), BaseTemplate\getIndicators(), getInterlanguageLinks(), getLogo(), getMainNavigation(), getPageTools(), getPageToolSidebar(), getPortlet(), getSearch(), getSidebarChunk(), getSiteNotices(), QuickTemplate\getSkin(), and getUserLinks().
|
protected |
The data after content, catlinks, and potential other stuff that may appear within the content block but after the main content.
Definition at line 550 of file TimelessTemplate.php.
References $html.
Referenced by execute().
|
protected |
Categories for the sidebar.
Assemble an array of categories, regardless of view mode. Just using Skin or OutputPage functions doesn't respect view modes (preview, history, whatever) But why? I have no idea what the purpose of this is.
Definition at line 703 of file TimelessTemplate.php.
References $dbr, $html, $res, $wgContLang, DB_REPLICA, getCatList(), getSidebarChunk(), QuickTemplate\getSkin(), NS_CATEGORY, and wfGetDB().
Referenced by execute().
|
protected |
List of categories.
array | $list | |
string | $id | |
string | array | $message | i18n message name or an array of [ message name, params ] |
Definition at line 801 of file TimelessTemplate.php.
References $html, getPortlet(), and NS_CATEGORY.
Referenced by getCategories().
|
protected |
Links and information that may appear below the firstHeading.
Definition at line 529 of file TimelessTemplate.php.
References $html.
Referenced by execute().
|
protected |
The colour bars Split this out so we don't have to look at it/can easily kill it later.
Definition at line 375 of file TimelessTemplate.php.
References $html.
Referenced by execute().
|
protected |
Interlanguage links block, also with variants.
Definition at line 827 of file TimelessTemplate.php.
References $html, getPortlet(), and getSidebarChunk().
Referenced by execute().
|
protected |
The logo and (optionally) site title.
string | $id | |
string | $part | whether it's only image, only text, or both |
Definition at line 253 of file TimelessTemplate.php.
References $html, BaseTemplate\getMsg(), QuickTemplate\getSkin(), text, and Linker\tooltipAndAccesskeyAttribs().
Referenced by execute().
|
protected |
Left sidebar navigation, usually.
Definition at line 344 of file TimelessTemplate.php.
References $html, getPortlet(), BaseTemplate\getSidebar(), getSidebarChunk(), and string.
Referenced by execute().
|
protected |
Generate pile of all the tools.
We can make a few assumptions based on where a tool started out: If it's in the cactions region, it's a page tool, probably primary or secondary ...that's all I can think of
Definition at line 576 of file TimelessTemplate.php.
References $pileOfTools, BaseTemplate\getMsg(), QuickTemplate\getSkin(), and BaseTemplate\getToolbox().
Referenced by execute().
|
protected |
Page tools in sidebar.
Definition at line 404 of file TimelessTemplate.php.
References getPortlet(), and getSidebarChunk().
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 Expected array format: [ $name => [ 'links' => [ '0' => [ 'href' => ..., 'single-id' => ..., 'text' => ... ] ], 'id' => ..., 'active' => ... ], ... ] |
null | string | array | bool | $msg |
Definition at line 137 of file TimelessTemplate.php.
References $html, $name, $template, BaseTemplate\getAfterPortlet(), BaseTemplate\getMsg(), BaseTemplate\makeListItem(), Linker\titleAttrib(), and wfMessage().
Referenced by execute(), getCatList(), getInterlanguageLinks(), getMainNavigation(), getPageToolSidebar(), and getUserLinks().
|
protected |
The search box at the top.
Definition at line 303 of file TimelessTemplate.php.
References $html, BaseTemplate\getMsg(), BaseTemplate\makeSearchButton(), BaseTemplate\makeSearchInput(), and text.
Referenced by execute().
|
protected |
Sidebar chunk containing one or more portlets.
string | $id | |
string | $headerMessage | |
string | $content |
Definition at line 227 of file TimelessTemplate.php.
References $html, BaseTemplate\getMsg(), and text.
Referenced by execute(), getCategories(), getInterlanguageLinks(), getMainNavigation(), and getPageToolSidebar().
|
protected |
Notices that may appear above the firstHeading.
Definition at line 511 of file TimelessTemplate.php.
References $html.
Referenced by execute().
|
protected |
Personal/user links portlet for header.
Definition at line 431 of file TimelessTemplate.php.
References $html, BaseTemplate\getMsg(), BaseTemplate\getPersonalTools(), getPortlet(), QuickTemplate\getSkin(), BaseTemplate\makeListItem(), and wfMessage().
Referenced by execute().
|
protected |
Definition at line 10 of file TimelessTemplate.php.
Referenced by getPageTools().