Ignore:
Timestamp:
2010/12/29 13:10:01 (13 years ago)
Author:
Seasoft
Message:

#862(テンプレート上のエスケープを簡単に)
#628(未使用処理・定義などの削除)

  • Smarty 変数 tpl_start

#879(jQuery の ready イベントと競合する body の onload イベントを使用している)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/Smarty/templates/sphone/bloc/best5.tpl

    r19714 r19785  
    2828        <div class="recomendleft"> 
    2929 
    30             <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[cnt].product_id|escape:url}-->"> 
    31                 <img src="<!--{$smarty.const.SMARTPHONE_URL_DIR}-->resize_image.php?image=<!--{$arrBestProducts[cnt].main_list_image|sfNoImageMainList|escape}-->&amp;width=80&amp;height=80" alt="<!--{$arrBestProducts[cnt].name|escape}-->" /></a> 
     30            <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[cnt].product_id|u}-->"> 
     31                <img src="<!--{$smarty.const.SMARTPHONE_URL_DIR}-->resize_image.php?image=<!--{$arrBestProducts[cnt].main_list_image|sfNoImageMainList|h}-->&amp;width=80&amp;height=80" alt="<!--{$arrBestProducts[cnt].name|h}-->" /></a> 
    3232             
    3333            <div class="recomendrightblock"> 
    3434                <h3> 
    35                     <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[cnt].product_id|escape:url}-->"><!--{$arrBestProducts[cnt].name|escape}--></a> 
     35                    <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[cnt].product_id|u}-->"><!--{$arrBestProducts[cnt].name|h}--></a> 
    3636                </h3> 
    3737 
     
    4343                </p> 
    4444 
    45                 <p class="mini comment"><!--{$arrBestProducts[cnt].comment|escape|nl2br}--></p> 
     45                <p class="mini comment"><!--{$arrBestProducts[cnt].comment|h|nl2br}--></p> 
    4646            </div> 
    4747        </div> 
     
    5050        <!--{if $arrBestProducts[$cnt2]|count > 0}--> 
    5151        <div class="recomendright"> 
    52             <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[$cnt2].product_id|escape:url}-->"> 
    53                 <img src="<!--{$smarty.const.SMARTPHONE_URL_DIR}-->resize_image.php?image=<!--{$arrBestProducts[$cnt2].main_list_image|sfNoImageMainList|escape}-->&amp;width=80&amp;height=80" alt="<!--{$arrBestProducts[$cnt2].name|escape}-->" /></a> 
     52            <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[$cnt2].product_id|u}-->"> 
     53                <img src="<!--{$smarty.const.SMARTPHONE_URL_DIR}-->resize_image.php?image=<!--{$arrBestProducts[$cnt2].main_list_image|sfNoImageMainList|h}-->&amp;width=80&amp;height=80" alt="<!--{$arrBestProducts[$cnt2].name|h}-->" /></a> 
    5454 
    5555            <div class="recomendrightblock"> 
    5656                <h3> 
    57                 <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[$cnt2].product_id|escape:url}-->"><!--{$arrBestProducts[$cnt2].name|escape}--></a> 
     57                <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[$cnt2].product_id|u}-->"><!--{$arrBestProducts[$cnt2].name|h}--></a> 
    5858                </h3> 
    5959 
     
    6565                </p> 
    6666 
    67                 <p class="mini comment"><!--{$arrBestProducts[$cnt2].comment|escape|nl2br}--></p> 
     67                <p class="mini comment"><!--{$arrBestProducts[$cnt2].comment|h|nl2br}--></p> 
    6868            </div> 
    6969        </div> 
Note: See TracChangeset for help on using the changeset viewer.