# image
# "Download high res version" link below the image
- $msgbig = wfMsgHtml('show-big-image');
$msgsize = wfMsgHtml('file-info-size', $width_orig, $height_orig, $sk->formatSize( $this->img->getSize() ), $mime );
# We'll show a thumbnail of this image
if ( $width > $maxWidth || $height > $maxHeight ) {
# Note that $height <= $maxHeight now, but might not be identical
# because of rounding.
}
+ $msgbig = wfMsgHtml('show-big-image');
+ $msgsmall = wfMsg('show-big-image-thumb', $width, $height );
+ } else {
+ # Image is small enough to show full size on image page
+ $msgbig = $this->img->getName();
+ $msgsmall = wfMsg( 'file-nohires' );
}
+
$params['width'] = $width;
$thumbnail = $this->img->transform( $params );
$showLink = true;
} else {
$anchorclose .=
- wfMsg('show-big-image-thumb', $width, $height ) .
+ $msgsmall .
'<br />' . Xml::tags( 'a', $linkAttribs, $msgbig ) . ' ' . $msgsize;
}
// Check for MIME type. Other types may have more information in the future.
if (substr($mime,0,9) == 'image/svg' ) {
$infores = wfMsg('file-svg', $width_orig, $height_orig ) . '<br />';
- } elseif ( substr($mime,0,5) == 'image' ) {
- $infores = wfMsg('file-nohires') . '<br />';
- $info = wfMsg(
- 'file-info-size',
- $width_orig, $height_orig,
- $sk->formatSize( $this->img->getSize() ),
- $mime );
}
global $wgContLang;