#foreach ($attachment in $attachments) #if (!$attachment.deleted) #set ($imageSize = $brikitCore.getImageAttachmentSize($attachment)) #set ($h = $imageSize.height) #set ($w = $imageSize.width) #if ($w > $h) #set ($hPad = ($thumbnail-height - ($h * $thumbnail-width / $w)) / 2) #set ($vPad = 0) #else #set ($hPad = 0) #set ($vPad = ($thumbnail-width - ($w * $thumbnail-height / $h)) / 2) #end #if ($h < $thumbnail-height && $w < $thumbnail-width) #set ($hPad = ($thumbnail-height - $h) / 2) #end #if ($h > $thumbnail-height) #set ($hPrev = $thumbnail-height) #else #set ($hPrev = $h) #end #if ($w > $thumbnail-width) #set ($wPrev = $thumbnail-width) #else #set ($wPrev = $w) #end #set ($showToolTip = $show-tool-tip) #set ($attachmentPageTitle = $attachment.content.title) #set ($attachmentComment = $attachment.comment)
$h) width="${wPrev}px" #else height="${hPrev}px" #end />#if ($show-title == "page-title")
$brikitCore.getPage($attachment).title
#elseif ($show-title == "image-name")
$attachment.title
#elseif ($show-title == "image-comment")
#if ($brikitCore.isSet($attachment.comment))$attachment.comment#{else}$attachment.content.title#end
#end
#end #end