MediaWiki  1.30.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...
 
 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 ( $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
 
$this data ['pageLanguage'] = $this->getSkin()->getTitle()->getPageViewLanguage()->getHtmlCode()
 
if( $this->data['newtalk']) if ($this->getSkin() ->getSiteNotice())
 
- Public Attributes inherited from QuickTemplate
array $data
 
MediaWikiI18N $translator
 

Protected Member Functions

 renderAfterPortlet ( $name)
 
- 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...
 

Additional Inherited Members

- Protected Attributes inherited from QuickTemplate
 $config
 

Detailed Description

Definition at line 57 of file SkinCologneBlue.php.

Member Function Documentation

◆ afterContent()

CologneBlueTemplate::afterContent ( )

◆ beforeContent()

CologneBlueTemplate::beforeContent ( )
Returns
string

Definition at line 326 of file SkinCologneBlue.php.

References a, data, QuickTemplate\getSkin(), href, otherLanguages(), captcha-old\p, 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 58 of file SkinCologneBlue.php.

References afterContent(), beforeContent(), QuickTemplate\html(), BaseTemplate\printTrail(), wfRestoreWarnings(), and wfSuppressWarnings().

◆ otherLanguages()

CologneBlueTemplate::otherLanguages ( )

◆ pageTitleLinks()

CologneBlueTemplate::pageTitleLinks ( )

Definition at line 126 of file SkinCologneBlue.php.

References $s, 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
string$keyKey to be passed to makeListItem()
array$navlinkNavlink suitable for processNavlinkForDocument()
string$messageKey of the message to use in place of standard text
Returns
string

Definition at line 146 of file SkinCologneBlue.php.

References 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
array$navlinkNavigational link generated by SkinTemplate
mixed$idPrefixPrefix to add to id of this navlink. If false, id is removed entirely. Default is 'cb-'.

Definition at line 307 of file SkinCologneBlue.php.

Referenced by processBottomLink().

◆ quickBar()

CologneBlueTemplate::quickBar ( )

Compute the sidebar.

Access:\n private
Returns
string

Definition at line 530 of file SkinCologneBlue.php.

References QuickTemplate\$data, $link, $s, as, data, BaseTemplate\getToolbox(), BaseTemplate\makeListItem(), renderAfterPortlet(), searchForm(), sidebarAdditions(), string, and wfMessage().

Referenced by afterContent().

◆ renderAfterPortlet()

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

Reimplemented from BaseTemplate.

Definition at line 117 of file SkinCologneBlue.php.

References $html, $name, and Hooks\run().

Referenced by otherLanguages(), and quickBar().

◆ searchForm()

CologneBlueTemplate::searchForm (   $which)
Parameters
string$label
Returns
string

Definition at line 631 of file SkinCologneBlue.php.

References $s, data, QuickTemplate\getSkin(), 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
array$barSidebar data
Returns
array Modified sidebar data

Definition at line 484 of file SkinCologneBlue.php.

References 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 76 of file SkinCologneBlue.php.

References $link, $s, 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 392 of file SkinCologneBlue.php.

◆ data

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

◆ if

if ($this->data[ 'newtalk']) CologneBlueTemplate::if( $this->getSkin() ->getSiteNotice())

Definition at line 354 of file SkinCologneBlue.php.


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