Sample template for version 3 image gallery
{************Config variables***********} {************//Config variables***********} {************CSS***********} {************Section view***********} {init_albumlist} {foreach from=$albumlist item=album} {************//Section view***********}
{*Put here the ID-number of your gallery template*}
{assign var=tpl value=1003}
{literal}
<style type="text/css">
<!--
.heading {
font-family: Arial, Helvetica, sans-serif;
font-size: x-small;
color: #000000;
background-color: #EFEFEF;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #999999;
}
.img {
border: 1px solid #CCCCCC;
background-color: #EFEFEF;
margin: 10px;
}
-->
</style>
{/literal}
{************//CSS***********}
{if $current_class=="section"}
{init_album id=$album->id}
{$album_editbutton}
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td class="heading"><font size="2" face="Arial, Helvetica, sans-serif">{$album_title}</font></td>
</tr>
<tr>
<td align="center">
{foreach from=$album item=obj}
<BR> <ahref="?id={$obj->id}&tpl={$tpl}"><img src="{$wwwroot}/pilt.php?{$obj->id}t" align="bottom" class=img border=0></a>
{foreachelse}
{$album_newbutton}
{/foreach}
</td>
</tr>
</table>
{foreachelse}
{$albumlist_newbutton}
{/foreach}
{else}
{************Image view***********}
{init_picture name=pic id=$id}
<table width="100%" border="0" cellspacing="0" cellpadding="4">< BR> <tr><BR> <tdclass="heading"><ahref="?id={$pic->album_href}&tpl={$tpl}" class="boxheadlink">« {sysword word="Tagasi" type="editor"}</a> | {$pic->title}</td>
</tr>
<tr>
<td align="center">
{$pic->buttons}
{if$pic_next}<ahref="?id={$pic_next}">{$pic_source}</a>{else}{$pic_source}{/if}
<br>
<span class= txt>
{if$pic_previous}<ahref="?id={$pic_previous}&tpl={$tpl}">{sysword word="Eelmine pilt" type= "editor"}</a>{/if}|{if$pic_next}<ahref="?id={$pic_next}&tpl={$tpl}">{sysword word="Jargmine pilt" type="editor"}</a>{/if}
</span>
</td>
</tr>
</table>
{************//Image view***********}
{/if}
RSS