Changeset 12920 for trunk/themes/default


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

Location:
trunk/themes/default
Files:
3 edited

Legend:

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

    r12123 r12920  
     1{strip}{html_style}
     2.thumbnailCategory DIV.illustration{ldelim}
     3        width: {$derivative_params->max_width()+5}px;
     4}
    15
     6.content .thumbnailCategory .description{ldelim}
     7        height: {$derivative_params->max_height()+5}px;
     8}
     9{/html_style}{/strip}
    210<ul class="thumbnailCategories">
    311{foreach from=$category_thumbnails item=cat}
     
    614                        <div class="illustration">
    715                        <a href="{$cat.URL}">
    8                                 <img src="{$cat.TN_SRC}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}">
     16                                <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}">
    917                        </a>
    1018                        </div>
  • 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>
  • trunk/themes/default/theme.css

    r12908 r12920  
    264264/* Thumbnails */
    265265.thumbnails SPAN.thumbLegend {
    266         font-size: 90%;
    267266        overflow: hidden;/* oversized legend is clipped */
    268267}
Note: See TracChangeset for help on using the changeset viewer.