New View - PICTURE VIEW
Posted: 30 Mar 2010, 16:18
When you go to file view there is 2 preview images and there is no link,so I change it and this is what I have changed so far:
instead to open those pictures in a new blank page, is it possible to to open it in a new view? so the pictures will be "inside" the site?
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;
}