Ignore:
Timestamp:
Jun 25, 2012, 12:10:18 PM (12 years ago)
Author:
plg
Message:

compatibility with Piwigo 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/simple_themes/simple/template/mainpage_categories.tpl

    r13551 r16030  
     1{strip}{html_style}
     2.thumbnailCategory .illustration{ldelim}
     3        width: {$derivative_params->max_width()+5}px;
     4}
     5
     6.content .thumbnailCategory .description{ldelim}
     7        height: {$derivative_params->max_height()+5}px;
     8}
     9{/html_style}{/strip}
    110<ul class="thumbnailCategories">
    2   {foreach from=$category_thumbnails item=cat}
    3   <li>
    4     <div class="illustration">
    5       <a href="{$cat.URL}">
    6         <img src="{$cat.TN_SRC}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '} - {'display this album'|@translate}">
    7       </a>
    8     </div>
    9     <div class="description">
    10       <h3>
    11         <a href="{$cat.URL}">{$cat.NAME}</a>
    12         {if !empty($cat.icon_ts)}
    13         <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" class="icon" alt="(!)">
    14         {/if}
    15       </h3>
    16       {if isset($cat.INFO_DATES) }
     11{foreach from=$category_thumbnails item=cat name=cat_loop}
     12        <li>
     13                <div class="illustration">
     14                        <a href="{$cat.URL}">
     15                                <img src="{$pwg->derivative_url($derivative_params, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}">
     16                        </a>
     17                </div>
     18                <div class="description">
     19                                <h3>
     20                                        <a href="{$cat.URL}">{$cat.NAME}</a>
     21                                        {if !empty($cat.icon_ts)}
     22                                        <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" alt="(!)">
     23                                        {/if}
     24                                </h3>
     25                                {if isset($cat.INFO_DATES) }
    1726      <p class="thumbCatDescNfoDate">{$cat.INFO_DATES}</p>
    1827      {/if}
     
    2130      <p class="thumbCatDesc">{$cat.DESCRIPTION}</p>
    2231      {/if}
    23     </div>
    24   </li>
    25   {/foreach}
     32                </div>
     33        </li>
     34{/foreach}
    2635</ul>
Note: See TracChangeset for help on using the changeset viewer.