From 82daca2de86d082e3abd7534447cb35579dc9fb6 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Sat, 5 Jun 2004 11:12:26 +0000 Subject: [PATCH] inline interwiki link now with class "extiw" instead of "external" --- includes/Skin.php | 6 +++--- stylesheets/monobook/main.css | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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; -- 2.20.1