📄 t_recommend_topics.ftl
字号:
<#assign styleType = itemParaMap.style_type >
<#assign styleWidth = itemParaMap.style_width >
<#assign styleHeight = itemParaMap.style_height >
<#assign titleLength = itemParaMap.title_length?number >
<div id="${divID}" class="T_RECOMMEND_TOPICS pageItemOrder ${styleType}" style="width:${styleWidth}px;height:${styleHeight}px;<#if isShow?? && isShow><#else>display:none;</#if>">
<#assign topic_items = itemParaMap.topic_items/>
<#assign data_num = itemParaMap.data_num?default("10")?number/>
<#assign link_type = itemParaMap.link_type/>
<#assign h2TitleHref = ""/>
<#include "h2_inc.ftl"/>
<#assign topTopicNum = 0>
<#assign topicNum = 0>
<div class="innerContent">
<#assign adContentTop = _AdsUtil.getAds(divID+"_TOP", _tplStyle)>
<#if adContentTop != "">
<div class="ad ad_top">
${adContentTop}
</div>
</#if><#comment> end ads</#comment>
<#assign recommendTopicList = _PortalUtil.getForumRecommendTopics(""+divID?substring(19)?number*(-10))/>
<#assign recommendTopicNum = 0>
<#if recommendTopicList ?? && recommendTopicList.size() > 0>
<#assign recommendTopicNum = recommendTopicList.size()>
<#list recommendTopicList as topTopic>
<#if topTopic.istop=="0" && topTopicNum < data_num?number>
<#assign topTopicNum = topTopicNum + 1 />
<dl class="topic">
<#if topTopic.image ??>
<dt onmouseover="this.className='hover'" onmouseout="this.className=''"><a href="${topTopic.url}" title="${topTopic.post_title}" target="_blank" alt="${topTopic.post_title}"><img src="${_contextPath}${topTopic.image}"></a></dt>
<dd class="short title"><a href="${topTopic.url}" style="${topTopic.post_highlight?default("")}" target="${link_type}">${topTopic.post_title}</a></dd>
<#if topTopic.post_content ??>
<dd class="short content">${topTopic.post_content}</dd>
</#if>
<#else>
<dd class="long title"><a href="${topTopic.url}" style="${topTopic.post_highlight?default("")}" target="${link_type}">${topTopic.post_title}</a></dd>
<#if topTopic.post_content ??>
<dd class="long content">${topTopic.post_content}</dd>
</#if>
</#if>
</dl>
</#if>
</#list>
<ul class="topics">
<#list recommendTopicList as topic>
<#if topic.istop=="1" && topTopicNum + topicNum < data_num?number>
<#assign topicNum = topicNum + 1 />
<li class="no${topicNum}">
<b class="num">${topicNum}</b>
<#if topic_items == "user_id" && topic.user_id??>
<div class="topicInfo">
<a href="${_UrlUtil.encodeURL("/"+_EFUserUtil.getBlogURL(topic.user_id))}" target="${link_type}">${_EFUserUtil.getNickName(topic.user_id)}</a>
</div>
</#if>
<span class="topicTitle">
<#assign post_title = _StringUtil.cutString( topic.post_title,titleLength, "" )/>
<a href="${topic.url}" style="${topic.post_highlight?default("")}" target="${link_type}">${post_title?html}</a>
</span>
</li>
</#if>
</#list>
</#if>
</ul>
<#assign adContentBottom = _AdsUtil.getAds(divID+"_BOTTOM", _tplStyle)>
<#if adContentBottom != "">
<div class="ad ad_bottom">
${adContentBottom}
</div>
</#if><#comment> end ads</#comment>
<div class="clean"></div>
</div>
<div class="ft"><B class=lc></B><B class=rc></B></div>
<div class="clean"></div>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -