📄 new_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="${divID} 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/>
<#assign link_type = itemParaMap.link_type/>
<#assign h2TitleHref = _UrlUtil.encodeURL("/index.do?_fn=TopicOrder&_order_type="+_Constants.TOPIC_ORDER_NEW_TOPIC)/>
<#assign h2Title = "最新主题"/>
<#include "h2_inc.ftl"/>
<div class="innerContent">
<#assign adContentTop = _AdsUtil.getAds("NEW_TOPICS_TOP", _tplStyle)>
<#if adContentTop != "">
<div class="ad ad_top">
${adContentTop}
</div>
</#if><#comment> end ads</#comment>
<#assign newTopics = _PortalUtil.getNewTopics(_tplStyle)>
<#if newTopics ??>
<ul class="topics">
<#list newTopics as topic>
<#if topic_index < data_num?number>
<li>
<#if topic_items!="NONE">
<div class="topicInfo">
<#if topic_items == "user_id" && topic.user_id??>
<#assign topic_items="user_id">
<a href="${_UrlUtil.encodeURL("/"+_EFUserUtil.getBlogURL(topic[topic_items]))}" target="${link_type}">${_EFUserUtil.getNickName(topic[topic_items])}</a>
<#elseif topic_items == "title_time">
${topic[topic_items]?default("")}
</#if>
</div>
</#if>
<span class="topicTitle">
<#assign post_title = _StringUtil.cutString( topic.post_title,titleLength, "" )/>
<a href="${_UrlUtil.encodeURL("/"+_PostUtil.getTopicURL(topic.post_id))}" target="${link_type}">${post_title?html}</a>
</span>
</li>
</#if>
</#list>
</ul>
</#if>
<#assign adContentBottom = _AdsUtil.getAds("NEW_TOPICS_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 + -