Ignore:
Timestamp:
2011/08/01 06:38:44 (13 years ago)
Author:
468
Message:

#1413 スマートフォン版商品画像拡大LightBox→facebox(画像サイズ80%にカスタマイズ)の利用に変更

File:
1 edited

Legend:

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

    r21073 r21085  
    2121 *}--> 
    2222<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/products.js"></script> 
    23 <script src="<!--{$TPL_URLPATH}-->js/jquery.flickslide.js"></script> 
     23<script type="text/javascript" src="<!--{$TPL_URLPATH}-->js/jquery.facebox/facebox.js"></script> 
     24<link rel="stylesheet" type="text/css" href="<!--{$TPL_URLPATH}-->js/jquery.facebox/facebox.css" media="screen" /> 
    2425<script type="text/javascript">//<![CDATA[ 
    2526// 規格2に選択肢を割り当てる。 
     
    3839    //お勧め商品のリンクを張り直し(フリックスライドによるエレメント生成後) 
    3940    $('#whobought_area li').biggerlink(); 
     41    //商品画像の拡大 
     42    $('a.expansion').facebox({ 
     43        loadingImage : '<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.facebox/loading.gif', 
     44        closeImage   : '<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.facebox/closelabel.png' 
     45    }); 
    4046}); 
    4147//サブエリアの表示/非表示 
     
    7884        <li id="mainImage0"> 
    7985        <!--{if $arrProduct.main_large_image|strlen >= 1}--> 
    80             <a rel="lightbox" data-ajax="false" href="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrProduct.main_large_image|h}-->&amp;width=200&amp;height=200"> 
     86            <a rel="external" class="expansion" href="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct.main_large_image|h}-->" target="_blank"> 
    8187                <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct.main_large_image|h}-->" alt="<!--{$arrProduct.name|h}-->" width="200" height="200" /></a> 
    8288        <!--{else}--> 
     
    9197            <!--{assign var=lkey value="sub_large_image`$smarty.section.cnt.index+1`"}--> 
    9298            <li id="mainImage<!--{$smarty.section.cnt.index+1}-->"> 
    93               <a rel="lightbox" data-ajax="false" href="<!--{$arrFile[$key].filepath}-->"> 
     99              <a rel="external" class="expansion" href="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct[$lkey]|h}-->" target="_blank"> 
    94100              <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrProduct.name|h}-->" width="200" height="200" /></a> 
    95101              </li> 
     
    150156        <p class="normal_price"> 
    151157        <span class="mini"><!--{$smarty.const.NORMAL_PRICE_TITLE}-->(税込):</span> 
    152         <span class="price"> 
    153158        <span id="price01_default"> 
    154159               <!--{if $arrProduct.price01_min == $arrProduct.price01_max}--> 
     
    157162                   <!--{$arrProduct.price01_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$arrProduct.price01_max|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> 
    158163                    <!--{/if}--> 
    159         </span><span id="price01_dynamic"></span>円</span></p> 
     164        <span id="price01_dynamic"></span>円</span></p> 
    160165        <!--{/if}--> 
    161166 
Note: See TracChangeset for help on using the changeset viewer.