| Current Path : /home/zieirix/www/administrator/components/com_phocagallery/views/phocagalleryd/tmpl/ |
| Current File : /home/zieirix/www/administrator/components/com_phocagallery/views/phocagalleryd/tmpl/default.php |
<?php
/*
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*
* @component Phoca Gallery
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
defined('_JEXEC') or die('Restricted access'); ?>
<table border="0" width="100%">
<tr>
<td align="center" valign="middle" height="486"><?php
if (isset($this->file->extid) && $this->file->extid !='') {
$resW = explode(',', $this->file->extw);
$resH = explode(',', $this->file->exth);
$correctImageRes = PhocaGalleryImage::correctSizeWithRate($resW[0], $resH[0], 640, 480);
echo '<a href="#" onclick="SqueezeBox.close();">'. Joomla\CMS\HTML\HTMLHelper::_('image', $this->file->extl .'?imagesid='.md5(uniqid(time())), '').'</a>';
} else if ($this->file->linkthumbnailpath=='') {
echo '<center style="font-size:large;font-weight:bold;color:#b3b3b3;font-family: Helvetica, sans-serif;">'. JText::_( 'COM_PHOCAGALLERY_FILENAME_NOT_EXISTS' ).'</center>';
} else {
//echo '<a href="#" onclick="SqueezeBox.close();">'. Joomla\CMS\HTML\HTMLHelper::_('image', $this->file->linkthumbnailpath .'?imagesid='.md5(uniqid(time())), '').'</a>';
echo '<a href="#" onclick="SqueezeBox.close();"><img src="'.JURI::root().$this->file->linkthumbnailpath.'?imagesid='.md5(uniqid(time())).'" alt="" /></a>';
}
?>
</td>
</tr>
</table>