[PHP] 純文本查看 復制代碼
<!--{if empty($gid) && !empty($forum_favlist)}-->
<!--{eval $forumscount = count($forum_favlist);}-->
<!--{eval $forumcolumns = $forumscount > 3 ? ($forumscount == 4 ? 4 : 5) : 1;}-->
<!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->
<div class="bm bmw {if $forumcolumns} flg{/if} cl">
<div class="bm_h cl">
<span class="o">
<img id="category_0_img" src="{IMGDIR}/$collapse['collapseimg_0']" title="{lang spread}" alt="{lang spread}" />
</span>
<h2><a href="home.php?mod=space&do=favorite&type=forum">{lang forum_myfav}</a></h2>
</div>
<div id="category_0" class="bm_c" style="{echo $collapse['category_0']}">
<table cellspacing="0" cellpadding="0" class="fl_tb">
<tr>
<!--{eval $favorderid = 0;}-->
<!--{loop $forum_favlist $key $favorite}-->
<!--{if $favforumlist[$favorite[id]]}-->
<!--{eval $forum=$favforumlist[$favorite[id]];}-->
<!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->
<!--{if $forumcolumns>1}-->
<!--{if $favorderid && ($favorderid % $forumcolumns == 0)}-->
</tr>
<!--{if $favorderid < $forumscount}-->
<tr class="fl_row">
<!--{/if}-->
<!--{/if}-->
<td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
<div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
<!--{if $forum[icon]}-->
$forum[icon]
<!--{else}-->
<a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
<!--{/if}-->
</div>
<dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
<dt><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></dt>
<!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: <!--{echo dnumber($forum[threads])}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($forum[posts])}--></em></dd><!--{/if}-->
<dd>
<!--{if $forum['permission'] == 1}-->
{lang private_forum}
<!--{else}-->
<!--{if $forum['redirect']}-->
<a href="$forumurl" class="xi2">{lang url_link}</a>
<!--{elseif is_array($forum['lastpost'])}-->
<!--{if $forumcolumns < 3}-->
<a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
<!--{else}-->
<a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
<!--{/if}-->
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
</dd>
<!--{hook/index_favforum_extra $forum[fid]}-->
</dl>
</td>
<!--{eval $favorderid++;}-->
<!--{else}-->
<td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
<!--{if $forum[icon]}-->
$forum[icon]
<!--{else}-->
<a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
<!--{/if}-->
</td>
<td>
<h2><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></h2>
<!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
<!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
<!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
<!--{hook/index_favforum_extra $forum[fid]}-->
</td>
<td class="fl_i">
<!--{if empty($forum[redirect])}--><span class="xi2"><!--{echo dnumber($forum[threads])}--></span><span class="xg1"> / <!--{echo dnumber($forum[posts])}--></span><!--{/if}-->
</td>
<td class="fl_by">
<div>
<!--{if $forum['permission'] == 1}-->
{lang private_forum}
<!--{else}-->
<!--{if $forum['redirect']}-->
<a href="$forumurl" class="xi2">{lang url_link}</a>
<!--{elseif is_array($forum['lastpost'])}-->
<a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
</div>
</td>
</tr>
<tr class="fl_row">
<!--{/if}-->
<!--{/if}-->
<!--{/loop}-->
<!--{if ($columnspad = $favorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width=\"$forumcolwidth\"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
</tr>
</table>
</div>
</div>
<!--{ad/intercat/bm a_c/-1}-->
<!--{/if}-->