primo commit
This commit is contained in:
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
@ -0,0 +1,35 @@
|
||||
<?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'); ?>
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
<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();">'. 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;">'. Text::_( 'COM_PHOCAGALLERY_FILENAME_NOT_EXISTS' ).'</center>';
|
||||
} else {
|
||||
//echo '<a href="#" onclick="SqueezeBox.close();">'. JHtml::_('image', $this->file->linkthumbnailpath .'?imagesid='.md5(uniqid(time())), '').'</a>';
|
||||
|
||||
echo '<a href="#" onclick="SqueezeBox.close();"><img src="'.Uri::root().$this->file->linkthumbnailpath.'?imagesid='.md5(uniqid(time())).'" alt="" /></a>';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/*
|
||||
* @package Joomla.Framework
|
||||
* @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*
|
||||
* @component Phoca Component
|
||||
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License version 2 or later;
|
||||
*/
|
||||
defined('_JEXEC') or die();
|
||||
use Joomla\CMS\MVC\View\HtmlView;
|
||||
jimport( 'joomla.application.component.view');
|
||||
|
||||
class PhocaGalleryCpViewPhocaGalleryD extends HtmlView
|
||||
{
|
||||
protected $file;
|
||||
|
||||
public function display($tpl = null) {
|
||||
$this->file = $this->get('Data');
|
||||
parent::display($tpl);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user