Ignore:
Timestamp:
2013/03/05 08:52:08 (14 years ago)
Author:
pineray
Message:

#2166 カテゴリーブロックのロジックを見直し.

Location:
branches/version-2_12-dev/data/Smarty/templates/sphone/frontparts/bloc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/Smarty/templates/sphone/frontparts/bloc/category.tpl

    r22586 r22602  
    2525    <h2 class="title_block">商品カテゴリ</h2> 
    2626    <nav id="categorytree"> 
    27         <!--{include file="`$smarty.const.SMARTPHONE_TEMPLATE_REALDIR`frontparts/bloc/category_tree_fork.tpl" children=$arrTree treeID="categorytreelist"}--> 
     27        <!--{include file="`$smarty.const.SMARTPHONE_TEMPLATE_REALDIR`frontparts/bloc/category_tree_fork.tpl" children=$arrTree treeID="categorytreelist" display=1 level=0}--> 
    2828 
    2929        <script>//<![CDATA[ 
    30             initCategoryList(); //カテゴリリストの初期化 
    3130        //]]></script> 
    3231    </nav> 
  • branches/version-2_12-dev/data/Smarty/templates/sphone/frontparts/bloc/category_tree_fork.tpl

    r22586 r22602  
    2121 *}--> 
    2222 
    23 <ul<!--{if $treeID != ""}--> id="<!--{$treeID}-->"<!--{/if}-->> 
     23<ul<!--{if $treeID != ""}--> id="<!--{$treeID}-->"<!--{/if}--><!--{if $level > 5 || !$display}--> style="display: none;"<!--{/if}-->> 
    2424<!--{foreach from=$children item=child}--> 
    25     <li<!--{if $child.view_flg == "2" || $child.level > 5 || !in_array($child.category_id, $arrDispID)}--> style="display: none;"<!--{/if}--> class="level<!--{$child.level}--><!--{if in_array($child.category_id, $tpl_category_id)}--> onmark<!--{/if}-->"> 
     25    <li class="level<!--{$child.level}--><!--{if in_array($child.category_id, $tpl_category_id)}--> onmark<!--{/if}-->"> 
    2626        <span class="category_header"></span><span class="category_body"><a rel="external" href="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php?category_id=<!--{$child.category_id}-->"<!--{if in_array($child.category_id, $tpl_category_id)}--> class="onlink"<!--{/if}-->><!--{$child.category_name|h}-->(<!--{$child.product_count|default:0}-->)</a></span> 
     27        <!--{if in_array($child.category_id, $arrParentID)}--> 
     28            <!--{assign var=disp_child value=1}--> 
     29        <!--{else}--> 
     30            <!--{assign var=disp_child value=0}--> 
     31        <!--{/if}--> 
    2732        <!--{if isset($child.children|smarty:nodefaults)}--> 
    28             <!--{include file="`$smarty.const.SMARTPHONE_TEMPLATE_REALDIR`frontparts/bloc/category_tree_fork.tpl" children=$child.children treeID=""}--> 
     33            <!--{include file="`$smarty.const.SMARTPHONE_TEMPLATE_REALDIR`frontparts/bloc/category_tree_fork.tpl" children=$child.children treeID="" display=$disp_child level=$child.level}--> 
    2934        <!--{/if}--> 
    3035    </li> 
Note: See TracChangeset for help on using the changeset viewer.