$tpl->set( 'privacy', $this->privacyLink() );
$tpl->set( 'about', $this->aboutLink() );
+ $tpl->set( 'footerlinks', array(
+ 'info' => array(
+ 'lastmod',
+ 'viewcount',
+ 'numberofwatchingusers',
+ 'credits',
+ 'copyright',
+ ),
+ 'places' => array(
+ 'privacy',
+ 'about',
+ 'disclaimer',
+ ),
+ ) );
+
if ( $wgDebugComments ) {
$tpl->setRef( 'debug', $out->mDebugtext );
} else {
// Suppress warnings to prevent notices about missing indexes in $this->data
wfSuppressWarnings();
+ // Generate additional footer links
+ $footerlinks = $this->data["footerlinks"];
+ // fold footerlinks into a single array using a bit of trickery
+ $footerlinks = call_user_func_array('array_merge', array_values($footerlinks));
+
$this->html( 'headelement' );
?><div id="globalWrapper">
<div id="column-content"><div id="content"<?php $this->html("specialpageattributes") ?>>
<?php }
// Generate additional footer links
- $footerlinks = array(
- 'lastmod', 'viewcount', 'numberofwatchingusers', 'credits', 'copyright',
- 'privacy', 'about', 'disclaimer', 'tagline',
- );
$validFooterLinks = array();
foreach( $footerlinks as $aLink ) {
if( isset( $this->data[$aLink] ) && $this->data[$aLink] ) {
}
// Generate additional footer links
- $footerlinks = array(
- 'info' => array(
- 'lastmod',
- 'viewcount',
- 'numberofwatchingusers',
- 'credits',
- 'copyright',
- 'tagline',
- ),
- 'places' => array(
- 'privacy',
- 'about',
- 'disclaimer',
- ),
- 'icons' => array(
- 'poweredbyico',
- 'copyrightico',
- ),
- );
+ $footerlinks = $this->data["footerlinks"];
+ // footerlinks doesn't include icons for now, so we'll just append the default
+ $footerlinks["icons"] = array( 'poweredbyico', 'copyrightico', );
+
$footerlinksClasses = array(
'icons' => array( 'noprint' )
);