概要
liタグ形式のカテゴリ一覧を取得します。
使い方
|
1 2 3 4 |
<?php $getCategoryTree = c::getCategoryTree($isIPhone = false, $groupId = '', $isSeo = 'false'); print($getCategoryTree()); ?> |
引数の内容
- $isIPhone : true に指定した場合、スマートフォン向けに最適化されたタグが出力されます。
- $groupId : 特定の顧客グループを指定したい場合は、顧客グループIDを指定します。デフォルトは空。
- $isSeo : URLの書式形式をSEO URLにしたい場合は true を指定します。デフォルトは空。
返り値
string
|
1 2 3 4 5 6 7 8 9 10 11 12 |
<ul> <li class="arrow"> <a href="http://www.sample.net/category/select/cid/1"><img src="resources/c_media/themes/iPhone_theme/images/list-icon-2.png" c<ul> <li class="arrow"> <a href="http://www.sample.net/category/select/cid/1"><img src="resources/c_media/themes/iPhone_theme/images/list-icon-2.png" class="ico" width="29" height="29" />DVD(3)</a></li> <li class="arrow"> <a href="http://www.sample.net/category/select/cid/4"><img src="resources/c_media/themes/iPhone_theme/images/list-icon-2.png" class="ico" width="29" height="29" />パソコン・オフィス用品(3)</a></li> <li class="arrow"> <a href="http://www.sample.net/category/select/cid/12"><img src="resources/c_media/themes/iPhone_theme/images/list-icon-2.png" class="ico" width="29" height="29" />果物(0)</a></li> <li class="arrow"> <a href="http://www.sample.net/category/select/cid/16"><img src="resources/c_media/themes/iPhone_theme/images/list-icon-2.png" class="ico" width="29" height="29" />やさい(1)</a></li> </ul> lass="ico" width="29" height="29" />DVD(3)</a></li> <li class="arrow"> <a href="http://www.sample.net/category/select/cid/4"><img src="resources/c_media/themes/iPhone_theme/images/list-icon-2.png" class="ico" width="29" height="29" />パソコン・オフィス用品(3)</a></li> <li class="arrow"> <a href="http://www.sample.net/category/select/cid/12"><img src="resources/c_media/themes/iPhone_theme/images/list-icon-2.png" class="ico" width="29" height="29" />果物(0)</a></li> <li class="arrow"> <a href="http://www.sample.net/category/select/cid/16"><img src="resources/c_media/themes/iPhone_theme/images/list-icon-2.png" class="ico" width="29" height="29" />やさい(1)</a></li> </ul> |