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自体は残しているので使いたい場合は利用可能としておく

Location:
branches/version-2_13-dev/data/Smarty/templates/sphone/products
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/Smarty/templates/sphone/products/detail.tpl

    r23002 r23041  
    403403                    <!--{if $arrRecommend[cnt].product_id}--> 
    404404                        <li id="mainImage1<!--{$smarty.section.cnt.index}-->"> 
    405                             <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrRecommend[cnt].main_list_image|sfNoImageMainList|h}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[cnt].name|h}-->" /> 
     405                            <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrRecommend[cnt].main_list_image|sfNoImageMainList|h}-->" style="max-width: 65px;max-height: 65;" alt="!--{$arrRecommend[cnt].name|h}-->" /> 
    406406                            <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min_inctax`}--> 
    407407                            <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max_inctax`}--> 
  • branches/version-2_13-dev/data/Smarty/templates/sphone/products/list.tpl

    r23002 r23041  
    7676        <div class="list_area clearfix"> 
    7777            <!--★画像★--> 
    78             <p class="listphoto"><img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrProduct.main_list_image|sfNoImageMainList|h}-->&amp;width=80&amp;height=80"  alt="<!--{$arrProduct.name|h}-->" /></p> 
    79  
     78            <p class="listphoto"><img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct.main_list_image|sfNoImageMainList|h}-->" style="max-width: 80px;max-height: 80;" alt="<!--{$arrProduct.name|h}-->" /></p> 
    8079            <div class="listrightblock"> 
    8180                <div class="statusArea"> 
     
    167166                    //商品写真をセット 
    168167                    $($(".list_area .listphoto img").get(maxCnt)).attr({ 
    169                         src: "<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=" + product.main_list_image + '&width=80&height=80', 
     168                        src: "<!--{$smarty.const.IMAGE_SAVE_URLPATH}-->" + product.main_list_image, 
    170169                        alt: product.name 
    171170                    }); 
Note: See TracChangeset for help on using the changeset viewer.