Ignore:
Timestamp:
Sep 19, 2009, 1:02:09 PM (15 years ago)
Author:
nikrou
Message:

Bug 1159: fix
Medium image are loaded in ajax mode.

File:
1 edited

Legend:

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

    r3830 r3876  
    88      {/if}
    99      {if ($smarty.foreach.tn.first) and !empty($navbar) and isset($navbar.URL_PREV)}
    10           <td class="ncol" rowspan="{$AK_BY_LINE}">{* Left thumbnail navigation
    11             *}<div class="navbar fright">
    12               <a class="navButton" href="{$navbar.URL_PREV}"
    13                  title="{'previous_page'|@translate}">
    14                 <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png"
    15                      class="button" alt="{'previous_page'|@translate}">
     10          <td class="ncol" rowspan="{$AK_BY_LINE}">{* Left thumbnail navigation *}
     11            <div class="navbar fright">
     12              <a class="navButton" href="{$navbar.URL_PREV}" title="{'previous_page'|@translate}">
     13                <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" class="button" alt="{'previous_page'|@translate}">
    1614              </a>       
    1715            </div>
     
    1917      {/if}
    2018      <td class="ncol">
    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>
     19        <div class="clipwrapper" style="width:{$AK_THUMBNAIL_SIZE}px;height:{$AK_THUMBNAIL_SIZE}px">
     20          <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">
     21            <a href="{$thumbnail.URL}" class="load">
     22              <img class="thumbnail" src="{$thumbnail.TN_SRC}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}">
     23            </a>
     24          </div>
     25        </div>
    2826      </td>
    2927      {if ($smarty.foreach.tn.iteration % $AK_BY_COLUMNS == 0) or $smarty.foreach.tn.last }
    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>
     28      {if ( !empty($navbar) and isset($navbar.URL_NEXT) and !isset($done) )}
     29      {assign var=done value=true}
     30      <td class="ncol" rowspan="{$AK_BY_LINE}">{* Right thumbnail navigation *}
     31        <div class="navbar fleft">
     32          <a class="navButton" href="{$navbar.URL_NEXT}" title="{'next_page'|@translate}">
     33            <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" class="button" alt="{'next_page'|@translate}">
     34          </a>
     35        </div>
     36      </td>
     37      {/if}
     38    </tr>
    4139    {/if}
    4240    {/foreach}
Note: See TracChangeset for help on using the changeset viewer.