Ignore:
Timestamp:
Jan 17, 2012, 10:58:18 PM (12 years ago)
Author:
rvelices
Message:

feature 2548 multisize - code cleanup + better usage in category_cats + i.php logs memory usage peak

File:
1 edited

Legend:

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

    r12908 r12920  
    11{if !empty($thumbnails)}{strip}
    2 {html_head}
    3 <style type="text/css">
     2{html_style}
    43{*Set some sizes according to maximum thumbnail width and height*}
    54.thumbnails SPAN,
     
    1211        height: {$derivative_params->max_height()+2}px;
    1312}
    14 
    15 </style>
    16 {/html_head}
     13{if $derivative_params->max_width() > 600}
     14.thumbLegend {ldelim}font-size: 130%}
     15{else}
     16{if $derivative_params->max_width() > 400}
     17.thumbLegend {ldelim}font-size: 110%}
     18{else}
     19.thumbLegend {ldelim}font-size: 90%}
     20{/if}
     21{/if}
     22{/html_style}
    1723{foreach from=$thumbnails item=thumbnail}
    1824        <li>
Note: See TracChangeset for help on using the changeset viewer.