<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{$title}</title>
<meta name="keywords" content="{$keywords}" />
<meta name="description" content="{$description}" />
<meta name="generator" content="openwbs {$version}" />
<meta name="author" content="openwbs team" />
<meta name="copyright" content="2008-2020 OpenWBS Inc." />
<!--#include file="include.css.html"-->
<link rel="stylesheet" href="../css/ow.shop.all.categorys.css?v={$version_sn}"/>
</head>
<body>
<!--头部-->
<!--#include file="include.header.html"-->
<div class="ow-shop-allcate" id="allcate">
    {cate is_shop="1" parent_id="0"}
    {cate:loop}
    <div class="ow-category-item">
        <div class="header">
            <h2><b></b><i></i><a href="[cate:link]">[cate:name]</a></h2>
        </div>
        <div class="section">
            <div class="cates">
                {cate2 is_shop="1" parent_id="[cate:cate_id]"}
                {cate2:loop}<a class="cate" href="[cate2:link]" target="_blank">[cate2:name]</a>{/cate2:loop}
                {/cate2}
            </div>
            <div class="hot-goods">
                <div class="hd">推荐</div>
                <div class="bd">
                {goods top="5" recommend_cate_id="[cate:cate_id]"}
                {goods:loop}<a name="goods" title="[goods:title]" href="[goods:link]" target="_blank"><img src="[goods:thumbnail]" alt="[goods:title]"/></a>{/goods:loop}
                {/goods}
                </div>
            </div>
        </div>
    </div>
    {/cate:loop}
    {/cate}
</div>

<!--底部-->
<!--#include file="include.footer.html"-->
<script type="text/javascript">
$(document).ready(function(){
	$(".hot-goods").each(function(){
		if($(this).find("a[name='goods']").length==0){
			$(this).hide();
		};
	});
});
</script>
</body>
</html>
