Bonjour à tous,
Je cherche à modifier le template de la page d'accueil du module Extgallery. N'étant pas un pro, j'aimerai un peu d'aide
Par défaut, toutes les catégories sont affichées les unes sous les autres (vertical) avec le nombre de sous-album et le nombre de photos.
J'aimerai afficher uniquement les catégories en horizontal sur 5 colonnes sans le nombre de sous-album et le nombre de photos.
Le template de base est celui-ci :
<div id="extgallery">
<a href="<{xoAppUrl modules/extgallery/}>"><{$extgalleryName}></a><br /><br />
<table class="outer">
<tr>
<th><font color="#ffb41e"><{$lang.categoriesAlbums}></font></th>
<th style="text-align:center;"><font color="#ffb41e"><{$lang.nbAlbums}></font></th>
<th style="text-align:center;"><font color="#ffb41e"><{$lang.nbPhotos}></font></th>
</tr>
<{foreachq item=child from=$cats}>
<tr class="<{cycle values="even,odd"}>">
<{if $child.cat_nb_album == 0}>
<td colspan="2">
<{else}>
<td>
<{/if}>
<!-- Category/album image -->
<!-- Si l'option d'affichage de la photo de la catégorie est activée, alors -->
<{if $disp_cat_img == 1 }>
<{if $child.cat_imgurl != "" }>
<div class="catThumb" style="float:left; margin-right:5px;">
<{if $child.cat_isalbum}>
<a href="public-<{$display_type}>.php?id=<{$child.cat_id}>"><img src="<{$child.cat_imgurl}>" alt="<{$child.cat_name}>" title="<{$child.cat_name}>" /></a>
<{else}>
<a href="public-categories.php?id=<{$child.cat_id}>"><img src="<{$child.cat_imgurl}>" alt="<{$child.cat_name}>" title="<{$child.cat_name}>" /></a>
<{/if}>
</div>
<{else}>
<{if $child.photo}>
<div class="catThumb" style="float:left; margin-right:5px;">
<{if $child.cat_isalbum}>
<a href="public-<{$display_type}>.php?id=<{$child.cat_id}>"><img src="<{$xoops_url}>/uploads/extgallery/public-photo/thumb/thumb_<{$child.photo.photo_name}>" alt="<{$child.photo.photo_desc}>" title="<{$child.photo.photo_desc}>" /></a>
<{else}> <a href="public-categories.php?id=<{$child.cat_id}>"><img src="<{$xoops_url}>/uploads/extgallery/public-photo/thumb/thumb_<{$child.photo.photo_name}>" alt="<{$child.photo.photo_desc}>" title="<{$child.photo.photo_desc}>" /></a>
<{/if}>
</div>
<{/if}>
<{/if}>
<{else}>
<{if $child.photo}>
<div class="catThumb" style="float:left; margin-right:5px;">
<{if $child.cat_isalbum}>
<a href="public-<{$display_type}>.php?id=<{$child.cat_id}>"><img src="<{$xoops_url}>/uploads/extgallery/public-photo/thumb/thumb_<{$child.photo.photo_name}>" alt="<{$child.photo.photo_desc}>" title="<{$child.photo.photo_desc}>" /></a>
<{else}>
<a href="public-categories.php?id=<{$child.cat_id}>"><img src="<{$xoops_url}>/uploads/extgallery/public-photo/thumb/thumb_<{$child.photo.photo_name}>" alt="<{$child.photo.photo_desc}>" title="<{$child.photo.photo_desc}>" /></a>
<{/if}>
</div>
<{/if}>
<{/if}>
<{if $child.cat_isalbum}>
<a href="public-<{$display_type}>.php?id=<{$child.cat_id}>"><{$child.cat_name}></a><br /><{$child.cat_desc}></td>
<{else}>
<a href="public-categories.php?id=<{$child.cat_id}>"><{$child.cat_name}></a><br /><{$child.cat_desc}></td>
<{/if}>
<{if $child.cat_nb_album != 0}>
<td style="text-align:center;"><{$child.cat_nb_album}></td>
<{/if}>
<td style="text-align:center;"><{$child.cat_nb_photo}></td>
</tr>
<{/foreach}>
<!--<tr class="even"> <td><a href="user-categories.php">User categories</a><br />You can find here all user categories</td> </tr>-->
</table>
<{include file='db:system_notification_select.html'}> </div>
Si quelqu'un pouvait me donner une piste...
Merci d'avance pour votre aide