source: branches/version-2_12-dev/data/Smarty/templates/sphone/frontparts/bloc/category.tpl @ 22796

Revision 22796, 3.8 KB checked in by h_yoshimoto, 11 years ago (diff)

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
1<!--{*
2 * This file is part of EC-CUBE
3 *
4 * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
5 *
6 * http://www.lockon.co.jp/
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21 *}-->
22
23<!--商品カテゴリここから-->
24<section id="category_area">
25    <h2 class="title_block">商品カテゴリ</h2>
26    <nav id="categorytree">
27        <ul id="categorytreelist">
28            <!--{assign var=preLev value=1}-->
29            <!--{assign var=firstdone value=0}-->
30            <!--{section name=cnt loop=$arrTree}-->
31                <!--{* インデントは Smarty 構文を優先としています。 *}-->
32                <!--{* カテゴリ表示・非表示切り替え *}-->
33                <!--{if $arrTree[cnt].view_flg != "2"}-->
34                    <!--{* 表示フラグがTRUEなら表示 *}-->
35                    <!--{assign var=level value=`$arrTree[cnt].level`}-->
36                    <!--{* level2以下なら表示(level指定可能) *}-->
37                    <!--{if $level <= 5 || $arrTree[cnt].display == 1}-->
38                        <!--{assign var=levdiff value=`$level-$preLev`}-->
39                        <!--{if $levdiff > 0}-->
40                            <ul>
41                        <!--{elseif $levdiff == 0 && $firstdone == 1}-->
42                            </li>
43                        <!--{elseif $levdiff < 0}-->
44                            <!--{section name=d loop=`$levdiff*-1`}-->
45                                    </li>
46                                </ul>
47                            <!--{/section}-->
48                            </li>
49                        <!--{/if}-->
50
51                        <li class="level<!--{$level}--><!--{if in_array($arrTree[cnt].category_id, $tpl_category_id)}--> onmark<!--{/if}-->"><span class="category_header"></span><span class="category_body"><a rel="external" href="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php?category_id=<!--{$arrTree[cnt].category_id}-->"<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id)}--> class="onlink"<!--{/if}-->><!--{$arrTree[cnt].category_name|h}-->(<!--{$arrTree[cnt].product_count|default:0}-->)</a></span>
52                        <!--{if $firstdone == 0}-->
53                            <!--{assign var=firstdone value=1}-->
54                        <!--{/if}-->
55                        <!--{assign var=preLev value=`$level`}-->
56                    <!--{/if}-->
57
58                    <!--{* セクションの最後に閉じタグを追加 *}-->
59                    <!--{if $smarty.section.cnt.last}-->
60                        <!--{if $preLev-1 > 0}-->
61                            <!--{section name=d loop=`$preLev-1`}-->
62                                    </li>
63                                </ul>
64                            <!--{/section}-->
65                            </li>
66                        <!--{else}-->
67                            </li>
68                        <!--{/if}-->
69                    <!--{/if}-->
70                <!--{/if}-->
71            <!--{/section}-->
72        </ul>
73
74        <script>//<![CDATA[
75            initCategoryList(); //カテゴリリストの初期化
76        //]]></script>
77    </nav>
78</section>
79<!-- ▲カテゴリ -->
Note: See TracBrowser for help on using the repository browser.