Ignore:
Timestamp:
Aug 21, 2009, 9:03:52 PM (15 years ago)
Author:
vdigital
Message:

AK_BY_LINE revised logic
Some CSS basics (to be reviewed)

File:
1 edited

Legend:

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

    r3770 r3773  
    2626
    2727{if !empty($thumbnails)}
    28 <table class="ak_display">
     28<table class="ak_display"> 
    2929  <tr>
    3030    <td>
    31       {* thumbnails in table versus *}
     31
    3232      <table class="thumbnails">
    33         {foreach from=$thumbnails item=thumbnail name=tn}
    34         {if $smarty.foreach.tn.index % $AK_BY_LINE == 0}
    35         <tr class="nline">
    36           {/if}
    37           <td class="ncol">
    38             <a href="{$thumbnail.AK_URL}" class="load">
    39               <img class="thumbnail" src="{$thumbnail.TN_SRC}"
    40                    alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}">
    41             </a>
    42           </td>
    43           {if ($smarty.foreach.tn.index+1) % $AK_BY_LINE == 0}
    44         </tr>
    45         {/if}
    46         {/foreach}
     33        {foreach from=$thumbnails item=thumbnail name=tn}
     34        {if $smarty.foreach.tn.index % $AK_BY_LINE == 0}
     35        <tr class="nline">
     36          {/if}
     37          <td class="ncol">
     38            <a href="{$thumbnail.AK_URL}" class="load">
     39              <img class="thumbnail" src="{$thumbnail.TN_SRC}"
     40             alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}">
     41            </a>
     42          </td>
     43        {if ($smarty.foreach.tn.iteration % $AK_BY_LINE == 0) or $smarty.foreach.tn.last }
     44        </tr>
     45        {/if}
     46        {/foreach}
     47       
     48        {if !empty($NAV_BAR) } {* thumbnails navigation bar *}
     49        <tr class="nline">
     50          <td class="left">
     51            {if isset($AK_NAV_PREV)}
     52            <a class="navButton" href="{$AK_NAV_PREV}"
     53               title="{'previous_page'|@translate}">
     54              <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png"
     55             class="button" alt="{'previous_page'|@translate}">
     56            </a>
     57            {/if}
     58          </td>
     59          <td class="right">
     60            {if isset($AK_NAV_NEXT)}
     61            <a class="navButton" href="{$AK_NAV_NEXT}"
     62               title="{'next_page'|@translate}">
     63              <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png"
     64             class="button" alt="{'next_page'|@translate}">
     65            </a>
     66            {/if}
     67          </td>
     68        </tr>
     69        {/if}
     70      </table> {* end of Thumbnails *}
    4771
    48         {*
    49         need to be fix for AK_BY_LINE != 2
    50         we must add <td></td> if count($thumbnails) % $AK_BY_LINE != 0
    51         *}
    52        
    53         {if ($smarty.foreach.tn.index) % $AK_BY_LINE == 0}
    54         <td></td></tr>
    55         {/if}
    56        
    57         {if !empty($NAV_BAR) } {* thumbnails navigation bar *}
    58         <tr class="nline">
    59           <td class="left">
    60             {if isset($AK_NAV_PREV)}
    61             <a class="navButton" href="{$AK_NAV_PREV}"
    62                title="{'previous_page'|@translate}">
    63               <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png"
    64                    class="button" alt="{'previous_page'|@translate}">
    65             </a>
    66             {/if}
    67           </td>
    68           <td class="right">
    69             {if isset($AK_NAV_NEXT)}
    70             <a class="navButton" href="{$AK_NAV_NEXT}"
    71                title="{'next_page'|@translate}">
    72               <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png"
    73                    class="button" alt="{'next_page'|@translate}">
    74             </a>
    75             {/if}
    76           </td>
    77         </tr>
    78         {/if}
    79       </table>
    8072    </td>
    8173   
    82     <td>
     74    <td> {* Picture *}
    8375      {include file=$AK_RELOADED_IMAGE_TPL|@get_extent:'picture_reload'}
    8476    </td>
Note: See TracChangeset for help on using the changeset viewer.