Changeset 3773


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)

Location:
extensions/akBookStyle/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/akBookStyle/trunk/css/ak_style.css

    r3770 r3773  
    33
    44td table.thumbnails {
     5        margin-right:20%;
    56}
    67
    78tr.nline {
     9        max-height:90px;
     10        overflow:hidden;
    811}
    912
    1013td.ncol {
     14        max-height:90px;
     15        max-width:90px;
     16        overflow:hidden;
     17        text-align:center;
     18        padding:2px 8px;
     19}
     20
     21td.ak_pic {
     22        min-width:640px;
     23        text-align:center;
    1124}
    1225
    1326a.load {
     27        height:90px;
     28        width:90px;
    1429}
    1530
    1631a.load img {
     32        height:90px;
     33        overflow:hidden;
    1734}
    1835
    1936td.left {
     37        text-align:left;
    2038}
    2139
  • extensions/akBookStyle/trunk/template/ak_reloaded_image.tpl

    r3764 r3773  
    33  <table class="picture">
    44    <tr class="nline">
    5       <td class="ncol"> {* will be an include *}
     5      <td class="ncol">
    66        {if isset($AK_PREVIOUS) }
    77
     
    1717   
    1818    <tr class="nline">
    19       <td class="ncol"> {* will be an include *}
     19      <td class="ak_pic">
    2020        <img src="{$AK_PIC_SRC}" alt="{$AK_PIC_ALT}" title="{$AK_PIC_TITLE}">
    2121      </td>
     
    2323   
    2424    <tr class="nline">
    25       <td class="ncol"> {* will be an include *}
     25      <td class="ncol">
    2626        {if !empty($AK_NEXT) }
    2727        <a class="{$AK_NEXT.load} navButton" href="{$AK_NEXT.U_PIC}"
  • 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.