1 | {assign var=AK_THUMB_COUNT value=$thumbnails|@count} |
---|
2 | {assign var=AK_BY_COLUMNS value=$AK_THUMB_COUNT/$AK_BY_LINE|@round} |
---|
3 | <td> |
---|
4 | <table class="thumbnails"> |
---|
5 | {foreach from=$thumbnails item=thumbnail name=tn} |
---|
6 | {if ($smarty.foreach.tn.index % $AK_BY_COLUMNS == 0)} |
---|
7 | <tr class="nline"> |
---|
8 | {/if} |
---|
9 | {if ($smarty.foreach.tn.first)} |
---|
10 | <td class="ncol" rowspan="{$AK_BY_LINE}">{* Left thumbnail navigation |
---|
11 | *}{if !empty($navbar) and isset($navbar.URL_PREV)}{* |
---|
12 | *}<div class="navbar fright"> |
---|
13 | <a class="navButton" href="{$navbar.URL_PREV}" |
---|
14 | title="{'previous_page'|@translate}"> |
---|
15 | <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" |
---|
16 | class="button" alt="{'previous_page'|@translate}"> |
---|
17 | </a> |
---|
18 | </div> |
---|
19 | {/if} |
---|
20 | </td> |
---|
21 | {/if} |
---|
22 | <td class="ncol"> |
---|
23 | <div class="clipwrapper" style="width:{$AK_THUMBNAIL_SIZE}px;height:{$AK_THUMBNAIL_SIZE}px"> |
---|
24 | <div class="clip" style="clip:rect({$thumbnail.CLIP_TOP}px {$thumbnail.CLIP_RIGHT}px {$thumbnail.CLIP_BOTTOM}px {$thumbnail.CLIP_LEFT}px);top:-{$thumbnail.CLIP_TOP}px;left:-{$thumbnail.CLIP_LEFT}px"> |
---|
25 | <a href="{$thumbnail.AK_URL}" class="load"> |
---|
26 | <img class="thumbnail" src="{$thumbnail.TN_SRC}" |
---|
27 | alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}"> |
---|
28 | </a> |
---|
29 | </div> |
---|
30 | </div> |
---|
31 | </td> |
---|
32 | {if ($smarty.foreach.tn.index == $AK_BY_COLUMNS) or ($smarty.foreach.tn.index < $AK_BY_COLUMNS and $smarty.foreach.tn.last)} |
---|
33 | <td class="ncol" rowspan="{$AK_BY_LINE}">{* Right thumbnail navigation *} |
---|
34 | {if !empty($navbar) and isset($navbar.URL_NEXT)} |
---|
35 | <div class="navbar fleft"> |
---|
36 | <a class="navButton" href="{$navbar.URL_NEXT}" |
---|
37 | title="{'next_page'|@translate}"> |
---|
38 | <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" |
---|
39 | class="button" alt="{'next_page'|@translate}"> |
---|
40 | </a> |
---|
41 | </div> |
---|
42 | {/if} |
---|
43 | </td> |
---|
44 | {/if} |
---|
45 | |
---|
46 | {if ($smarty.foreach.tn.iteration % $AK_BY_COLUMNS == 0) or $smarty.foreach.tn.last } |
---|
47 | </tr> |
---|
48 | {/if} |
---|
49 | {/foreach} |
---|
50 | </table> {* end of Thumbnails *} |
---|
51 | </td> |
---|