Changeset 3814 for extensions/akBookStyle/trunk/template/ak_horizontal.tpl
- Timestamp:
- Sep 1, 2009, 9:50:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/akBookStyle/trunk/template/ak_horizontal.tpl
r3807 r3814 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 *} 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} 48 20 49 </td> 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 TracChangeset
for help on using the changeset viewer.