Ignore:
Timestamp:
2013/08/10 11:00:04 (11 years ago)
Author:
poego
Message:

#2283 resize_image.phpの処理をCSSに変更
r23005 でresize_imageにIDを渡して処理するようにしたが、
やはり毎回DB処理、Resize処理を走らせるのは重いので、標準をCSSでの対応としてみる。
resize_image.php自体は残しているので使いたい場合は利用可能としておく

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/Smarty/templates/sphone/frontparts/bloc/recommend.tpl

    r22494 r23041  
    2929                <li id="mainImage<!--{$smarty.section.cnt.index}-->"> 
    3030                    <div class="recommendblock clearfix"> 
    31                         <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrBestProducts[cnt].main_list_image|sfNoImageMainList|h}-->&amp;width=80&amp;height=80" alt="<!--{$arrBestProducts[cnt].name|h}-->" /> 
     31                        <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrBestProducts[cnt].main_list_image|sfNoImageMainList|h}-->" style="max-width: 80px;max-height: 80;" alt="<!--{$arrBestProducts[cnt].name|h}-->" /> 
    3232                        <div class="productContents"> 
    3333                            <h3><a rel="external" href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrBestProducts[cnt].product_id|u}-->"><!--{$arrBestProducts[cnt].name|h}--></a></h3> 
Note: See TracChangeset for help on using the changeset viewer.