0 Пользователей и 1 Гость просматривают эту тему.
  • 2 Ответов
  • 2650 Просмотров
*

zepterman

  • Новичок
  • 9
  • 0 / 0
Шаблон
« : 02.09.2010, 17:12:50 »
Подскажите, пожалуйста, как в шаблоне Shadowbox style 1 выключить Image Title при наведении курсора на изображение.

Код
<?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 '<script src="'.JURI::root(true).'/components/com_morfeoshow/tpl/resources/boxover/boxover.js" type="text/javascript"></script>
<table class="sboxgallery" width="100%" cellspacing="0" cellspacing="0" border="0"><tr>';
foreach ($items as $file)
{
$x=$x+1;
if ($x % $params['colonne'] == 0) {

 if ($params_morfeo['titolo'] == 0) {
$file->titolo = '';
}
else
{
if ($file->title == null)
{
$ext = array('.png','.jpg','.bmp','.gif','(',')','[',']','-','_');
$file->titolo = $file->filename;
$file->titolo = str_replace($ext, '', $file->titolo);
} else {
$file->titolo = $file->title;
}

}//end elsefilename
echo '<td id="sboxth" style="font-size:12px">
<a rel="shadowbox[Morfeo];options={slideshowDelay:6}" class="option" href="'.$path1.$file->filename.'">
<img src="'.$path2.$file->filename.'" width="'.$params_morfeo['larghezza'].'" title="header=['.$file->titolo.'] body=['.$file->html.']">
</a>
</td></tr><tr>';

}else{

 if ($params_morfeo['titolo'] == 0) {
$file->titolo = '';
}
else
{
if ($file->title == null)
{
$ext = array('.png','.jpg','.bmp','.gif','(',')','[',']','-','_');
$file->titolo = $file->filename;
$file->titolo = str_replace($ext, '', $file->titolo);
} else {
$file->titolo = $file->title;
}

}//end elsefilename
echo '<td id="sboxth" style="font-size:12px">
<a rel="shadowbox[Morfeo];options={slideshowDelay:6}" class="option" href="'.$path1.$file->filename.'">
<img src="'.$path2.$file->filename.'" width="'.$params_morfeo['larghezza'].'" title="header=['.$file->titolo.'] body=['.$file->html.']">
</a>
</td>';

}

}
}
echo '<tr></tr><tr><br /></tr></table>';
*

JASON X

  • Захожу иногда
  • 155
  • 9 / 0
Re: Шаблон
« Ответ #1 : 07.09.2010, 01:53:49 »
Этот параметр выключается в настройках MorfeoShow.
*

MR.TOR

  • Новичок
  • 8
  • 0 / 0
Re: Шаблон
« Ответ #2 : 12.10.2010, 15:51:38 »
Подскажите где лежит файл с приведенным кодом в начале темы!  Нашел, спс.........    файл называеться morfeoshow.html.php в папке компонентов.
« Последнее редактирование: 12.10.2010, 16:38:19 от MR.TOR »
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

morfeoshow и шаблон

Автор notfinger

Ответов: 0
Просмотров: 1914
Последний ответ 24.10.2011, 17:23:01
от notfinger