|
MediaWiki
1.23.0
|
QuickTemplate class for Vector skin. More...


Public Member Functions | |
| execute () | |
| Outputs the entire contents of the (X)HTML 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... | |
| 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 | |
| $this html('userlangattributes') foreach( $this->getFooterLinks() as $category=> $links) foreach( $links as $link) $this html($link) | $footericons = $this->getFooterIcons( "icononly" ) |
| case __pad3__ if(count( $this->data['personal_urls'])==0) $this msg('personaltools') $this html('userlangattributes') | $personalTools: |
| $this msg('namespaces') $this html('userlangattributes') foreach( $this->data['namespace_urls'] as $link) | break |
| case __pad0__ if(count( $this->data['variant_urls'])==0) foreach( $this->data['variant_urls'] as $link) $this msg('variants') foreach( $this->data['variant_urls'] as $link) | break: |
| case __pad1__ if(count( $this->data['view_urls'])==0) $this msg('views') $this html('userlangattributes') foreach( $this->data['view_urls'] as $link) if(array_key_exists( 'text', $link)) | break: |
| case __pad2__ if(count( $this->data['action_urls'])==0) $this msg('actions') $this html('userlangattributes') foreach( $this->data['action_urls'] as $link) | break: |
| foreach( $personalTools as $key=> $item) | break |
| break | |
| if(is_array( $content)) | else { |
| case __pad4__ $this html('userlangattributes') $this msg('search') $this text('wgScript') if( $wgVectorUseSimpleSearch) | else: |
| $this | html ( 'userlangattributes') |
Protected Member Functions | |
| renderNavigation ( $elements) | |
| Render one or more navigations elements by name, automatically reveresed when UI is in RTL mode. More... | |
| renderPortal ( $name, $content, $msg=null, $hook=null) | |
| renderPortals ( $portals) | |
| Render a series of portals. More... | |
Protected Member Functions inherited from BaseTemplate | |
| renderAfterPortlet ( $name) | |
QuickTemplate class for Vector skin.
Definition at line 94 of file Vector.php.
| VectorTemplate::execute | ( | ) |
Outputs the entire contents of the (X)HTML page.
Reimplemented from QuickTemplate.
Definition at line 101 of file Vector.php.
References $link, $section, array(), as, data, Sanitizer\escapeId(), Xml\expandAttributes(), BaseTemplate\getFooterLinks(), QuickTemplate\getSkin(), global, href, html, BaseTemplate\msg(), php, renderNavigation(), renderPortals(), Linker\tooltip(), and Linker\tooltipAndAccesskeyAttribs().
|
protected |
|
protected |
| $name | string |
| $content | array |
| $msg | null|string |
| $hook | null|string|array |
Definition at line 295 of file Vector.php.
References $name, php, Linker\tooltip(), and wfMessage().
Referenced by renderPortals().
|
protected |
Render a series of portals.
| $portals | array |
Definition at line 254 of file Vector.php.
References $name, as, data, BaseTemplate\getToolbox(), and renderPortal().
Referenced by execute().
| $this html ( 'userlangattributes' ) foreach ($this->getFooterLinks() as $category=> $links) foreach ($links as $link) $this html ( $link ) VectorTemplate::$footericons = $this->getFooterIcons( "icononly" ) |
Definition at line 227 of file Vector.php.
| case __pad3__ if (count($this->data[ 'personal_urls'])==0) $this msg ( 'personaltools' ) $this html ( 'userlangattributes' ) VectorTemplate::$personalTools = $this->getPersonalTools() |
Definition at line 421 of file Vector.php.
| $this msg ( 'namespaces' ) $this html ( 'userlangattributes' ) foreach ($this->data[ 'namespace_urls'] as $link) VectorTemplate::break |
Definition at line 356 of file Vector.php.
| case __pad0__ if (count($this->data[ 'variant_urls'])==0) foreach ($this->data[ 'variant_urls'] as $link) $this msg ( 'variants' ) foreach ($this->data[ 'variant_urls'] as $link) VectorTemplate::break |
Definition at line 376 of file Vector.php.
| case __pad1__ if (count($this->data[ 'view_urls'])==0) $this msg ( 'views' ) $this html ( 'userlangattributes' ) foreach ($this->data[ 'view_urls'] as $link) if (array_key_exists('text', $link)) VectorTemplate::break |
Definition at line 392 of file Vector.php.
| case __pad2__ if (count($this->data[ 'action_urls'])==0) $this msg ( 'actions' ) $this html ( 'userlangattributes' ) foreach ($this->data[ 'action_urls'] as $link) VectorTemplate::break |
Definition at line 407 of file Vector.php.
Definition at line 422 of file Vector.php.
| VectorTemplate::break |
Definition at line 442 of file Vector.php.
Definition at line 319 of file Vector.php.
| case __pad4__ $this html ( 'userlangattributes' ) $this msg ( 'search' ) $this text ( 'wgScript' ) if ($wgVectorUseSimpleSearch) VectorTemplate::else { |
Definition at line 437 of file Vector.php.
| $this VectorTemplate::html('userlangattributes') |
Definition at line 302 of file Vector.php.
Referenced by execute(), and renderNavigation().