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/polaroid.tpl

    r9834 r16393  
    11{combine_css path="template-extension/flop_style/mainpage_categories/polaroid.css"}
     2{html_style}{literal}
     3ul.polaroids a {
     4        height:{/literal}{$derivative_params->max_height()+30}{literal}px;
     5}
     6ul.polaroids li
     7{
     8        height:{/literal}{$derivative_params->max_height()+70}{literal}px;
     9}
     10{/literal}{/html_style}
    211
     12{define_derivative name='derivative_polaroid' width=$derivative_params->max_width() height=$derivative_params->max_height() crop=true}
    313<ul class="polaroids">
    414{foreach from=$category_thumbnails item=cat}
    515  <li>
    616                        <a href="{$cat.URL}" title="{$cat.NAME|truncate:20:" [...]"|@replace:'"':' '}">
    7                                 <img src="{$cat.TN_SRC}"  alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '} - {'display this album'|@translate}" >
     17                                <img src="{$pwg->derivative_url($derivative_polaroid, $cat.representative.src_image)}"  alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '} - {'display this album'|@translate}" >
    818                        </a>
    919        </li>
Note: See TracChangeset for help on using the changeset viewer.