<!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="2012-2032 OpenWBS Inc." />
<!--#include file="include.css.html"-->
<link rel="stylesheet" href="../css/ow.product.css?v={$version_sn}" />
</head>
<body style="background:#fff;">
<!--#include file="include.header.html"-->
<!--#include file="include.aside.html"-->
<div id="mbody">
    <div class="ow-breadcrumb">{$breadcrumb}</div>
    <!--#include file="include.cates.contentpage.html"-->
    <div class="container">
        <div class="porduct-main">
            <div class="product-gallery">
                <div class="gallery" data="{$content:images}" id="gallery"></div>
            </div>
            <div class="product-info">
                <h1 class="title">{$goods:title}</h1>
                <div class="summary">{$content:summary}</div>
                <div class="action">
                    <a class="button" href="{$site_hurl}contact.html">联系我们</a>
                </div>
            </div>
        </div>
        <div class="clear"></div>
        <div class="ow-content-container">
            <div class="ow-editor-content-text">{$content:content}</div>
            <div class="pager">{$content:pages}</div>
            <div class="tags">标签{tags cid="{$content:cid}"}{tags:loop}<a href="[tags:link]" title="[tags:tag]" target="_blank">[tags:tag]</a>{/tags:loop}{/tags}</div>
            <div class="views">阅读<span>{$content:views}</span></div>
            <div class="prev-next"><div class="prev">上一篇：{$content:prev}</div><div class="next">下一篇：{$content:next}</div></div>
        </div>
    </div>
    
    <!--相关产品-->
    <div class="ow-related-content">
        <div class="hd"><h4>相关产品</h4></div>
        <div class="ow-product-list">
            <div class="bd">
            {content top="100" related_cid="{$content:cid}" model="product"}
            <ul>
                {content:loop}
                <li class="li[content:i]">
                    <div class="thumb"><a href="[content:link]"><img src="[content:thumbnail]" alt="[content:title]" title="[content:title]" /></a></div>
                    <div class="info">
                        <h3 class="title"><a href="[content:link]">[content:ctitle]</a></h3>
                    </div>
                </li>
                {/content:loop}
            </ul>
            {/content}
            </div>
        </div>
    </div>
    {if:OW.int("{$config(is_comment_open)}")=1}<div id="OWCMT"></div>{/if}
    
</div>

<!--底部-->
<!--#include file="include.footer.html"-->
<script type="text/javascript">
$(document).ready(function(){
	OW.gallery.init({data:$("#gallery").attr("data"),gallery:$("#gallery")});
	OW.gallery.click();
	if($("#gallery").find("li").length==1){$("#gallery").find(".gallery-list").hide()};
	if(!$(".tags").find("a").length>0){$(".tags").remove();};
	if($(".pager").html()==""){$(".pager").remove();};
	if(!$(".ow-related-content").find("li").length>0){
		$(".ow-related-content").remove();
	};
	//评论
	{if:OW.int("{$config(is_comment_open)}")=1}
	$("#OWCMT").html('<div id="owcmt_post_section"></div><div class="ow-owcmt-list-header"><span class="cmt-count"><b id="owcmt_count_section">0</b>条评论</span>最新评论</div><div id="owcmt_list_section"></div><div class="pager" id="owcmt_pager_section"></div>');
	OW.cmt.postSection  = $("#owcmt_post_section");
	OW.cmt.countSection = $("#owcmt_count_section");
	OW.cmt.listSection  = $("#owcmt_list_section");
	OW.cmt.pagerSection = $("#owcmt_pager_section");
	OW.cmt.pagesize = 20;
	OW.cmt.init({cid:{$content:cid},gid:0});
	OW.cmt.get({cid:{$content:cid},gid:0,page:0});
	{/if}
});
</script>
</body>
</html>
