From f8923e57dbb1cd2cc43b130002e0a6a4fe0a2621 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Thu, 21 Apr 2005 20:56:55 +0000 Subject: [PATCH] * Moving hardcoded styles into CSS. --- includes/ImagePage.php | 15 ++++++--------- skins/monobook/main.css | 25 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 9 deletions(-) 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; +} -- 2.20.1