<!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.tags.css?v={$version_sn}" />
</head>
<body>
<!--头部-->
<!--#include file="include.header.html"-->
<div class="ow-banner">{ad id="2" type="html"}</div>

<!--主内容区-->
<div id="mbody">
    <div class="wrapper">
        <div class="ow-breadcrumb">{$breadcrumb}</div>
        <div class="ow-left-section">
            <div class="section">
            {content tag_id="{$tag:tag_id}"}
                <ul class="ow-content-list">
                {content:loop}
                    <li class="li[content:i]">
                        <h3><a href="[content:link]" target="_blank">[content:ctitle]</a></h3>
                        <div class="byline"><span class="views">浏览量：[content:views]</span><span class="datetime">更新时间：[content:post_time]</span></div>
                        <div class="summary">[content:summary]</div>
                    </li>
                {/content:loop}
                </ul>
                <div class="pager">
                [content:pages pagesize="20"]
                </div>
            {/content}
        </div>
        </div>
        <div class="ow-right-section">
            <div class="ow-tags-cloud" id="tags_cloud">
                <div class="tags-cloud-wrap">
                {tags is_shop="0"}
                    {tags:loop}<a href="[tags:link]" hits="[tags:hits]">[tags:tag]</a>{/tags:loop}
                {/tags}
                </div>
            </div>
        </div> 
        <div class="clear"></div>
    </div>
</div>

<!--底部-->
<!--#include file="include.footer.html"-->
<script type="text/javascript">
$(document).ready(function(){
	var hits,fontSize,maxHits=0,minHits=1000000000,$tags = $("#tags_cloud").find("a");
	$tags.each(function(){
		hits = parseInt($(this).attr("hits"));
		if(hits>maxHits){maxHits=hits};
		if(hits<minHits){minHits=hits};
	});
	$tags.each(function(){
		hits     = parseInt($(this).attr("hits"));
		fontSize = (hits-minHits)*(8/(maxHits-minHits));
		$(this).css("font-size",fontSize+12+"px");
	});
});
</script>
</body>
</html>
