source: extensions/akBookStyle/trunk/template/ak_horizontal.tpl

Last change on this file was 5432, checked in by nikrou, 14 years ago

html select tag for applicable categories
show selected thumbnail
prepare localization for gettext

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
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) and !empty($navbar) and isset($navbar.URL_PREV)}
10          <td rowspan="{$AK_BY_LINE}">{* Left thumbnail navigation *}
11            <div class="navbar fright">
12              <a  rel="previous" class="navButton" href="{$navbar.URL_PREV}" title="{'Previous page'|@translate}">
13                <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" class="button" alt="{'Previous page'|@translate}">
14              </a>       
15            </div>
16          </td>
17      {/if}
18      <td class="ncol{if ($smarty.foreach.tn.first)} selected{/if}">
19        <div class="clipwrapper" style="width:{$AK_THUMBNAIL_SIZE}px;height:{$AK_THUMBNAIL_SIZE}px">
20          <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">
21            <a href="{$thumbnail.URL}" class="load">
22              <img class="thumbnail" src="{$thumbnail.TN_SRC}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}">
23            </a>
24          </div>
25        </div>
26      </td>
27      {if ($smarty.foreach.tn.iteration % $AK_BY_COLUMNS == 0) or $smarty.foreach.tn.last }
28      {if ( !empty($navbar) and isset($navbar.URL_NEXT) and !isset($done) )}
29      {assign var=done value=true}
30      <td rowspan="{$AK_BY_LINE}">{* Right thumbnail navigation *}
31        <div class="navbar fleft">
32          <a rel="next" class="navButton" href="{$navbar.URL_NEXT}" title="{'Next page'|@translate}">
33            <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" class="button" alt="{'Next page'|@translate}">
34          </a>
35        </div>
36      </td>
37      {/if}
38    </tr>
39    {/if}
40    {/foreach}
41  </table> {* end of Thumbnails *}
42</td>
Note: See TracBrowser for help on using the repository browser.