在服务器上mediawiki目录中的配置文件LocalSettings.php中可以直接设置。
具体参数为:$wgFooterIcons
添加底部powered by图标
如果只是想添加一个,则:
$wgFooterIcons['poweredby']['myicon'] = array( "src" => "/path/to/my/image.png", // 服务器上的图片地址,或者网上的图片URL如: "http://example.com/my/custom/path/to/MyCustomLogo.png" "url" => "http://example.com/", "alt" => "一些解释...", );修改底部powered by图标
如果想替换,则需要:
$wgFooterIcons['poweredby']['mediawiki'] = array( "src" => null, //图片URL "url" => "http://www.mediawiki.org/",//链接地址URL "alt" => "Powered by MediaWiki", //说明 );
去除底部powered by图标
在配置文件LocalSettings.php中加入如下行即可,
unset($wgFooterIcons['poweredby']);
评论