📄 recommend_forums.ftl
字号:
<#assign styleType = itemParaMap.style_type >
<#assign styleWidth = itemParaMap.style_width >
<#assign showMore = itemParaMap.show_more >
<div id="${divID}" class="${divID} pageItemOrder ${styleType}" style="width:${styleWidth}px;<#if isShow?? && isShow><#else>display:none;</#if>">
<#assign link_type = itemParaMap.link_type/>
<#if isManage>
<#assign h2TitleHref = _UrlUtil.encodeURL("/forum.fhtml")/>
<#assign h2Title = "推荐版面"/>
<#include "h2_inc.ftl"/>
<#else>
<div class="hd"><B class=lc></B><B class=rc></B></div>
</#if>
<div class="innerContent">
<ul>
<#list _ForumUtil.getDefaultAllCommendForums() as forum>
<#comment> 获取论坛信息 </#comment>
<#assign favorForumInfo = _ForumUtil.getForumInfo(forum.forum_id)/>
<#assign nameColor=_ForumUtil.getConfigInfo(forum.forum_id, "FORUM_NAME_STYLE")/>
<li class="no${forum_index+1}" onmouseover="this.className='hover'" onmouseout="this.className=''"><a href="${_UrlUtil.encodeURL("/"+_TopicUtil.getTopicURL(favorForumInfo.forum_id))}" target="${link_type}" <#if nameColor??>style="color:${nameColor};"</#if>>${favorForumInfo.forum_name}</a></li>
</#list>
<#if showMore?? && showMore=="0">
<li id="allForums" onmouseover="this.className='hover';popMenu('allForums')" onmouseout="this.className=''"><a href="${_UrlUtil.encodeURL("/forum.fhtml")}" target="${link_type}">更多..</a></li>
</#if>
</ul>
<div class="clean"></div>
</div><#comment> end innerContent </#comment>
<div class="ft"><B class=lc></B><B class=rc></B></div>
<div class="clean"></div>
</div>
<div id="allForums_Items" class="menu commonSelectPop">
<ul>
<#assign curHideFlag = false/><#comment> 隐藏标识 </#comment>
<#assign curLevel = 0/><#comment> 判断级别 </#comment>
<#list _ForumUtil.getForums() as forum>
<#assign forumInfo = _ForumUtil.getForumInfo(forum.forum_id)/>
<#comment> 如果判断级别高于版面的级别,则遵循当前隐藏标识状态,否则根据版面的设置进行处理 </#comment>
<#if curHideFlag && curLevel < forumInfo["forum_level"]?number>
<#else>
<#assign curShowFlag = false/>
<#comment> 判断当前论坛关闭,只有管理角色(管理员\超级管理员)才可以查看 </#comment>
<#if forumInfo.forum_status?number == _Constants.FORUM_STATUS_USE ||
_EFUser.groupId?number == _Constants.USERGROUP_SYSTEM_SUPERADMIN ||
_EFUser.groupId?number == _Constants.USERGROUP_SYSTEM_ADMIN>
<#comment> 判断当前论坛隐藏,只有管理角色(管理员\超级管理员)和允许查看隐藏论坛的用户组才可以查看 </#comment>
<#if forumInfo.forum_ishide?number == _Constants.FORUM_ISHIDEN_SHOW ||
!_ConfigUtil.isYes("SECURITY_HIDE_FORBIDDEN_FORUM") ||
_EFUser.groupId?number == _Constants.USERGROUP_SYSTEM_SUPERADMIN ||
_EFUser.groupId?number == _Constants.USERGROUP_SYSTEM_ADMIN || _GroupUtil.isYes(_EFUser.groupId?string,"USERGROUP_VISIT_HIDDENFORUM")>
<#if forumInfo["forum_type"]=="0">
<li class="divLi">${forum.forum_name}</li>
<#else>
<#assign forumNameColor=_ForumUtil.getConfigInfo(forumInfo["forum_id"], "FORUM_NAME_STYLE")/>
<li>
<a href="${_UrlUtil.encodeURL("/"+_TopicUtil.getTopicURL(forumInfo["forum_id"]))}" <#if forumNameColor??>style="color:${forumNameColor};"</#if>>${forumInfo["forum_name"]}</a>
</li>
</#if>
<#comment> 如果不隐藏,则还原各个标识 </#comment>
<#assign curHideFlag = false/>
<#assign curLevel = 0/>
<#assign curShowFlag = true/>
</#if>
</#if>
<#comment> 如果原来显示,现在隐藏了,则记录标识 </#comment>
<#if !curHideFlag && !curShowFlag>
<#assign curLevel = forumInfo["forum_level"]?number/>
<#assign curHideFlag = true/>
</#if>
<#comment> 如果隐藏,且当前级别高于判断级别,则升级判断级别 </#comment>
<#if curHideFlag && forumInfo["forum_level"]?number < curLevel>
<#assign curLevel = forumInfo["forum_level"]?number/>
</#if>
</#if>
</#list>
</ul>
<div class="clean"></div>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -