MediaWiki
1.23.2
|
Public Member Functions | |
afterContent () | |
beforeContent () | |
bottomLinks () | |
execute () | |
Main function, used by classes that subclass QuickTemplate to show the actual HTML output. More... | |
otherLanguages () | |
pageTitleLinks () | |
processBottomLink ( $key, $navlink, $message=null) | |
Used in bottomLinks() to eliminate repetitive code. More... | |
processNavlinkForDocument ( $navlink, $idPrefix='cb-') | |
Takes a navigational link generated by SkinTemplate in whichever way and mangles attributes unsuitable for repeated use. More... | |
quickBar () | |
Compute the sidebar. More... | |
searchForm ( $which) | |
sidebarAdditions ( $bar) | |
Adds CologneBlue-specific items to the sidebar: qbedit, qbpageoptions and qbmyoptions menus. More... | |
sysLinks () | |
talkLink () | |
variantLinks () | |
Language/charset variant links for classic-style skins. 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... | |
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=array()) | |
getToolbox () | |
Create an array of common toolbox items from the data in the quicktemplate stored by SkinTemplate. More... | |
makeLink ( $key, $item, $options=array()) | |
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=array()) | |
Generates a list item for a navigation, portlet, portal, sidebar... More... | |
makeSearchButton ( $mode, $attrs=array()) | |
makeSearchInput ( $attrs=array()) | |
msg ( $str) | |
msgHtml ( $str) | |
msgWiki ( $str) | |
An ugly, ugly hack. More... | |
printTrail () | |
Output the basic end-page trail including bottomscripts, reporttime, and debug stuff. More... | |
Public Member Functions inherited from QuickTemplate | |
__construct () | |
Constructor. 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) | |
Public Attributes | |
if( $this->translator->translate( 'tagline')) if( $this->getSkin() ->getOutput() ->getSubtitle()) if( $this->getSkin() ->subPageSubtitle()) | $s = ob_get_contents() |
return | $s |
if( $this->data['newtalk']) if( $this->getSkin() ->getSiteNotice()) $this | data ['pageLanguage'] = $this->getSkin()->getTitle()->getPageViewLanguage()->getHtmlCode() |
Protected Member Functions | |
renderAfterPortlet ( $name) | |
Definition at line 56 of file CologneBlue.php.
CologneBlueTemplate::afterContent | ( | ) |
Definition at line 329 of file CologneBlue.php.
References $s, array(), as, bottomLinks(), data, BaseTemplate\getFooterLinks(), QuickTemplate\getSkin(), php, quickBar(), searchForm(), sysLinks(), variantLinks(), and wfMessage().
Referenced by execute().
CologneBlueTemplate::beforeContent | ( | ) |
Definition at line 282 of file CologneBlue.php.
References data, QuickTemplate\getSkin(), href, otherLanguages(), pageTitleLinks(), php, and wfMessage().
Referenced by execute().
CologneBlueTemplate::bottomLinks | ( | ) |
Definition at line 159 of file CologneBlue.php.
References $lines, array(), data, QuickTemplate\getSkin(), BaseTemplate\getToolbox(), otherLanguages(), processBottomLink(), and talkLink().
Referenced by afterContent().
CologneBlueTemplate::execute | ( | ) |
Main function, used by classes that subclass QuickTemplate to show the actual HTML output.
Reimplemented from QuickTemplate.
Definition at line 57 of file CologneBlue.php.
References afterContent(), beforeContent(), QuickTemplate\html(), BaseTemplate\printTrail(), wfRestoreWarnings(), and wfSuppressWarnings().
CologneBlueTemplate::otherLanguages | ( | ) |
Definition at line 87 of file CologneBlue.php.
References $html, $s, array(), as, data, QuickTemplate\getSkin(), global, BaseTemplate\makeListItem(), renderAfterPortlet(), and wfMessage().
Referenced by beforeContent(), and bottomLinks().
CologneBlueTemplate::pageTitleLinks | ( | ) |
Definition at line 126 of file CologneBlue.php.
References $s, array(), as, data, BaseTemplate\getFooterLinks(), and QuickTemplate\getSkin().
Referenced by beforeContent().
CologneBlueTemplate::processBottomLink | ( | $key, | |
$navlink, | |||
$message = null |
|||
) |
Used in bottomLinks() to eliminate repetitive code.
$key | string Key to be passed to makeListItem() |
$navlink | array Navlink suitable for processNavlinkForDocument() |
$message | string Key of the message to use in place of standard text |
Definition at line 146 of file CologneBlue.php.
References array(), BaseTemplate\makeListItem(), processNavlinkForDocument(), and wfMessage().
Referenced by bottomLinks(), and talkLink().
CologneBlueTemplate::processNavlinkForDocument | ( | $navlink, | |
$idPrefix = 'cb-' |
|||
) |
Takes a navigational link generated by SkinTemplate in whichever way and mangles attributes unsuitable for repeated use.
In particular, this modifies the ids and removes the accesskeys. This is necessary to be able to use the same navlink twice, e.g. in sidebar and in footer.
$navlink | array Navigational link generated by SkinTemplate |
$idPrefix | mixed Prefix to add to id of this navlink. If false, id is removed entirely. Default is 'cb-'. |
Definition at line 263 of file CologneBlue.php.
Referenced by processBottomLink().
CologneBlueTemplate::quickBar | ( | ) |
Compute the sidebar.
Definition at line 457 of file CologneBlue.php.
References $link, $s, array(), as, data, Sanitizer\escapeId(), BaseTemplate\getToolbox(), BaseTemplate\makeListItem(), renderAfterPortlet(), searchForm(), sidebarAdditions(), and wfMessage().
Referenced by afterContent().
|
protected |
string | $name |
Reimplemented from BaseTemplate.
Definition at line 117 of file CologneBlue.php.
References $html, $name, array(), and wfRunHooks().
Referenced by otherLanguages(), and quickBar().
CologneBlueTemplate::searchForm | ( | $which | ) |
$label | string |
Definition at line 549 of file CologneBlue.php.
References $s, array(), data, QuickTemplate\getSkin(), global, BaseTemplate\makeSearchButton(), BaseTemplate\makeSearchInput(), and wfMessage().
Referenced by afterContent(), and quickBar().
CologneBlueTemplate::sidebarAdditions | ( | $bar | ) |
Adds CologneBlue-specific items to the sidebar: qbedit, qbpageoptions and qbmyoptions menus.
$bar | sidebar data |
Definition at line 413 of file CologneBlue.php.
References array(), as, data, and BaseTemplate\getPersonalTools().
Referenced by quickBar().
CologneBlueTemplate::sysLinks | ( | ) |
Definition at line 379 of file CologneBlue.php.
References $s, array(), as, BaseTemplate\getPersonalTools(), QuickTemplate\getSkin(), Linker\linkKnown(), Linker\makeExternalLink(), Skin\makeInternalOrExternalUrl(), BaseTemplate\makeListItem(), Title\newFromText(), QuickTemplate\text(), and wfMessage().
Referenced by afterContent().
CologneBlueTemplate::talkLink | ( | ) |
Definition at line 208 of file CologneBlue.php.
References $title, array(), data, QuickTemplate\getSkin(), NS_CATEGORY, NS_FILE, NS_HELP, NS_MAIN, NS_MEDIAWIKI, NS_PROJECT, NS_SPECIAL, NS_TEMPLATE, NS_USER, and processBottomLink().
Referenced by bottomLinks().
CologneBlueTemplate::variantLinks | ( | ) |
Language/charset variant links for classic-style skins.
Definition at line 75 of file CologneBlue.php.
References $link, $s, array(), as, data, QuickTemplate\getSkin(), and BaseTemplate\makeListItem().
Referenced by afterContent().
if ($this->translator->translate('tagline')) if ($this->getSkin() ->getOutput() ->getSubtitle()) if ($this->getSkin() ->subPageSubtitle()) CologneBlueTemplate::$s = ob_get_contents() |
Definition at line 320 of file CologneBlue.php.
Referenced by afterContent(), otherLanguages(), pageTitleLinks(), quickBar(), searchForm(), sysLinks(), and variantLinks().
return CologneBlueTemplate::$s |
Definition at line 323 of file CologneBlue.php.
if ($this->data[ 'newtalk']) if ($this->getSkin() ->getSiteNotice()) $this CologneBlueTemplate::data[ 'pageLanguage'] = $this->getSkin()->getTitle()->getPageViewLanguage()->getHtmlCode() |
Definition at line 307 of file CologneBlue.php.
Referenced by afterContent(), beforeContent(), bottomLinks(), otherLanguages(), pageTitleLinks(), quickBar(), searchForm(), sidebarAdditions(), talkLink(), and variantLinks().