discuz 主题列表调用版块名称方法

来自:互联网
时间:2020-09-03
阅读:

直接上代码,喜欢的欢迎转载收藏:

<!--{template common/header}-->
<!-- header start -->
<header class="header">
    <div class="nav">
		<div class="y"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]" title="{lang send_threads}"><span>交作业</span></a></div>
        <a href="forum.php?forumlist=1" class="z"><img src="{STATICURL}image/mobile/images/icon_back.png" /></a>
		<span class="category">
			<!--{if $subexists && $_G['page'] == 1}-->
			<span class="display name vm" href="#subname_list">
				<h2 class="tit"><!--{eval echo strip_tags($_G['forum']['name']) ? strip_tags($_G['forum']['name']) : $_G['forum']['name'];}--></h2>
				<img src="{STATICURL}image/mobile/images/icon_arrow_down.png">
			</span>
			<div id="subname_list" class="subname_list" display="true" style="display:none;">
				<ul>
				<!--{loop $sublist $sub}-->
				<li>
					<a href="forum.php?mod=forumdisplay&fid={$sub[fid]}">{$sub['name']}</a>
				</li>
				<!--{/loop}-->
				</ul>
			</div>
			<!--{else}-->
			<span class="name">
				<!--{eval echo strip_tags($_G['forum']['name']) ? strip_tags($_G['forum']['name']) : $_G['forum']['name'];}-->	<img src="{STATICURL}image/mobile/images/icon_arrow_down.png">
			</span>
			<!--{/if}-->
		</span>
    </div>
</header>
<!-- header end -->
 
<!--{hook/forumdisplay_top_mobile}-->
<!-- mAIn threadlist start -->
<!--{if !$subforumonly}-->
<div class="threadlist">
	     <ul>
		 <!--{if $_G[forum][icon] && !$subforumonly}--><img src="data/attachment/common/$_G[forum][icon]" alt="$_G['forum'][name]" /><!--{/if}-->
        </ul>
</div>
$multipage
<!--{/if}-->
<!-- main threadlist end -->
<!--{hook/forumdisplay_bottom_mobile}-->
<div class="pullrefresh" style="display:none;"></div>
 
 
<!--{template common/footer}-->
返回顶部
顶部