MediaWiki
1.34.0
|
BaseTemplate class for the Timeless skin. More...
Public Member Functions | |
execute () | |
Outputs the entire contents of the page. 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,... $params) | |
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) | |
msgWiki ( $str) | |
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 | |
getAfterContent () | |
The data after content, catlinks, and potential other stuff that may appear within the content block but after the main content. More... | |
getCategories () | |
Categories for the sidebar. More... | |
getCatList ( $list, $id, $class, $message) | |
List of categories. More... | |
getContentBlock () | |
Generate the page content block Broken out here due to the excessive indenting, or stuff. More... | |
getContentSub () | |
Links and information that may appear below the firstHeading. More... | |
getHeaderHack () | |
The colour bars Split this out so we don't have to look at it/can easily kill it later. More... | |
getInterwikiLinks () | |
Interwiki links block. More... | |
getLogo ( $id='p-logo', $part='both') | |
The logo and (optionally) site title. More... | |
getLogoImage ( $logo, $doLarge=false) | |
Generate img-based logos for proper HiDPI support. More... | |
getMainNavigation () | |
Left sidebar navigation, usually. More... | |
getPageTools () | |
Generate pile of all the tools. More... | |
getPageToolSidebar () | |
Page tools in sidebar. More... | |
getPortlet ( $name, $content, $msg=null, $setOptions=[]) | |
Generates a block of navigation links with a header This is some random fork of some random fork of what was supposed to be in core. More... | |
getSearch () | |
The search box at the top. More... | |
getSidebarChunk ( $id, $headerMessage, $content, $classes=[]) | |
Sidebar chunk containing one or more portlets. More... | |
getSiteNotices () | |
Notices that may appear above the firstHeading. More... | |
getUserLinks () | |
Personal/user links portlet for header. More... | |
getVariants () | |
Interlanguage links block, with variants if applicable Layout sort of assumes we're using ULS compact language handling if there's a lot of languages. 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) | |
Protected Attributes | |
array null | $collectionPortlet |
array null | $otherProjects |
array | $pileOfTools |
array | $sidebar |
Protected Attributes inherited from QuickTemplate | |
$config | |
Additional Inherited Members | |
Public Attributes inherited from QuickTemplate | |
array | $data |
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 24 of file TimelessTemplate.php.
References getAfterContent(), getCategories(), BaseTemplate\getClear(), getContentBlock(), getContext(), MWDebug\getDebugHTML(), BaseTemplate\getFooter(), getHeaderHack(), getInterwikiLinks(), getLogo(), getMainNavigation(), getPageTools(), getPageToolSidebar(), getPortlet(), getSearch(), BaseTemplate\getSidebar(), getSidebarChunk(), 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 652 of file TimelessTemplate.php.
Referenced by execute().
|
protected |
Categories for the sidebar.
Assemble an array of categories. This doesn't show any categories for the action=history view, but that behaviour is consistent with other skins.
Definition at line 845 of file TimelessTemplate.php.
References getCatList(), getSidebarChunk(), QuickTemplate\getSkin(), and NS_CATEGORY.
Referenced by execute().
|
protected |
List of categories.
array | $list | |
string | $id | |
string | array | $class | |
string | array | $message | i18n message name or an array of [ message name, params ] |
Definition at line 899 of file TimelessTemplate.php.
References getPortlet().
Referenced by getCategories().
|
protected |
Generate the page content block Broken out here due to the excessive indenting, or stuff.
Definition at line 114 of file TimelessTemplate.php.
References BaseTemplate\getClear(), getContentSub(), BaseTemplate\getIndicators(), BaseTemplate\getMsg(), getPortlet(), getSiteNotices(), and getVariants().
Referenced by execute().
|
protected |
Links and information that may appear below the firstHeading.
Definition at line 631 of file TimelessTemplate.php.
Referenced by getContentBlock().
|
protected |
The colour bars Split this out so we don't have to look at it/can easily kill it later.
Definition at line 477 of file TimelessTemplate.php.
Referenced by execute().
|
protected |
Interwiki links block.
Definition at line 947 of file TimelessTemplate.php.
References $languages, 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 343 of file TimelessTemplate.php.
References QuickTemplate\$config, getLogoImage(), BaseTemplate\getMsg(), QuickTemplate\getSkin(), Linker\tooltipAndAccesskeyAttribs(), and true.
Referenced by execute().
|
protected |
Generate img-based logos for proper HiDPI support.
string | array | null | $logo | |
bool | $doLarge | Render extra-large HiDPI logos for mobile devices? |
Definition at line 1002 of file TimelessTemplate.php.
References $file, $path, $res, BaseTemplate\getMsg(), File\normalizeExtension(), File\scaleHeight(), and wfFindFile().
Referenced by getLogo().
|
protected |
Left sidebar navigation, usually.
Definition at line 447 of file TimelessTemplate.php.
References $content, getPortlet(), and getSidebarChunk().
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 678 of file TimelessTemplate.php.
References $pileOfTools, $title, BaseTemplate\getMsg(), QuickTemplate\getSkin(), SpecialPage\getTitleFor(), and BaseTemplate\getToolbox().
Referenced by execute().
|
protected |
Page tools in sidebar.
Definition at line 506 of file TimelessTemplate.php.
References getPortlet(), and getSidebarChunk().
Referenced by execute().
|
protected |
Generates a block of navigation links with a header This is some random fork of some random fork of what was supposed to be in core.
Latest version copied out of MonoBook, probably. (20190719)
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 | |
array | $setOptions | miscellaneous overrides, see below |
Definition at line 191 of file TimelessTemplate.php.
References $content, BaseTemplate\getAfterPortlet(), BaseTemplate\getMsg(), BaseTemplate\makeListItem(), mergeClasses(), and Linker\titleAttrib().
Referenced by execute(), getCatList(), getContentBlock(), getInterwikiLinks(), getMainNavigation(), getPageToolSidebar(), getUserLinks(), and getVariants().
|
protected |
The search box at the top.
Definition at line 407 of file TimelessTemplate.php.
References BaseTemplate\getMsg(), BaseTemplate\makeSearchButton(), and BaseTemplate\makeSearchInput().
Referenced by execute().
|
protected |
Sidebar chunk containing one or more portlets.
string | $id | |
string | $headerMessage | |
string | $content | |
array | $classes |
Definition at line 315 of file TimelessTemplate.php.
References $content, BaseTemplate\getMsg(), and QuickTemplate\text().
Referenced by execute(), getCategories(), getInterwikiLinks(), getMainNavigation(), and getPageToolSidebar().
|
protected |
Notices that may appear above the firstHeading.
Definition at line 613 of file TimelessTemplate.php.
Referenced by getContentBlock().
|
protected |
Personal/user links portlet for header.
Definition at line 539 of file TimelessTemplate.php.
References BaseTemplate\getMsg(), BaseTemplate\getPersonalTools(), getPortlet(), QuickTemplate\getSkin(), and BaseTemplate\makeListItem().
Referenced by execute().
|
protected |
Interlanguage links block, with variants if applicable Layout sort of assumes we're using ULS compact language handling if there's a lot of languages.
Definition at line 927 of file TimelessTemplate.php.
References getPortlet().
Referenced by getContentBlock().
|
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 294 of file TimelessTemplate.php.
Referenced by getPortlet().
|
protected |
Definition at line 19 of file TimelessTemplate.php.
|
protected |
Definition at line 16 of file TimelessTemplate.php.
|
protected |
Definition at line 10 of file TimelessTemplate.php.
Referenced by getPageTools().
|
protected |
Definition at line 13 of file TimelessTemplate.php.