/**
  * Returns a big media type icon from a record
  *
  * @param	array		$infoArr Record/info array: eg. $pathInfo = tx_dam::path_getInfo($path)
  * @param	mixed		$addAttrib Additional attributes for the image tag.
  * @param	boolean		$addTitleAttr If set a title attribute will be added
  * @return	string		Rendered icon img tag
  */
 function icon_getMediaTypeImgTag($infoArr, $addAttrib = '', $addTitleAttr = true)
 {
     global $LANG, $TYPO3_CONF_VARS;
     require_once PATH_t3lib . 'class.t3lib_iconworks.php';
     if (is_array($addAttrib)) {
         $addAttrib = tx_dam_guifunc::tools_implodeAttributes($addAttrib);
     }
     if ($addTitleAttr) {
         $label = tx_dam_guifunc::getLabelFromItemlist('tx_dam', 'media_type', $infoArr['media_type']);
         $label = strtoupper(trim($LANG->sL($label)));
         $addAttrib .= ' title="' . htmlspecialchars($label) . '"';
     }
     $iconname = tx_dam::convert_mediaType($infoArr['media_type']);
     $iconfile = 'i/media-' . $iconname . '.png';
     if (TYPO3_MODE === 'FE') {
         $iconfile = PATH_txdam_siteRel . $iconfile;
     } else {
         $iconfile = PATH_txdam_rel . $iconfile;
     }
     $icon = '<img' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], $iconfile, 'width="29" height="27"') . ' ' . trim($addAttrib) . ' alt="" />';
     return $icon;
 }