From: Ævar Arnfjörð Bjarmason Date: Thu, 21 Apr 2005 20:56:55 +0000 (+0000) Subject: * Moving hardcoded styles into CSS. X-Git-Tag: 1.5.0alpha1~194 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=f8923e57dbb1cd2cc43b130002e0a6a4fe0a2621;p=lhc%2Fweb%2Fwiklou.git * Moving hardcoded styles into CSS. --- diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 582b4c180a..50c93780e2 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -65,16 +65,13 @@ class ImagePage extends Article { if ( count ( $exif ) == 1 && isset ( $exif["EXIF"] ) && $exif["EXIF"] == "NO" ) return ; # This image does not have EXIF data # Create the table - $r = "" ; - $r .= "" ; + $exifdata = wfMsg( 'exifdata' ); + $r = "\n
EXIF data
\n" ; + $r .= "\n" ; foreach ( $exif AS $k => $v ) { - $r .= "" ; - $v = str_replace ( "\0" , "" , $v ) ; - $r .= "" ; - $r .= "" ; - $r .= "" ; - } - $r .= "
$exifdata
" . htmlspecialchars ( $k ) . "" . htmlspecialchars ( $v ) . "
" ; + $r .= '' . htmlspecialchars ( $k ) . '' . htmlspecialchars ( $v ) . "\n"; + } + $r .= ''; $wgOut->addHTML ( $r ) ; } diff --git a/skins/monobook/main.css b/skins/monobook/main.css index c4ac547ab6..e948e82813 100644 --- a/skins/monobook/main.css +++ b/skins/monobook/main.css @@ -1108,3 +1108,28 @@ li span.deleted { color: #888; font-style: italic; } + +/* Classes for EXIF data display */ +table.exif { + border: 1px solid gray; + background-color: #ffffff; + padding: 3px; + margin-left: 0.5em; + float: right; + font-size: small; + text-align: center; +} + +table.exif caption { + font-weight: bold; +} + +table.exif th { + font-size: small; + font-weight: bold; +} + +table.exif td { + font-size: small; + font-style: italic; +}