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

Last change on this file since 3814 was 3814, checked in by nikrou, 15 years ago

refactoring : remove unused stylesheet

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1<td>
2  {if !empty($navbar) and isset($navbar.URL_PREV)}
3  <div class="navbar fleft">
4    <a class="navButton" href="{$navbar.URL_PREV}"
5       title="{'previous_page'|@translate}">
6      <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png"
7           class="button" alt="{'previous_page'|@translate}">
8    </a>       
9  </div>
10  {/if}
11  {if !empty($navbar) and isset($navbar.URL_NEXT)}
12  <div class="navbar fright">
13    <a class="navButton" href="{$navbar.URL_NEXT}"
14       title="{'next_page'|@translate}">
15      <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png"
16           class="button" alt="{'next_page'|@translate}">
17    </a>
18  </div>
19  {/if}
20
21  <table class="thumbnails">
22    {assign var=AK_THUMB_COUNT value=$thumbnails|@count}
23    {assign var=AK_BY_COLUMNS value=$AK_THUMB_COUNT/$AK_BY_LINE|@round}
24    {foreach from=$thumbnails item=thumbnail name=tn}
25    {if ($smarty.foreach.tn.index % $AK_BY_COLUMNS == 0)}
26    <tr class="nline">
27      {/if}
28      <td class="ncol">
29        <div class="clipwrapper" style="width:{$AK_THUMBNAIL_SIZE}px;height:{$AK_THUMBNAIL_SIZE}px">
30          <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">
31            <a href="{$thumbnail.AK_URL}" class="load">
32              <img class="thumbnail" src="{$thumbnail.TN_SRC}"
33                   alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}">
34            </a>
35          </div>
36        </div>
37      </td>
38      {if ($smarty.foreach.tn.iteration % $AK_BY_COLUMNS == 0) or $smarty.foreach.tn.last }
39    </tr>
40    {/if}
41    {/foreach}
42  </table> {* end of Thumbnails *}
43</td>
Note: See TracBrowser for help on using the repository browser.