📄 hot_pics.ftl
字号:
<#assign styleType = itemParaMap.style_type >
<#assign styleWidth = itemParaMap.style_width >
<#assign styleHeight = itemParaMap.style_height >
<div id="${divID}" class="${divID} pageItemOrder picsCloud ${styleType}" style="width:${styleWidth}px;height:${styleHeight}px;<#if isShow?? && isShow><#else>display:none;</#if>">
<#assign h2TitleHref = _UrlUtil.encodeURL("/index.do?_fn=AttachmentOrder")/>
<#assign h2Title = "热门图片"/>
<#include "h2_inc.ftl"/>
<#assign recommendPicList = _PortalUtil.getForumRecommendPics("-1") />
<#assign data_num = itemParaMap.data_num?number/>
<#assign link_type = itemParaMap.link_type/>
<div class="innerContent" id="${divID}_roll">
<#list recommendPicList as recommendPic>
<#if recommendPic_index < data_num>
<dl class="pic" onmouseover="this.className='pic hover'" onmouseout="this.className='pic'">
<dt><a href="${recommendPic.url}" title="${recommendPic.post_title}" alt="${recommendPic.post_title}" target="${link_type}"><img src="${_contextPath}${recommendPic.image}"></a></dt>
<dd class="title"><a href="${recommendPic.url}" target="${link_type}">${recommendPic.post_title}</a></dd>
</dl>
</#if>
</#list>
<#if recommendPicList.size() < data_num>
<#assign needHotPic = data_num-recommendPicList.size()>
<#if itemParaMap.hot_type == "0">
<#assign hotPics = _AttachUtil.getHotAttachDay(2, 1, -1, false, needHotPic)/>
<#elseif itemParaMap.hot_type == "1">
<#assign hotPics = _AttachUtil.getHotAttachMonth(2, 1, -1, false, needHotPic)/>
<#elseif itemParaMap.hot_type == "2">
<#assign hotPics = _AttachUtil.getHotAttachYear(2, 1, -1, false, needHotPic)/>
<#elseif itemParaMap.hot_type == "3">
<#assign hotPics = _AttachUtil.getHotAttach24Hours(2, 1, -1, false, needHotPic)/>
<#elseif itemParaMap.hot_type == "4">
<#assign hotPics = _AttachUtil.getHotAttachWeek(2, 1, -1, false, needHotPic)/>
<#elseif itemParaMap.hot_type == "5">
<#assign hotPics = _AttachUtil.getHotAttach30Days(2, 1, -1, false, needHotPic)/>
</#if>
<#list hotPics as hotPic>
<#assign attachmentLoc = _AttachUtil.getResourceFileName(hotPic)/>
<#assign postURL = _PostUtil.getTopicURL(hotPic.attach_rootpostid?default("-1"))/>
<dl class="pic" onmouseover="this.className='pic hover'" onmouseout="this.className='pic'">
<dt><a href="${postURL}" title="${hotPic.post_title?default("")?html}" target="${link_type}" alt="${hotPic.post_title?default("")?html}"><img src="${_contextPath}/${attachmentLoc}"/></a></dt>
<dd class="title"><a href="${postURL}" target="${link_type}">${hotPic.post_title}</a></dd>
</dl>
</#list>
</#if>
<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 + -