* Ported $wgCopyrightIcon setting from REL1_3A

This commit is contained in:
Brion Vibber 2004-12-28 22:02:19 +00:00
parent 110e55d959
commit 227ea90ba9
2 changed files with 9 additions and 4 deletions

View file

@ -727,6 +727,9 @@ $wgRightsUrl = NULL;
$wgRightsText = NULL;
$wgRightsIcon = NULL;
# Set this to some HTML to override the rights icon with an arbitrary logo
$wgCopyrightIcon = NULL;
# Set this to true if you want detailed copyright information forms on Upload.
$wgUseCopyrightUpload = false;

View file

@ -805,17 +805,19 @@ class Skin extends Linker {
}
function getCopyrightIcon() {
global $wgRightsPage, $wgRightsUrl, $wgRightsText, $wgRightsIcon;
global $wgRightsPage, $wgRightsUrl, $wgRightsText, $wgRightsIcon, $wgCopyrightIcon;
$out = '';
if( $wgRightsIcon ) {
if ( isset( $wgCopyrightIcon ) && $wgCopyrightIcon ) {
$out = $wgCopyrightIcon;
} else if ( $wgRightsIcon ) {
$icon = htmlspecialchars( $wgRightsIcon );
if( $wgRightsUrl ) {
if ( $wgRightsUrl ) {
$url = htmlspecialchars( $wgRightsUrl );
$out .= '<a href="'.$url.'">';
}
$text = htmlspecialchars( $wgRightsText );
$out .= "<img src=\"$icon\" alt='$text' />";
if( $wgRightsUrl ) {
if ( $wgRightsUrl ) {
$out .= '</a>';
}
}