Ignore:
Timestamp:
Jul 6, 2012, 4:32:18 PM (12 years ago)
Author:
flop25
Message:

update for 2.4 : really amazing !

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/flop_style/mainpage_categories/jPolaroid.tpl

    r12673 r16393  
    2020  {/literal}
    2121{/html_head}
     22{assign var=crop value=$derivative_params->sizing->max_crop}
     23{if $crop==1}
     24{assign var=crop value=true}
     25{assign var=width value=$derivative_params->max_width()}
     26{else}
     27{assign var=crop value=false}
     28{assign var=width value=99999}
     29{/if}
     30{define_derivative name='derivative_jPolaroid' width=$width height=$derivative_params->max_height() crop=$crop}
    2231
    2332<ul class="jpolaroid">
     
    2534  <li>
    2635                        <a href="{$cat.URL}" title="{$cat.NAME|@replace:'"':' '}">
    27                                 <img src="{$cat.TN_SRC}"  alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '} - {'display this album'|@translate}" >
     36                                <img src="{$pwg->derivative_url($derivative_jPolaroid, $cat.representative.src_image)}"  alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '} - {'display this album'|@translate}" >
    2837                        </a>
    2938        </li>
Note: See TracChangeset for help on using the changeset viewer.