Changeset 21348


Ignore:
Timestamp:
2011/11/18 17:11:47 (12 years ago)
Author:
eoogle
Message:

#1497 (assigned バグ指摘)
サブ情報が表示される判定条件をサブタイトルかサブ画像があるかという
条件に変更し、サブ画像だけの時も表示されるようにしました。

File:
1 edited

Legend:

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

    r21292 r21348  
    292292    <!--{section name=cnt loop=$smarty.const.PRODUCTSUB_MAX}--> 
    293293        <!--{assign var=key value="sub_title`$smarty.section.cnt.index+1`"}--> 
    294         <!--{if $arrProduct[$key] != ""}--> 
     294        <!--{assign var=ikey value="sub_image`$smarty.section.cnt.index+1`"}--> 
     295        <!--{if $arrProduct[$key] != "" or $arrProduct[$ikey]|strlen >= 1}--> 
    295296            <div class="sub_area clearfix"> 
    296297                <h3><!--★サブタイトル★--><!--{$arrProduct[$key]|h}--></h3> 
    297298                <!--{assign var=ckey value="sub_comment`$smarty.section.cnt.index+1`"}--> 
    298299                <!--▼サブ画像--> 
    299                 <!--{assign var=key value="sub_image`$smarty.section.cnt.index+1`"}--> 
    300300                <!--{assign var=lkey value="sub_large_image`$smarty.section.cnt.index+1`"}--> 
    301                 <!--{if $arrProduct[$key]|strlen >= 1}--> 
     301                <!--{if $arrProduct[$ikey]|strlen >= 1}--> 
    302302                    <div class="subtext"><!--★サブテキスト★--><!--{$arrProduct[$ckey]|nl2br_html}--></div> 
    303303                    <div class="subphotoimg"> 
     
    305305                            <a href="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct[$lkey]|h}-->" class="expansion" onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_expansion_on.gif', 'expansion_<!--{$lkey|h}-->');" onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_expansion.gif', 'expansion_<!--{$lkey|h}-->');" target="_blank" > 
    306306                        <!--{/if}--> 
    307                         <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrProduct.name|h}-->" width="<!--{$arrFile[$key].width}-->" height="<!--{$arrFile[$key].height}-->" /> 
     307                        <img src="<!--{$arrFile[$ikey].filepath}-->" alt="<!--{$arrProduct.name|h}-->" width="<!--{$arrFile[$ikey].width}-->" height="<!--{$arrFile[$ikey].height}-->" /> 
    308308                        <!--{if $arrProduct[$lkey]|strlen >= 1}--></a> 
    309309                            <span class="mini"> 
Note: See TracChangeset for help on using the changeset viewer.