/**
  * Returns a linked image-tag for thumbnail(s)
  *
  * @param	mixed		$fileInfo Is a file path or an array containing a file info from tx_dam::file_compileInfo().
  * @param	string		$size Optional: $size is [w]x[h] of the thumbnail. 56 is default.
  * @param	string		$titleContent Optional: Used as a title= attribute content
  * @param	mixed		$imgAttributes Optional: is additional attributes for the image tags
  * @param	mixed		$iconAttributes Optional: additional attributes for the image tags for file icons
  * @param	string		$onClick Optional: If falso no A tag with onclick will be wrapped. If NULL top.launchView() will be used. If string it's value will be used as onclick value.
  * @param	boolean		$makeFileIcon If true a file icon will be returned if no thumbnail is possible
  * @return	string		Thumbnail image tag.
  * @deprecated - really?
  */
 function thumbnail($fileInfo, $size = '', $titleContent = '', $imgAttributes = '', $iconAttributes = '', $onClick = NULL, $makeFileIcon = TRUE)
 {
     // get some file information
     if (!is_array($fileInfo)) {
         $fileInfo = tx_dam::file_compileInfo($fileInfo);
     }
     if (!is_array($imgAttributes)) {
         $imgAttributes = tx_dam_guifunc::tools_explodeAttributes($imgAttributes);
     }
     $titleContent = $titleContent ? $titleContent : ($imgAttributes['title'] ? $imgAttributes['title'] : tx_dam_guiFunc::meta_compileHoverText($fileInfo, '', ' - '));
     $imgAttributes['title'] = $titleContent;
     if (!($onClick === false)) {
         $filepath = tx_dam::file_absolutePath($fileInfo);
         $imgAttributes['onclick'] = !is_null($onClick) ? $onClick : (TYPO3_MODE === 'BE' ? 'top.launchView(\'' . $filepath . '\',\'\',\'' . $GLOBALS['BACK_PATH'] . '\');return false;' : false);
     }
     if ($makeFileIcon) {
         if (!is_array($iconAttributes)) {
             $iconAttributes = tx_dam_guifunc::tools_explodeAttributes($iconAttributes);
         }
         $iconAttributes['title'] = isset($iconAttributes['title']) ? $iconAttributes['title'] : $titleContent;
     }
     $thumbnail = tx_dam_guiFunc::image_thumbnailIconImgTag($fileInfo, $size, $imgAttributes, $iconAttributes, $makeFileIcon);
     return $thumbnail;
 }