找回密码
 立即注册

[技术教程] DX3.5手机版 帖子里列表只显示主题

[复制链接]
发表于 2025-5-8 18:55:13 | 显示全部楼层 |阅读模式
forumdisplay.htm; @& B: G# q. A; q% O& j
<!--{template common/header}-->& a9 Z+ s0 R- V$ n
<div class="header cl">
% _) z& b% }" ^0 C1 I) R6 r/ @* z, r        <div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
1 V6 {- J3 @: S        <h2><!--{eval echo strip_tags($_G['forum']['name']) ? strip_tags($_G['forum']['name']) : $_G['forum']['name'];}--></h2>8 J$ U1 I! n; \5 `
        <div class="my"><a href="forum.php?mod=post&action=newthread&fid={$_G['fid']}" title="{lang send_threads}"><i class="dm-edit"></i></a></div>" D# [! z$ U+ U3 M/ h
</div>
) h& V* ~7 Y! b, v& L: d  w<!--{hook/forumdisplay_top_mobile}-->
$ l& P$ D0 a7 x" m<div class="forumdisplay-top cl">: {3 _1 ?+ r6 U3 X
        <h2>
6 P& h/ A! u7 ]        <!--{if $_G['forum']['icon']}--><img src="<!--{echo get_forumimg($_G['forum']['icon'])}-->" alt="$_G['forum']['name']" /><!--{else}--><svg width="48" height="44" alt="$_G['forum']['name']"><path fill="#c9c9c9" d="M48 20C48 9 37.3 0 24 0S0 8.9 0 20s10.7 20 24 20c2.4 0 4.7-.3 6.8-.8L42 44l-2.8-8.5C44.6 31.8 48 26.2 48 20z"/></svg><!--{/if}-->
/ y1 U4 ~# t8 j0 d4 F) g  h% C        <!--{if helper_access::check_module('favorite')}-->8 {/ p! `, K+ d( D/ x
        <a href="home.php?mod=spacecp&ac=favorite&type=forum&id=$_G['fid']&handlekey=favoriteforum&formhash={FORMHASH}" id="a_favorite" class="dialog">{lang favorite}<span id="number_favorite" {if !$_G['forum']['favtimes']} style="display:none;"{/if}><span id="number_favorite_num"> +{$_G['forum']['favtimes']}</span></span></a>
* J2 |6 A: J9 W. K9 B: c        <!--{/if}-->1 o0 a. v* f$ T% _- n) b
        $_G['forum']['name']) \6 T2 w$ F! I- t" O
        </h2>
# C6 v: c0 w- G( V        <p>{lang index_today}: <span>$_G['forum']['todayposts']</span>{lang index_threads}: <span>$_G['forum']['threads']</span><!--{if $_G['forum']['rank']}-->{lang rank}: <span>$_G['forum']['rank']</span><!--{/if}--></p>
( n; n+ Y& z, l# |4 ^: [        <!--{hook/forumdisplay_nav_mobile}-->
) o5 r8 @7 N5 _</div>  w" e4 H3 t- f: [% ]# O
<div class="dhnav_box">
8 c2 Q5 v2 x. z        <div id="dhnav">& {, k, x4 u6 P* H+ Y7 I
                <div id="dhnav_li">6 Q1 I0 X( s8 N, C8 y
                <ul class="flex-box">
- [9 b& t9 S9 d3 f3 Q                        <li class="flex{if $_REQUEST['sortall']==1||(!$_REQUEST['typeid'] && !$_REQUEST['sortid']&& !$_REQUEST['filter'])} mon{/if}"><a href="forum.php?mod=forumdisplay&fid=$_G['fid']{if $_G['forum']['threadsorts']['defaultshow']}&filter=sortall&sortall=1{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang all}</a></li>
0 o+ f% N7 M$ k* |4 s2 q                        <li class="flex{if $_GET['filter'] == 'lastpost'} mon{/if}"><a href="forum.php?mod=forumdisplay&fid=$_G['fid']&filter=lastpost&orderby=lastpost$forumdisplayadd['lastpost']{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang latest}</a></li>
' E/ Z/ c, L% C( h* |3 Q5 ?                        <li class="flex{if $_GET['filter'] == 'heat'} mon{/if}"><a href="forum.php?mod=forumdisplay&fid=$_G['fid']&filter=heat&orderby=heats$forumdisplayadd['heat']{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang order_heats}</a></li>, w0 x  s, p2 W
                        <li class="flex{if $_GET['filter'] == 'hot'} mon{/if}"><a href="forum.php?mod=forumdisplay&fid=$_G['fid']&filter=hot">{lang hot_thread}</a></li>
; C% D1 {3 }7 x) {7 w                        <li class="flex{if $_GET['filter'] == 'digest'} mon{/if}"><a href="forum.php?mod=forumdisplay&fid=$_G['fid']&filter=digest&digest=1$forumdisplayadd['digest']{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang digest_posts}</a></li>                       
: i* V0 p3 w9 j9 o* s                </ul>+ k! Z5 k4 Y3 I% n8 W5 I3 a
                </div>. j4 Q" \0 W, q3 K( |2 ?5 h8 P
        </div>6 g. o' t5 G3 o( ~! u& u: i5 h
</div>( {7 ?  B. [+ @9 q" G+ I7 }* O; s
<!--{hook/forumdisplay_middle}-->: P/ a8 ?( |2 u  `/ ^
<!--{if $_G['forum']['threadsorts'] || ($_G['forum']['threadtypes'] && $_G['forum']['threadtypes']['listable'])}-->
, Z+ @8 b5 M% E! h$ r# t<div class="dhnavs_box">
1 \& ?1 l3 l# K0 w7 d+ G        <div id="dhnavs">
" e1 e1 d) ^9 l6 [                <div id="dhnavs_li">  w. h. O( [7 P% k. X
                        <ul class="swiper-wrapper">
6 v! C' f' Q5 O% v7 h                                <!--{if ($_G['forum']['threadtypes'] && $_G['forum']['threadtypes']['listable'])}-->
8 V9 }' v/ x. b* b7 N% |# P2 F                                        <!--{if $_G['forum']['threadtypes']}-->+ g2 C6 `4 C# T
                                                <!--{loop $_G['forum']['threadtypes']['types'] $id $name}-->) B0 A" d" ?4 ]
                                                        <li class="swiper-slide{if $_GET['typeid'] == $id} mon{/if}"><a href="forum.php?mod=forumdisplay&fid=$_G['fid']&filter=typeid&typeid=$id$forumdisplayadd['typeid']{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name</a></li>
) g/ ~7 D5 F7 Z* z& [                                                <!--{/loop}-->- ~+ c- I. {% Y9 C$ q
                                        <!--{/if}-->* D" m% c. r( b0 u$ R- m) y( Y
                                <!--{/if}-->
& X/ f3 ^! R. }+ \& p3 b  z                                <!--{if $_G['forum']['threadsorts']}-->
) B2 v! r7 r3 K9 i9 `                                        <!--{loop $_G['forum']['threadsorts']['types'] $id $name}-->0 W1 z3 P, B7 R, g$ [6 d
                                                <!--{if $_GET['sortid'] == $id}-->1 Y6 j3 C3 T0 }0 Y+ Q* ^
                                                <li class="swiper-slide mon"><a href="forum.php?mod=forumdisplay&fid=$_G['fid']{if $_GET['typeid']}&filter=typeid&typeid=$_GET['typeid']{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name</a></li>
8 a3 [/ z. ?. _4 ~4 f" f0 r' ]                                                <!--{else}-->1 `1 m9 `  |4 ?! d0 ^3 W
                                                <li class="swiper-slide"><a href="forum.php?mod=forumdisplay&fid=$_G['fid']&filter=sortid&sortid=$id$forumdisplayadd['sortid']{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name</a></li>6 s! |* W8 X, Z
                                                <!--{/if}-->% ]3 R! ^/ ?, w+ o- F* H
                                        <!--{/loop}--># X0 t9 @& J5 P7 M9 Z( \
                                <!--{/if}-->' Y3 i4 W, z  x3 h. Y$ W
                        </ul>$ v% X: e& }$ n% `8 ~6 ]' ?1 _4 [
                </div>9 J5 l$ l  i" d$ W" r1 o
        </div>
' z4 B+ ~, J" j  C2 J) p% P, `</div>
- U( p! ?. i5 Z8 s) q5 E0 Y<script>
* c0 A) [6 d% |" Q3 d        if($("#dhnavs_li .mon").length > 0) {9 [& h" `" V+ B: w# g% q( W, f
                var discuz_nav = $("#dhnavs_li .mon").offset().left + $("#dhnavs_li .mon").width() >= $(window).width() ? $("#dhnavs_li .mon").index() : 0;
4 Y+ w  _0 q# [  g% D, Y        }else{1 ~: Q/ d( Z3 N
                var discuz_nav = 0;; ~' W4 [/ p  x
        }        - A' ?. z! a9 @
        new Swiper('#dhnavs_li', {
8 e  i/ M+ h/ g4 |' b5 @                freeMode : true,
% N5 ]  l( f- f$ s+ b                slidesPerView : 'auto',6 l) ~, {, ?9 d/ I" B) T7 F1 n
                initialSlide : discuz_nav,* z6 J' M" [3 ~8 |1 E; ?
                onTouchMove: function(swiper){
2 C$ c$ `/ t" G  A# b2 r* N8 Z                        Discuz_Touch_on = 0;7 L1 Y; R" ~: M* z3 a. Z1 j
                },
5 o0 B9 y; F) b7 K2 e6 _2 t& d' \                onTouchEnd: function(swiper){
, K# ^/ m6 W2 |8 E                        Discuz_Touch_on = 1;) G% C! |  z. v" M8 S0 W$ }
                },
# e' h+ Z, }! ?        });/ j# O" r3 \9 w5 Q! b8 z% s
</script>6 a* G; l' Z6 k% J
<!--{/if}--># g% j3 _1 a1 G0 Y2 C" u. ]
<!--{if $subexists && $_G['page'] == 1}--><!--{template forum/forumdisplay_subforum}--><!--{/if}-->4 U& O6 W* d8 \
<!--{if !$subforumonly}-->) O& Z1 O# j' r) s9 ?
<div class="threadlist_box<!--{if ((in_array($thread['displayorder'], array(1, 2, 3, 4))) || !empty($announcement)) && $_G['page'] == 1}--> mt10<!--{/if}--> cl">3 H. N+ F& l) {
        <div class="threadlist cl">* H3 r) z$ ?8 ?
                <ul>
2 ?/ b7 C& E0 J& P7 o: N& n                <!--{if !empty($announcement)}-->
" a" l7 t- x# d5 o1 v                        <li class="list_top"><!--{if empty($announcement['type'])}--><a href="forum.php?mod=announcement&id=$announcement['id']#$announcement['id']"><!--{else}--><a href="$announcement['message']"><!--{/if}--><span class="micon gonggao">{lang announcement}</span>$announcement['subject']</a></li>
2 w% l+ |& O, a+ A                <!--{/if}-->
; R1 ~% m6 U! P9 t2 {                <!--{if $_G['forum_threadcount']}-->/ m" e; ~. t" i" N. w+ ^
                        <!--{loop $_G['forum_threadlist'] $key $thread}-->
; G2 H( k+ x- R* @4 C- O                        <!--{if !$_G['setting']['mobile']['forum']['displayorder3'] && $thread['displayorder'] > 0}-->
, d* M  b0 f1 ]- ^& Y                                {eval continue;}) H( r& ^1 e- W- W# `+ ^
                        <!--{/if}-->
7 }1 B; Q9 `1 s5 N                        <!--{if $thread['displayorder'] > 0 && !$displayorder_thread}-->  b$ |7 d5 a- H/ Q
                                {eval $displayorder_thread = 1;}) o. p% c# h" m  b
                        <!--{/if}-->
9 |% c6 c& _+ j0 r) x                        <!--{if $thread['moved']}-->
: ]( x% r% d3 e; a% }1 ~                                <!--{eval $thread['tid']=$thread['closed'];}-->. V% P' {% @9 P. p, s+ x, Q, L  P
                        <!--{/if}-->
8 h0 Q5 f$ f' _/ z  O3 ~( ]2 x                        <!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->6 _; N) f1 ^  L3 T4 \8 |
                        <li class="list_top">
: B  v) @- I8 j  C                                <a href="forum.php?mod=viewthread&tid=$thread['tid']&extra=$extra">
1 T/ N2 C' W3 ^0 F, `5 b                                        <!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
+ L: G+ ?- H- n6 h- f/ U; K8 P7 {                                                <span class="micon">{lang mobzhiding}</span>
. _+ w# O. M4 M) E4 \# F+ u+ q                                        <!--{/if}-->
1 p/ h! L/ w3 b3 H                                        <em $thread['highlight']>{$thread['subject']}</em>                                        1 ~) v  c; A% L3 A
                                </a>
! k* k! [8 i- A. _5 |; w                        </li>5 M. u+ I% q0 s, X3 A* j. M
                        <!--{else}-->
8 a' O4 S3 ^3 D                        <li class="list" style="margin-top:0px;">" T3 N. q8 ~# H, F
                                <!--{hook/forumdisplay_thread_mobile $key}-->! E# L3 r' \. m9 A9 T$ ~$ W
- F4 P% _" X, q$ f+ M
                                <a href="forum.php?mod=viewthread&tid=$thread['tid']&extra=$extra">
( V2 E3 G" `% c: F  b                                <div class="threadlist_tit cl" style="margin-top:5px;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis;overflow: hidden;">. x! a6 i! b2 [0 P5 Y5 i0 m/ k
                                        <!--{if $thread['folder'] == 'lock'}-->
; y! `: n. s2 l                                                <span class="micon lock">{lang closed_thread}</span>
1 K# V9 h! W0 d6 t: k                                        <!--{elseif $thread['special'] == 1}-->
- ^# F$ O/ `- j- G" C                                                <span class="micon">{lang thread_poll}</span>
# X! G' b0 a$ a0 ~                                        <!--{elseif $thread['special'] == 2}-->
3 L" x, R# |. c( u                                                <span class="micon">{lang thread_trade}</span>. E- V6 N7 @- J3 C, o, v
                                        <!--{elseif $thread['special'] == 3}-->
+ u2 ?# d& q6 O' a2 u: _1 |) N/ L9 n                                                <span class="micon">{lang thread_reward}</span>
8 j3 h4 x* @& S- P; b                                        <!--{elseif $thread['special'] == 4}-->; X" G5 ~: \- S
                                                <span class="micon">{lang thread_activity}</span>$ V  Q/ J: l/ \9 r  j
                                        <!--{elseif $thread['special'] == 5}-->
" Y3 a, K( t3 x1 I1 M                                                <span class="micon">{lang thread_debate}</span>7 h+ ]: F3 ~* k; r3 M. M
                                        <!--{/if}-->
0 D8 Y# D' o/ T  W                                        <!--{if $thread['attachment'] == 2 && $_G['setting']['mobile']['mobilesimpletype'] == 1}-->$ t2 X; `) e, P( i: F
                                                <span class="micon">{lang mobtu}</span>
5 _6 g9 A. f; i1 _+ u( m                                        <!--{/if}-->
! i9 R4 Q: T2 Y                                        <!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->5 y) N1 @* d3 \5 Z! `' q; |  p
                                                <span class="micon top">{lang thread_sticky}</span>
6 d0 X5 C) E7 O( s, S5 R                                        <!--{/if}-->+ `9 s7 a( \7 P- F
                                        <!--{if $thread['digest'] > 0}-->* y+ a( q2 c+ q7 I( R
                                                <span class="micon digest">{lang thread_digest}</span>2 C, D3 o$ f+ z0 k
                                        <!--{/if}-->, n+ d1 h, D* k; h+ p3 r  f' l
                                        <em $thread['highlight']>{$thread['subject']}</em>
4 p2 `$ a8 }' b2 g) C- r                                </div>
9 o8 H9 r4 R* c                                </a>
) W& h" A$ P# {9 R$ [4 w; f                               
( P# o! _" h( J* s                               
2 X/ s; V; p* }0 U0 x  e9 Z2 O                                <!--{hook/forumdisplay_thread_content_mobile $key}-->  U& v) y: j8 o9 k) {0 l8 q
                               
( s- g" H# K% n2 h# h" _                        </li>
7 V( [' ]) q8 n' `+ O2 _: }                        <!--{/if}-->9 D) Z3 n- t5 t
                        <!--{/loop}-->
0 K2 G4 E: f, f  u0 Z                <!--{else}-->+ r  H. t4 ~7 Q* T- d; y
                        <h4>{lang forum_nothreads}</h4>
/ P2 F8 C5 {9 l/ N/ D9 p! B  @& x                <!--{/if}-->
: p0 D$ A2 O- c  p, Z  W                </ul>2 b  g, \) `* Z# F' V. P
        </div>$ c1 B; M! B. f+ m0 O: |( x
        $multipage3 V$ l3 ]" D& v- N0 C
</div>
' b# g6 S# ~3 @/ {$ `<!--{/if}-->
1 V5 w* @0 \& [5 K! ?+ I<!--{hook/forumdisplay_bottom_mobile}-->: _3 X! r$ i3 T) }/ b8 s
<!--{template common/footer}-->

[手机版简易帖子列表]forumdisplay.rar

2.26 KB, 下载次数: 0

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|74235资源站

GMT+8, 2026-2-12 18:46 , Processed in 0.038960 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表