$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;
}
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>';
}
}