<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/cms/front/include/taglib.jsp"%>
<%@ attribute name="category" type="cn.com.liandisys.ycjt.ggcx.admin.model.cms.Category" required="true" description="栏目对象"%>
<%@ attribute name="pageSize" type="java.lang.Integer" required="false" description="页面大小"%>
<c:forEach items="${fnc:getArticleList(category.id, not empty pageSize?pageSize:8, 'posid:2, orderBy: \"hits desc\"')}" var="article" varStatus="status">
	<div class="listfont">
	 <p class="listfont_a" style="padding-top:2px;">
	 <c:if test="${article.link eq null|| empty article.link }">
	 <a href="javascript:;" onclick="loadPage('${ctx}/view-${article.category.id}-${article.id}${urlSuffix}')"   style="color:${article.color};" title="${article.title}">${status.count}.${fns:abbr(article.title,32)}</a></li>
	 </c:if>
	 <c:if test="${article.link ne null&&not empty article.link }">
	 <a href="${article.link}" target="_blank" style="color:${article.color};" title="${article.title}">${status.count}.${fns:abbr(article.title,32)}</a></li>
	 </c:if>
	 </p>
	 </div>
</c:forEach>