⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hot_topics.ftl

📁 学生选课系统 赶快来下载啊啊好东西 呵呵啊啊 啊啊啊啊啊
💻 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?default("10")?number/>
  <#assign link_type = itemParaMap.link_type/>
  <#assign h2TitleHref = _UrlUtil.encodeURL("/index.do?_fn=TopicOrder&_order_type="+itemParaMap.hot_type)/>
  <#assign h2Title = "热帖排行"/>
  <#include "h2_inc.ftl"/>
  <#assign topTopicNum = 0>
  <#assign topicNum = 0>
  <div class="innerContent">
    <#assign adContentTop =  _AdsUtil.getAds("HOT_TOPICS_TOP", _tplStyle)>
    <#if adContentTop != "">
    <div class="ad ad_top">
    ${adContentTop}
    </div>
    </#if><#comment> end ads</#comment>
    <#assign recommendTopicList = _PortalUtil.getForumRecommendTopics("-1")/>
    <#assign recommendTopicNum = 0>
    <#if recommendTopicList ?? && recommendTopicList.size() &gt; 0>
    <#assign recommendTopicNum = recommendTopicList.size()>
    <#comment> 手工推荐区 </#comment>
      <#list recommendTopicList as topTopic>
      <#if topTopic.istop=="0" && topTopicNum &lt; 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 &lt; data_num?number>
      <#assign topicNum = topicNum + 1 />
      <li class="no${topicNum}">
        <#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">
          <a href="${topic.url}" style="${topic.post_highlight?default("")}" target="${link_type}">${topic.post_title?html}</a>
        </span>
      </li>
      </#if>
      </#list>
    <#else>
    <ul class="topics">
    </#if>

    <#comment> 自动获取区 </#comment>
    <#assign hotTopics = _PortalUtil.getHotTopics(_tplStyle)>
    <#if hotTopics ??>
    <#list hotTopics as topic>
      <#if data_num?number &gt;= recommendTopicNum + topic_index + 1>
      <li class="no${recommendTopicNum + topic_index + 1 - topTopicNum}">
        <#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 == "postnum">
            <span class="number">${topic[topic_items]?default("")}</span>
          </#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>
      </#if>
    </ul>
    <#assign adContentBottom =  _AdsUtil.getAds("HOT_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 + -