Changeset 12908 for trunk/themes/default/template/thumbnails.tpl
- Timestamp:
- Jan 17, 2012, 7:09:32 AM (12 years ago)
- 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} 3 18 <li> 4 19 <span class="wrap1"> 5 20 <span class="wrap2"> 6 21 <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}"> 8 23 </a> 9 24 </span>
Note: See TracChangeset
for help on using the changeset viewer.