* Add an image to the gallery.
*
* @param Image $image Image object that is added to the gallery
- * @param string $text Additional text to be shown. The name and size of the image are always shown.
+ * @param string $html Additional HTML text to be shown. The name and size of the image are always shown.
*/
- function add( $image, $text='' ) {
- $this->mImages[] = array( &$image, $text );
+ function add( $image, $html='' ) {
+ $this->mImages[] = array( &$image, $html );
}
/**
'<table width="100%" height="150px">'.
'<tr><td align="center" valign="center" style="background-color:#F8F8F8;border:solid 1px #888888;">' .
$sk->makeKnownLinkObj( $nt, '<img src="'.$img->createThumb(120,120).'" alt="" />' ) . '</td></tr></table> ' .
- $textlink . htmlspecialchars( $text ) . $nb;
+ $textlink . $text . $nb;
$s .= "</td>\n" . (($i%4==3) ? "</tr>\n" : '');
} else {
$label = '';
}
- $ig->add( Image::newFromTitle( $nt ), $label );
+
+ # FIXME: Use the full wiki parser and add its links
+ # to the page's links.
+ $html = $this->mOptions->mSkin->formatComment( $label );
+
+ $ig->add( Image::newFromTitle( $nt ), $html );
$wgLinkCache->addImageLinkObj( $nt );
}
return $ig->toHTML();