Ignore:
Timestamp:
Sep 6, 2009, 10:26:32 AM (15 years ago)
Author:
vdigital
Message:

Partial thumbnail navigation

File:
1 edited

Legend:

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

    r3814 r3829  
     1{assign var=AK_THUMB_COUNT value=$thumbnails|@count}
     2{assign var=AK_BY_COLUMNS value=$AK_THUMB_COUNT/$AK_BY_LINE|@round}
    13<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 
    214  <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}
    245    {foreach from=$thumbnails item=thumbnail name=tn}
    256    {if ($smarty.foreach.tn.index % $AK_BY_COLUMNS == 0)}
    267    <tr class="nline">
     8      {/if}
     9      {if ($smarty.foreach.tn.first)}
     10          <td class="ncol" rowspan="{$AK_BY_LINE}">{* Left thumbnail navigation
     11          *}{if !empty($navbar) and isset($navbar.URL_PREV)}{*
     12            *}<div class="navbar fright">
     13              <a class="navButton" href="{$navbar.URL_PREV}"
     14                 title="{'previous_page'|@translate}">
     15                <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png"
     16                     class="button" alt="{'previous_page'|@translate}">
     17              </a>       
     18            </div>
     19          {/if}
     20          </td>
    2721      {/if}
    2822      <td class="ncol">
     
    3630        </div>
    3731      </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
    3846      {if ($smarty.foreach.tn.iteration % $AK_BY_COLUMNS == 0) or $smarty.foreach.tn.last }
    3947    </tr>
Note: See TracChangeset for help on using the changeset viewer.