Code: Select all
if ((int)$this->tmpl['display_file_view'] == 1) {
$images = '<table border="0" width="65%">';
//Specific icons
if (isset($valueDoc->image_filename_spec1) && $valueDoc->image_filename_spec1 != '') {
$iconPath = PhocaDownloadHelper::getPathSet('icon');
$iconPath = str_replace ( '../', JURI::base(true).'/', $iconPath['orig_rel_ds']);
$images .= '<tr><td width="32%"><a href="'.$iconPath . $valueDoc->image_filename_spec1.'" target="_blank"><img src="'.$iconPath . $valueDoc->image_filename_spec1.'" alt="" width="100%" height="130px"/></a></td>';
$images .= '<td width="1%"> </td>';
}
if (isset($valueDoc->image_filename_spec2) && $valueDoc->image_filename_spec2 != '') {
$iconPath = PhocaDownloadHelper::getPathSet('icon');
$iconPath = str_replace ( '../', JURI::base(true).'/', $iconPath['orig_rel_ds']);
$images .= '<td width="33%"><a href="'.$iconPath . $valueDoc->image_filename_spec2.'" target="_blank"><img src="'.$iconPath . $valueDoc->image_filename_spec2.'" alt="" width="100%" height="130px"/></a></td>';
}
$images .= '</tr>';
$images .='</table><br/>';
echo $images;
}

