| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/icd/components/com_morfeoshow/tpl/classic/ |
Upload File : |
<?php
/**
* @package Joomla
* @subpackage com_morfeoshow
* @copyright Copyright (C) Vamba & Matthew Thomson. All rights reserved.
* @license GNU/GPL.
* @author Vamba (.joomlaitalia.com) & Matthew Thomson (ignitejoomlaextensions.com)
* @based on com_ignitiongallery
* @author Matthew Thomson (ignitejoomlaextensions.com)
* Joomla! and com_morfeoshow are free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed they include or
* are derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/
defined( '_JEXEC' ) or die( 'Restricted access' );
$result = $count;
if($result > 0) {
$x=0;
if ($params_morfeo['style'] == 1) {
echo '<style>';
echo $params_morfeo['style1'];
echo '</style>';
}
else
{
echo '<style>
.sboxgallery {padding: 10px 10px 30px 30px;}
#sboxth {padding: 0 5px 15px 0;text-align:center;font-size:10px;width:100px;}
#sboxth img {border: 1px solid #eeeccc; border-width: 2px 2px 2px;}
#sboxth a:hover img {border: 1px solid #3e3e3e;border-width: 2px 2px 2px;}
</style>';
}
echo '<table class="sboxgallery" width="100%" cellpadding="0" cellspacing="0" border="0"><tr>';
foreach ($items as $file)
{
$x=$x+1;
if ($x % $params['colonne'] == 0) {
if ($file->html =='')
{
echo '<td id="sboxth">
<a class="photo-link" rel="one-big-group" href="'.$path1.$file->filename.'">
<img src="'.$path2.$file->filename.'" width="'.$params_morfeo['larghezza'].'">
</a>
<br />
';
}
else
{
echo '
<td id="sboxth">
<a class="photo-link" rel="one-big-group" href="'.$path1.$file->filename.'">
<img src="'.$path2.$file->filename.'" width="'.$params_morfeo['larghezza'].'" title="'.$file->html.'" alt="'.$file->html.'">
</a>
<br />'
;
}//fine else immagine
if ($params_morfeo['titolo'] == 0) {
}
else
{
if ($file->title == null)
{
$ext = array('.png','.jpg','.bmp','.gif','(',')','[',']','-','_');
$file->filename = str_replace($ext, '', $file->filename);
echo $file->filename;
}
else
{
echo $file->title;
}//end elsefilename
}//end else titolo
echo'</td></tr><tr>';
}else{
if ($file->html =='')
{
echo '<td id="sboxth">
<a class="photo-link" rel="one-big-group" href="'.$path1.$file->filename.'">
<img src="'.$path2.$file->filename.'" width="'.$params_morfeo['larghezza'].'">
</a>
<br />
';
}
else
{
echo '
<td id="sboxth">
<a class="photo-link" rel="one-big-group" href="'.$path1.$file->filename.'">
<img src="'.$path2.$file->filename.'" width="'.$params_morfeo['larghezza'].'" title="'.$file->html.'" alt="'.$file->html.'">
</a>
<br />'
;
}//fine else immagine
if ($params_morfeo['titolo'] == 0) {
}
else
{
if ($file->title == null)
{
$ext = array('.png','.jpg','.bmp','.gif','(',')','[',']','-','_');
$file->filename = str_replace($ext, '', $file->filename);
echo $file->filename;
}
else
{
echo $file->title;
}//end elsefilename
}//end else titolo
echo'</td>';
}
}
}
echo '</td></tr><tr><td></br /></td></tr></table>';