Bonjour,
j'utilise deux versions de lightbox pour le module xcgal dans deux thèmes.
1er thème > theme.html (lightbox de jseffect) :
<!-- customized header contents -->
<{$xoops_module_header}>
<!-- effet lightbox -->
<script type="text/javascript" src="<{$xoops_url}>/jseffects/prototype.js"></script>
<script type="text/javascript" src="<{$xoops_url}>/jseffects/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="<{$xoops_url}>/jseffects/lightbox.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_url}>/jseffects/lightbox.css" />
<!-- fin effet lightbox -->
2ème thème > theme.html (jquery lightbox) :
<!-- barre de navigation flottante -->
<link rel="stylesheet" href="<{$xoops_url}>/themes/Arena_Blue_+/wbarrefixe.css" type="text/css" media="screen" />
<!–[if IE 6]>
<link rel="stylesheet" href="wbarrefixe-ie6.css" type="text/css" media="screen" />
<![endif]–>
<script src="<{$xoops_url}>/themes/Arena_Blue_+/jquery.js" type="text/javascript"></script>
<script src="<{$xoops_url}>/themes/Arena_Blue_+/jquery.cookie.js" type="text/javascript"></script>
<script src="<{$xoops_url}>/themes/Arena_Blue_+/wbarrefixe.packed.js" type="text/javascript"></script>
<!-- fin barre de navigation flottante -->
<!-- effet lightbox jquery-lightbox-0.5 -->
<script type="text/javascript" src="<{$xoops_url}>/jquery-lightbox-0.5/js/jquery.lightbox-0.5.js"></script>
<link rel="stylesheet" type="text/css" href="<{$xoops_url}>/jquery-lightbox-0.5/css/jquery.lightbox-0.5.css" media="screen" />
<script type="text/javascript">
$(function() {
$('a[@rel*=lightbox]').lightBox(); // Select all
});
</script>
enfin, le displayimage.php de xcgal
// Lightbox //
$header_lightbox = '
<link rel="stylesheet" type="text/css" href="<{$xoops_url}>/jquery-lightbox-0.5/css/jquery.lightbox-0.5.css" media="screen" />';
$xcgal_module_header .= $header_lightbox;
//fin Lightbox //
...
//lightbox
$xoopsTpl->assign('picture_lightbox_url', get_pic_url($CURRENT_PIC_DATA, 'fullsize'));
//fin lightbox
Les lightbox fonctionnent dans les deux cas, le leger souci est que les icônes de la lightbox de jseffect ne s'affichent pas > croix rouges à la place, si quelqu'un à une idée....
merci pour toute aide
a+