From: Ævar Arnfjörð Bjarmason Date: Mon, 9 May 2005 12:50:40 +0000 (+0000) Subject: * Added CSS styles to each Exif tag to make them styleable. X-Git-Tag: 1.5.0alpha2~241 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=c411e2048c58c1d6a58ffbf0f75ea45d54366adf;p=lhc%2Fweb%2Fwiklou.git * Added CSS styles to each Exif tag to make them styleable. --- diff --git a/includes/ImagePage.php b/includes/ImagePage.php index da0c720f15..7d2dc3e28f 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -91,8 +91,9 @@ class ImagePage extends Article { $r = "{| class=metadata align=right width=250px\n"; $r .= '|+ id=metadata | '. htmlspecialchars( wfMsg( 'metadata' ) ) . "\n"; foreach( $exif as $k => $v ) { - $r .= '!' . wfMsg( 'exif-' . strtolower( $k ) ) . "\n"; - $r .= '|' . htmlspecialchars( $v ) . "\n"; + $tag = strtolower( $k ); + $r .= "! class=$tag |" . wfMsg( "exif-$tag" ) . "\n"; + $r .= "| class=$tag |" . htmlspecialchars( $v ) . "\n"; $r .= "|-\n"; } return substr($r, 0, -3) . '|}';