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

Last change on this file since 3807 was 3807, checked in by vdigital, 15 years ago

Horizontal thumbnails location

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