Files
@ 7ec91347b83f
Branch filter:
Location: hot67beta/components/com_morfeoshow/tpl/classic/shadowbox4.php
7ec91347b83f
4.2 KiB
text/x-php
there we go
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | <?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['style0'] == 1) {
echo '<style>';
echo $params_morfeo['style2'];
echo '</style>';
}
else
{
?>
<style>
a img, img { border: none; text-decoration: none; }
#page-wrap { width: auto; margin: 0 auto; }
.photo-link {padding: 5px;margin: 5px;border: 1px solid #999;display: block;width: <?php echo $params_morfeo['larghezza']?>px;text-align:center;font-size:9px;text-decoration: none;}
.photo-link:hover{border-color: white;text-decoration: none;}
</style>
<?php
}
echo '<table class="sboxgallery" width="100%" cellpadding="0" cellspacing="0" border="0"><tr>';
echo '<div id="page-wrap">';
foreach ($items as $file)
{
$x=$x+1;
if ($x % $params['colonne'] == 0) {
if ($file->html =='')
{
echo '<td align="center"><a class="photo-link" rel="shadowbox[Morfeo];options={slideshowDelay:6}" class="option" href="'.$path1.$file->filename.'">
<img src="'.$path2.$file->filename.'" width="'.$params_morfeo['larghezza'].'">';
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 '</a>';
}
else
{
echo '<td align="center"><a class="photo-link" rel="shadowbox[Morfeo];options={slideshowDelay:6}" class="option" href="'.$path1.$file->filename.'">
<img src="'.$path2.$file->filename.'" width="'.$params_morfeo['larghezza'].'" title="'.$file->html.'" alt="'.$file->html.'">'
;
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 '</a>';
}//fine else immagine
echo'</td></tr><tr>';
}else{
if ($file->html =='')
{
echo '<td align="center"><a class="photo-link" rel="shadowbox[Morfeo];options={slideshowDelay:6}" class="option" href="'.$path1.$file->filename.'">
<img src="'.$path2.$file->filename.'" width="'.$params_morfeo['larghezza'].'">';
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 '</a>';
}
else
{
echo '<td align="center"><a class="photo-link" rel="shadowbox[Morfeo];options={slideshowDelay:6}" class="option" href="'.$path1.$file->filename.'">
<img src="'.$path2.$file->filename.'" width="'.$params_morfeo['larghezza'].'" title="'.$file->html.'" alt="'.$file->html.'">'
;
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 '</a>';
}//fine else immagine
echo'</td>';
}
}
}
echo '</div>';
echo '</td></tr><tr><td></br /></td></tr></table>';
|