From: Gabriel Wicke Date: Sat, 5 Jun 2004 11:12:26 +0000 (+0000) Subject: inline interwiki link now with class "extiw" instead of "external" X-Git-Tag: 1.5.0alpha1~3025 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=82daca2de86d082e3abd7534447cb35579dc9fb6;p=lhc%2Fweb%2Fwiklou.git inline interwiki link now with class "extiw" instead of "external" --- diff --git a/includes/Skin.php b/includes/Skin.php index 99a3b22223..11df111b34 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -221,7 +221,7 @@ class Skin { return $a; } - function getExternalLinkAttributes( $link, $text ) + function getExternalLinkAttributes( $link, $text, $class='' ) { global $wgUser, $wgOut, $wgLang; @@ -230,7 +230,7 @@ class Skin { $link = str_replace( "_", " ", $link ); $link = wfEscapeHTML( $link ); - $r = " class='external'"; + $r = ($class != '') ? " class='$class'" : " class='external'"; if ( 1 == $wgUser->getOption( "hover" ) ) { $r .= " title=\"{$link}\""; @@ -1473,7 +1473,7 @@ class Skin { $u = $nt->getFullURL(); $link = $nt->getPrefixedURL(); if ( "" == $text ) { $text = $nt->getPrefixedText(); } - $style = $this->getExternalLinkAttributes( $link, $text ); + $style = $this->getExternalLinkAttributes( $link, $text, 'extiw' ); $inside = ""; if ( "" != $trail ) { diff --git a/stylesheets/monobook/main.css b/stylesheets/monobook/main.css index c1e7c520be..065bf4765d 100644 --- a/stylesheets/monobook/main.css +++ b/stylesheets/monobook/main.css @@ -61,7 +61,7 @@ table { } a { text-decoration: none; - color: #0014a6; + color: #004ba6; background: none; } a:visited { color: #5a3696; } @@ -466,7 +466,7 @@ td.diff-context { background:#eeeeee; } padding-right: 18px; } /* disable interwiki styling */ -#bodyContent a.interwiki { +#bodyContent a.extiw { color: #3366bb; background: none; padding: 0;