|
jforum example source code file (presentation.ftl)
The jforum presentation.ftl source code
<#-- ********************************************* -->
<#-- Displays the topic folder image by its status -->
<#-- ********************************************* -->
<#macro folderImage topic>
<#if topic.movedId == 0 || (forum?exists && topic.forumId == forum.id)>
<#if topic.read>
<#if topic.status == STATUS_UNLOCKED>
<#if topic.type == TOPIC_ANNOUNCE>
<img class="icon_folder_announce" src="${contextPath}/images/transp.gif" alt="" />
<#elseif topic.type == TOPIC_STICKY>
<img class="icon_folder_sticky" src="${contextPath}/images/transp.gif" alt="" />
<#else>
<#if topic.isHot()>
<img class="icon_folder_hot" src="${contextPath}/images/transp.gif" alt="" />
<#else>
<img class="icon_folder" src="${contextPath}/images/transp.gif" alt="" />
</#if>
</#if>
<#else>
<img class="icon_folder_lock" src="${contextPath}/images/transp.gif" alt="" />
</#if>
<#else>
<#if topic.status == STATUS_UNLOCKED>
<#if topic.type == TOPIC_ANNOUNCE>
<img class="icon_folder_announce_new" src="${contextPath}/images/transp.gif" alt="" />
<#elseif topic.type == TOPIC_STICKY>
<img class="icon_folder_sticky_new" src="${contextPath}/images/transp.gif" alt="" />
<#else>
<#if topic.isHot()>
<img class="icon_folder_new_hot" src="${contextPath}/images/transp.gif" alt="" />
<#else>
<img class="icon_folder_new" src="${contextPath}/images/transp.gif" alt="" />
</#if>
</#if>
<#else>
<img class="icon_folder_lock_new" src="${contextPath}/images/transp.gif" alt="" />
</#if>
</#if>
<#else>
<img class="icon_topic_move" src="${contextPath}/images/transp.gif" alt="" />
</#if>
</#macro>
<#macro renderPoll poll>
<table class="poll">
<tr>
<td colspan="4" class="strong" align="center">${poll.label} |
</tr>
<tr>
<#list poll.options as option>
<tr>
<td>${option.text}
<td nowrap="nowrap" width="210">
<img class="icon_vote_lcap" src="${contextPath}/images/transp.gif" alt="" />
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.