Ignore:
Timestamp:
Sep 6, 2009, 4:55:52 PM (15 years ago)
Author:
vdigital
Message:

Thumbnail navigation solved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/akBookStyle/trunk/template/ak_horizontal.tpl

    r3829 r3830  
    77    <tr class="nline">
    88      {/if}
    9       {if ($smarty.foreach.tn.first)}
     9      {if ($smarty.foreach.tn.first) and !empty($navbar) and isset($navbar.URL_PREV)}
    1010          <td class="ncol" rowspan="{$AK_BY_LINE}">{* Left thumbnail navigation
    11           *}{if !empty($navbar) and isset($navbar.URL_PREV)}{*
    1211            *}<div class="navbar fright">
    1312              <a class="navButton" href="{$navbar.URL_PREV}"
     
    1716              </a>       
    1817            </div>
    19           {/if}
    2018          </td>
    2119      {/if}
    2220      <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>
     21                                <div class="clipwrapper" style="width:{$AK_THUMBNAIL_SIZE}px;height:{$AK_THUMBNAIL_SIZE}px">
     22                                        <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">
     23                                                <a href="{$thumbnail.AK_URL}" class="load">
     24                                                        <img class="thumbnail" src="{$thumbnail.TN_SRC}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}">
     25                                                </a>
     26                                        </div>
     27                                </div>
    3128      </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 
    4629      {if ($smarty.foreach.tn.iteration % $AK_BY_COLUMNS == 0) or $smarty.foreach.tn.last }
    47     </tr>
     30              {if ( !empty($navbar) and isset($navbar.URL_NEXT) and !isset($done) )}
     31                                {assign var=done value=true}
     32              <td class="ncol" rowspan="{$AK_BY_LINE}">{* Right thumbnail navigation *}
     33                <div class="navbar fleft">
     34                  <a class="navButton" href="{$navbar.URL_NEXT}" title="{'next_page'|@translate}">
     35                    <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" class="button" alt="{'next_page'|@translate}">
     36                  </a>
     37                </div>
     38              </td>
     39              {/if}
     40      </tr>
    4841    {/if}
    4942    {/foreach}
Note: See TracChangeset for help on using the changeset viewer.