* Ported $wgCopyrightIcon setting from REL1_3A
This commit is contained in:
parent
110e55d959
commit
227ea90ba9
2 changed files with 9 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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>';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue