这段是默认的主题前面的图标
- <?php //主题列表前缀图标?>
- <td class="icn">
- <a href="forum.php?mod=viewthread&tid=$thread[icontid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra" title="{if $thread['displayorder'] == 1}{lang thread_type1} - {/if}
- {if $thread['displayorder'] == 2}{lang thread_type2} - {/if}
- {if $thread['displayorder'] == 3}{lang thread_type3} - {/if}
- {if $thread['displayorder'] == 4}{lang thread_type4} - {/if}
- {if $thread[folder] == 'lock'}{lang closed_thread} - {/if}
- {if $thread['special'] == 1}{lang thread_poll} - {/if}
- {if $thread['special'] == 2}{lang thread_trade} - {/if}
- {if $thread['special'] == 3}{lang thread_reward} - {/if}
- {if $thread['special'] == 4}{lang thread_activity} - {/if}
- {if $thread['special'] == 5}{lang thread_debate} - {/if}
- {if $thread[folder] == "new"}{lang have_newreplies} - {/if}
- {lang target_blank}" target="_blank">
- <!--{if $thread[folder] == 'lock'}-->
- <img src="{IMGDIR}/folder_lock.gif" />
- <!--{elseif $thread['special'] == 1}-->
- <img src="{IMGDIR}/pollsmall.gif" alt="{lang thread_poll}" />
- <!--{elseif $thread['special'] == 2}-->
- <img src="{IMGDIR}/tradesmall.gif" alt="{lang thread_trade}" />
- <!--{elseif $thread['special'] == 3}-->
- <img src="{IMGDIR}/rewardsmall.gif" alt="{lang thread_reward}" />
- <!--{elseif $thread['special'] == 4}-->
- <img src="{IMGDIR}/activitysmall.gif" alt="{lang thread_activity}" />
- <!--{elseif $thread['special'] == 5}-->
- <img src="{IMGDIR}/debatesmall.gif" alt="{lang thread_debate}" />
- <!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
- <img src="{IMGDIR}/pin_$thread[displayorder].gif" alt="$_G[setting][threadsticky][3-$thread[displayorder]]" />
- <!--{else}-->
- <img src="{IMGDIR}/folder_$thread[folder].gif" />
- <!--{/if}-->
- </a>
- </td>
复制代码 这段代码包含主题的标题和后面的图标。
将标题后面关于图标提示的部分放在前面主题图标部分去。想怎么放要看自己的逻辑来。
比如在有图的情况下放有图的图标。精华帖放精华帖的图标。有一个判断在里面。自己写
- <!--{if xxx}-->
- 有图图标……
- <!--{elseif xxx}-->
- 精华图标……
- <!--{else}-->
- 默认图标……
- <!--{/if}-->
复制代码
|