Ignore:
Timestamp:
Mar 14, 2012, 9:19:25 AM (12 years ago)
Author:
patdenice
Message:

Automaticaly set better derivative params for mobile theme according to screen size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/smartpocket/template/mainpage_categories.tpl

    r13472 r13545  
    1 {define_derivative name='derivative_params_square' type='square'}
    2 
    31<ul data-role="listview" data-inset="true">
    42{foreach from=$category_thumbnails item=cat}
    53        <li>
    64                <a href="{$cat.URL}">
    7                 <img src="{$pwg->derivative_url($derivative_params_square, $cat.representative.src_image)}">
     5                <img src="{$pwg->derivative_url($thumbnail_derivative_params, $cat.representative.src_image)}">
    86    <h3>{$cat.NAME}</h3>
    97                <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p>
Note: See TracChangeset for help on using the changeset viewer.