Ignore:
Timestamp:
2013/07/28 20:43:47 (11 years ago)
Author:
poego
Message:

#2283 resize_image.phpの処理をID基準に変更

既存のファイル名を渡す形も残している。
テンプレート側は、おすすめ商品ブロックのみひとまず対応。
やはり毎回DB処理を走らせるのは余計な負荷な気がするので、利用箇所は限定させたい

File:
1 edited

Legend:

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

    r22959 r23005  
    3131                            <div class="productImage"> 
    3232                                <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->"> 
    33                                     <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}-->" /> 
     33                                    <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?product_id=<!--{$arrProduct.product_id|u}-->&amp;image_key=main_list_image&amp;width=80&amp;height=80" alt="<!--{$arrProduct.name|h}-->" /> 
    3434                                </a> 
    3535                            </div> 
Note: See TracChangeset for help on using the changeset viewer.