【discuzx2】forumdisplay_subform.htm模板文件深入分析
2013-10-16 10:56
537 查看
<div class="bm bmw fl{if $_G['forum']['forumcolumns']} flg{/if}"> <div class="bm_h cl"> <span class="o"><img id="subforum_{$_G[forum][fid]}_img" src="{IMGDIR}/$collapseimg[subforum]" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('subforum_$_G['forum'][fid]');" /></span> <h2>{lang forum_subforums}</h2> </div> <div id="subforum_{$_G[forum][fid]}" class="bm_c" style="$collapse[subforum]"> <table cellspacing="0" cellpadding="0" class="fl_tb"> <tr> <!--{loop $sublist $sub}--> <!--{eval $forumurl = !empty($sub['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$sub['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$sub['fid'];}--> <!--{if $_G['forum']['forumcolumns']}--> <!--{if $sub['orderid'] && ($sub['orderid'] % $_G['forum']['forumcolumns'] == 0)}--> </tr> <!--{if $_G['forum']['orderid'] < $_G['forum']['forumcolumns']}--> <tr class="fl_row"> <!--{/if}--> <!--{/if}--> <!-- 默认显示的都是 "fl_g" --> <td class="fl_g" width="$_G[forum][forumcolwidth]"> <!-- 子版块图标 --> <div class="fl_icn_g"{if !empty($sub[extra][iconwidth]) && !empty($sub[icon])} style="width: {$sub[extra][iconwidth]}px;"{/if}> <!--{if $sub[icon]}--> $sub[icon] <!--{else}--> <a href="$forumurl"{if $sub[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $sub[folder]}_new{/if}.gif" alt="$sub[name]" /></a> <!--{/if}--> </div> <dl{if !empty($sub[extra][iconwidth]) && !empty($sub[icon])} style="margin-left: {$sub[extra][iconwidth]}px;"{/if}> <!-- 子版块名称 --> <dt><a href="$forumurl" {if !empty($sub[redirect])}target="_blank"{/if} style="{if !empty($sub[extra][namecolor])}color: {$sub[extra][namecolor]};{/if}">$sub[name]</a><!--{if $sub[todayposts] && !$sub['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($sub[todayposts])</em><!--{/if}--></dt> <!-- 主题、帖数 --> <!--{if empty($sub[redirect])}--><dd><em>{lang forum_threads}: <!--{echo dnumber($sub[threads])}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($sub[posts])}--></em></dd><!--{/if}--> <dd> <!--{if $sub['permission'] == 1}--> {lang private_forum} <!--{else}--> <!--{if $sub['redirect']}--> <a href="$forumurl" class="xi2">{lang url_link}</a> <!--{elseif is_array($sub['lastpost'])}--> <!--{if $_G['forum']['forumcolumns'] < 3}--> <a href="forum.php?mod=redirect&tid=$sub[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($sub[lastpost][subject], 30)}--></a> <cite>$sub[lastpost][dateline] <!--{if $sub['lastpost']['author']}-->$sub['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite> <!--{else}--> <a href="forum.php?mod=redirect&tid=$sub[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $sub[lastpost][dateline]</a> <!--{/if}--> <!--{else}--> {lang never} <!--{/if}--> <!--{/if}--> <!--{hook/forumdisplay_subforum_extra $sub[fid]}--> </dd> </dl> </td> <!--{else}--><!-- 默认情况下执行上面的if代码段 --> <td class="fl_icn" {if !empty($sub[extra][iconwidth]) && !empty($sub[icon])} style="width: {$sub[extra][iconwidth]}px;"{/if}> <!--{if $sub[icon]}--> $sub[icon] <!--{else}--> <a href="$forumurl"{if $sub[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $sub[folder]}_new{/if}.gif" alt="$sub[name]" /></a> <!--{/if}--> </td> <td> <h2><a href="$forumurl" {if !empty($sub[redirect])}target="_blank"{/if} style="{if !empty($sub[extra][namecolor])}color: {$sub[extra][namecolor]};{/if}">$sub[name]</a><!--{if $sub[todayposts] && !$sub['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($sub[todayposts])</em><!--{/if}--></h2> <!--{if $sub[description]}--><p class="xg2">$sub[description]</p><!--{/if}--> <!--{if $sub['subforums']}--><p>{lang forum_subforums}: $sub['subforums']</p><!--{/if}--> <!--{if $sub['moderators']}--><p>{lang forum_moderators}: $sub[moderators]</p><!--{/if}--> <!--{hook/forumdisplay_subforum_extra $sub[fid]}--> </td> <td class="fl_i"> <!--{if empty($sub[redirect])}--><span class="xi2"><!--{echo dnumber($sub[threads])}--></span><span class="xg1"> / <!--{echo dnumber($sub[posts])}--></span><!--{/if}--> </td> <td class="fl_by"> <div> <!--{if $sub['permission'] == 1}--> {lang private_forum} <!--{else}--> <!--{if $sub['redirect']}--> <a href="$forumurl" class="xi2">{lang url_link}</a> <!--{elseif is_array($sub['lastpost'])}--> <a href="forum.php?mod=redirect&tid=$sub[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($sub[lastpost][subject], 30)}--></a> <cite>$sub[lastpost][dateline] <!--{if $sub['lastpost']['author']}-->$sub['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite> <!--{else}--> {lang never} <!--{/if}--> <!--{/if}--> </div> </td> </tr> <tr class="fl_row"> <!--{/if}--> <!--{/loop}--> $_G['forum']['endrows'] </tr> </table> </div> </div>
相关文章推荐
- 【discuzx2】forumdisplay_list.htm模板文件深入分析
- 【discuzx2】discuz.htm模板文件深入分析
- 【discuzx2】header.htm模板文件深入分析
- 【discuzx2】header.htm模板文件深入分析
- 【discuzx2】home_space.htm模板文件解析
- 【discuzx2】forumdisplay.htm模板文件详解
- 【discuzx2】space_status.htm模板文件的解析
- 【discuzx2】space_feed_li.htm模板文件解析
- 《struts----入门简要分析struts的工作原理》---只是简单的分析配置文件,对内部的FormBean等有关的知识未涉及
- ASP.NET 安全认证(二)——灵活运用 Form 表单认证中的 deny 与 allow 及保护 .htm 等文件
- vue-cli的webpack模板项目配置文件分析
- 利用python进行数据分析-pandas.concat/subplots/gropuby/pivot_table,多文件整合、聚合、分组,子图
- Spring MVC 教程,快速入门,深入分析――关于写几个配置文件的说明
- 深入分析FFmpeg之一-打开媒体文件并读取文件头信息
- Django网站建设-头像修改,邮箱及密码修改(form,js文件,模板配置)
- vue-cli的webpack模板项目配置文件分析
- Discuz模板文件space_blog.htm解析
- (转)Google GFS文件系统深入分析
- ASP.NET 安全认证(二)——灵活运用 Form 表单认证中的 deny 与 allow 及保护 .htm 等文件 作者:寒羽枫
- 深入理解linux内核之文件系统分析一