Manual talk:Hooks/SkinGetPoweredBy
Add topicAppearance
Latest comment: 10 years ago by 2nd in topic Useless
Be advised that this is called, but never actually used -- you need to customize $wgFooterIcons in LocalSettings.php in order to add/remove footer icons. --Gutza 21:29, 29 July 2011 (UTC)
Useless
[edit]In template github.com
$validFooterIcons = $this->getFooterIcons( "icononly" );
In includes / SkinTemplate.php
github.com
function getFooterIcons( $option = null ) {
// Generate additional footer icons
$footericons = $this->get( 'footericons' );
$tpl->set( 'poweredbyico', $this->getPoweredBy() );
$tpl->set( 'disclaimer', $this->disclaimerLink() );
$tpl->set( 'privacy', $this->privacyLink() );
$tpl->set( 'about', $this->aboutLink() );
...
global $wgFooterIcons;
$tpl->set( 'footericons', $wgFooterIcons );
Part where this hook included (hardcoded lol)
function getPoweredBy() {
global $wgStylePath;
$url = htmlspecialchars( "$wgStylePath/common/images/poweredby_mediawiki_88x31.png" );
$text = '<a href="//www.mediawiki.org/"><img src="' . $url . '" height="31" width="88" alt="Powered by MediaWiki" /></a>';
wfRunHooks( 'SkinGetPoweredBy', array( &$text, $this ) );
return $text;
}
Trying without success
$wgHooks['SkinGetPoweredBy'][] = 'fnSetIcons';
function fnSetIcons(&$text, $skin) {
$text = "<b>qq</b>".$text;
return true;
}
So this hook is doing nothing and just confuses people. --2nd 17:42, 3 May 2014 (UTC)