Ignore:
Timestamp:
Jan 17, 2012, 7:09:32 AM (12 years ago)
Author:
rvelices
Message:

feature 2548 multisize - ability to choose displayed size on index page
-added some logs on i.php (configurable) to measure the perf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/template/thumbnails.tpl

    r11990 r12908  
    1 {if !empty($thumbnails)}
    2 {strip}{foreach from=$thumbnails item=thumbnail}
     1{if !empty($thumbnails)}{strip}
     2{html_head}
     3<style type="text/css">
     4{*Set some sizes according to maximum thumbnail width and height*}
     5.thumbnails SPAN,
     6.thumbnails .wrap2 A,
     7.thumbnails LABEL{ldelim}
     8        width: {$derivative_params->max_width()}px;
     9}
     10
     11.thumbnails .wrap2{ldelim}
     12        height: {$derivative_params->max_height()+2}px;
     13}
     14
     15</style>
     16{/html_head}
     17{foreach from=$thumbnails item=thumbnail}
    318        <li>
    419        <span class="wrap1">
    520                <span class="wrap2">
    621                <a href="{$thumbnail.URL}">
    7                         <img class="thumbnail" src="{$thumbnail.TN_SRC}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}">
     22                        <img class="thumbnail" src="{$pwg->derivative_url($derivative_params, $thumbnail.src_image)}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}">
    823                </a>
    924                </span>
Note: See TracChangeset for help on using the changeset viewer.