MediaWiki  1.23.2
CologneBlueTemplate Class Reference
Inheritance diagram for CologneBlueTemplate:
Collaboration diagram for CologneBlueTemplate:

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)
 

Detailed Description

Definition at line 56 of file CologneBlue.php.

Member Function Documentation

◆ afterContent()

CologneBlueTemplate::afterContent ( )

◆ beforeContent()

CologneBlueTemplate::beforeContent ( )
Returns
string

Definition at line 282 of file CologneBlue.php.

References data, QuickTemplate\getSkin(), href, otherLanguages(), pageTitleLinks(), php, and wfMessage().

Referenced by execute().

◆ bottomLinks()

CologneBlueTemplate::bottomLinks ( )

◆ execute()

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().

◆ otherLanguages()

CologneBlueTemplate::otherLanguages ( )

◆ pageTitleLinks()

CologneBlueTemplate::pageTitleLinks ( )

Definition at line 126 of file CologneBlue.php.

References $s, array(), as, data, BaseTemplate\getFooterLinks(), and QuickTemplate\getSkin().

Referenced by beforeContent().

◆ processBottomLink()

CologneBlueTemplate::processBottomLink (   $key,
  $navlink,
  $message = null 
)

Used in bottomLinks() to eliminate repetitive code.

Parameters
$keystring Key to be passed to makeListItem()
$navlinkarray Navlink suitable for processNavlinkForDocument()
$messagestring Key of the message to use in place of standard text
Returns
string

Definition at line 146 of file CologneBlue.php.

References array(), BaseTemplate\makeListItem(), processNavlinkForDocument(), and wfMessage().

Referenced by bottomLinks(), and talkLink().

◆ processNavlinkForDocument()

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.

Parameters
$navlinkarray Navigational link generated by SkinTemplate
$idPrefixmixed 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().

◆ quickBar()

CologneBlueTemplate::quickBar ( )

Compute the sidebar.

Access:\n private
Returns
string

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().

◆ renderAfterPortlet()

CologneBlueTemplate::renderAfterPortlet (   $name)
protected
Parameters
string$name

Reimplemented from BaseTemplate.

Definition at line 117 of file CologneBlue.php.

References $html, $name, array(), and wfRunHooks().

Referenced by otherLanguages(), and quickBar().

◆ searchForm()

CologneBlueTemplate::searchForm (   $which)
Parameters
$labelstring
Returns
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().

◆ sidebarAdditions()

CologneBlueTemplate::sidebarAdditions (   $bar)

Adds CologneBlue-specific items to the sidebar: qbedit, qbpageoptions and qbmyoptions menus.

Parameters
$barsidebar data
Returns
array modified sidebar data

Definition at line 413 of file CologneBlue.php.

References array(), as, data, and BaseTemplate\getPersonalTools().

Referenced by quickBar().

◆ sysLinks()

◆ talkLink()

CologneBlueTemplate::talkLink ( )

◆ variantLinks()

CologneBlueTemplate::variantLinks ( )

Language/charset variant links for classic-style skins.

Returns
string

Definition at line 75 of file CologneBlue.php.

References $link, $s, array(), as, data, QuickTemplate\getSkin(), and BaseTemplate\makeListItem().

Referenced by afterContent().

Member Data Documentation

◆ $s [1/2]

if ($this->translator->translate('tagline')) if ($this->getSkin() ->getOutput() ->getSubtitle()) if ($this->getSkin() ->subPageSubtitle()) CologneBlueTemplate::$s = ob_get_contents()

◆ $s [2/2]

return CologneBlueTemplate::$s

Definition at line 323 of file CologneBlue.php.

◆ data

if ($this->data[ 'newtalk']) if ($this->getSkin() ->getSiteNotice()) $this CologneBlueTemplate::data[ 'pageLanguage'] = $this->getSkin()->getTitle()->getPageViewLanguage()->getHtmlCode()

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