$result['url'] = CRM_Utils_System::url('civicrm/file', "reset=1&id={$dao->cfID}&eid={$dao->entity_id}");
$result['href'] = "<a href=\"{$result['url']}\">{$result['cleanName']}</a>";
$result['tag'] = CRM_Core_BAO_EntityTag::getTag($dao->cfID, 'civicrm_file');
+ $result['icon'] = CRM_Utils_File::getIconFromMimeType($dao->mime_type);
if ($addDeleteArgs) {
$result['deleteURLArgs'] = self::deleteURLArgs($dao->entity_table, $dao->entity_id, $dao->cfID);
}
{foreach from=$currentAttachmentInfo key=attKey item=attVal}
<div id="attachStatusMesg" class="status hiddenElement"></div>
<div id="attachFileRecord_{$attVal.fileID}">
- <strong><a href="{$attVal.url}">{$attVal.cleanName}</a></strong>
+ <strong><a href="{$attVal.url}"><i class="crm-i {$attVal.icon}"></i> {$attVal.cleanName}</a></strong>
{if $attVal.description} - {$attVal.description}{/if}
{if !empty($attVal.tag)}
<br />