220 lines
11 KiB
HTML
Executable File
220 lines
11 KiB
HTML
Executable File
<!--{template common/header}-->
|
|
<!--{if $_GET['mod'] == 'find'}-->
|
|
<!--{template forum/find}-->
|
|
<!--{else}-->
|
|
<!--{if $_G['setting']['mobile']['forum']['index'] == 1 && empty($_G['cache']['heats']['message']) && $_GET['forumlist'] != 1}-->
|
|
<!--{eval dheader('Location:forum.php?mod=guide&view=newthread');exit;}-->
|
|
<!--{else}-->
|
|
<!--{if ($_G['setting']['mobile']['forum']['index'] && $_GET['forumlist'] != 1) || !$_G['setting']['mobile']['forum']['index']}-->
|
|
<div class="header cl">
|
|
<div class="mzlogo"><a href="javascript:;">{$_G['style']['touchlogo']}</a></div>
|
|
<div class="myss"><a href="search.php?mod=forum"><i class="dm-search"></i>{lang mobsearchtxt}</a></div>
|
|
</div>
|
|
<!--{else}-->
|
|
<div class="header cl">
|
|
<div class="mz"><a href="javascript:history.back();"><i class="dm-c-left"></i></a></div>
|
|
<h2>{$_G['setting']['navs'][2]['navname']}</h2>
|
|
<div class="my"><a href="search.php?mod=forum"><i class="dm-search"></i></a></div>
|
|
</div>
|
|
<!--{/if}-->
|
|
<!--{if ($_G['setting']['mobile']['forum']['index'] > 1 && $_GET['forumlist'] != 1)}-->
|
|
<!--{if !empty($_G['setting']['grid']['showgrid']) && !$_G['setting']['grid']['gridtype']}-->
|
|
<div class="dz-swiper_box dz-swiper">
|
|
<ul class="swiper-wrapper">
|
|
<!--{loop $grids['slide'] $stid $svalue}-->
|
|
<li class="swiper-slide"><a href="{$svalue['url']}"><img src="$svalue['image']" width="100%" class="vm"><span>$svalue['subject']</span></a></li>
|
|
<!--{/loop}-->
|
|
</ul>
|
|
<div class="swiper-forum"></div>
|
|
</div>
|
|
<script>
|
|
var swiper = new Swiper('.dz-swiper', {
|
|
autoplay: {
|
|
disableOnInteraction: false,
|
|
delay: 3000,
|
|
},
|
|
pagination: {
|
|
el: '.swiper-forum',
|
|
type: 'fraction',
|
|
},
|
|
});
|
|
</script>
|
|
<!--{/if}-->
|
|
<!--{hook/index_top}-->
|
|
<!--{/if}-->
|
|
<!--{if $_G['setting']['mobile']['forum']['index'] > 1 && $_GET['forumlist'] != 1}-->
|
|
<!--{eval loadcache(array('forums'));$i=0;}-->
|
|
<!--{if !empty($_G['cache']['heats']['message'])}-->
|
|
<div class="hotbox cl">
|
|
<h2><span>{lang mobredian}</span>{lang mobtuijian}</h2>
|
|
<div class="hotbox-toutiao cl">
|
|
<ul>
|
|
<!--{loop $_G['cache']['heats']['message'] $data}-->
|
|
<li><a href="forum.php?mod=viewthread&tid=$data['tid']"><span>$data['subject']</span>$data['message']</a></li>
|
|
<!--{/loop}-->
|
|
</ul>
|
|
</div>
|
|
<div class="listbox hotbox-list cl">
|
|
<ul>
|
|
<!--{loop $_G['cache']['heats']['subject'] $data}-->
|
|
<li><a href="forum.php?mod=viewthread&tid=$data['tid']"><span class="mbk">$_G['cache']['forums'][$data['fid']]['name']</span><span class="mx">|</span>$data['subject']</a></li>
|
|
<!--{/loop}-->
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!--{/if}-->
|
|
<!--{hook/index_catlist_top}-->
|
|
<!--{if !empty($_G['setting']['grid']['showgrid'])}-->
|
|
<div class="tabs flex-box mt10 cl">
|
|
<a href="javascript:;" class="flex mon">{lang collection_lastthread}</a>
|
|
<a href="javascript:;" class="flex">{lang show_newthreads}</a>
|
|
<a href="javascript:;" class="flex">{$_G['setting']['navs'][2]['navname']}{lang hot_thread}</a>
|
|
<a href="javascript:;" class="flex">{lang post_digest_thread}</a>
|
|
<!--{if $_G['setting']['mobile']['forum']['index'] == 2}--><a href="forum.php?forumlist=1" class="flex">{lang forum_list}</a><!--{/if}-->
|
|
</div>
|
|
<div id="tabs-box" class="swiper-container listbox cl">
|
|
<div class="swiper-wrapper">
|
|
<div class="swiper-slide">
|
|
<ul>
|
|
<!--{loop $grids['newthread'] $thread}-->
|
|
<!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
|
|
<!--{eval $thread['tid']=$thread['closed'];}-->
|
|
<!--{/if}-->
|
|
<li><a href="forum.php?mod=viewthread&tid=$thread['tid']"{if $thread['highlight']} $thread['highlight']{/if}><span class="mybk">$thread['dateline']</span><span class="mico"></span>{$thread['oldsubject']}</a></li>
|
|
<!--{/loop}-->
|
|
</ul>
|
|
</div>
|
|
<div class="swiper-slide">
|
|
<ul>
|
|
<!--{loop $grids['newreply'] $thread}-->
|
|
<!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
|
|
<!--{eval $thread['tid']=$thread['closed'];}-->
|
|
<!--{/if}-->
|
|
<li><a href="forum.php?mod=viewthread&tid=$thread['tid']"{if $thread['highlight']} $thread['highlight']{/if}><span class="mybk">$thread['replies'] {lang reply}</span><span class="mico"></span>{$thread['oldsubject']}</a></li>
|
|
<!--{/loop}-->
|
|
</ul>
|
|
</div>
|
|
<div class="swiper-slide">
|
|
<ul>
|
|
<!--{loop $grids['hot'] $thread}-->
|
|
<!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
|
|
<!--{eval $thread['tid']=$thread['closed'];}-->
|
|
<!--{/if}-->
|
|
<!--{eval $i++;}-->
|
|
<li><a href="forum.php?mod=viewthread&tid=$thread['tid']"{if $thread['highlight']} $thread['highlight']{/if}><span class="mybk">$thread['views'] {lang mobrenqi}</span><span class="mnum">$i</span>{$thread['oldsubject']}</a></li>
|
|
<!--{/loop}-->
|
|
</ul>
|
|
</div>
|
|
<div class="swiper-slide">
|
|
<ul>
|
|
<!--{loop $grids['digest'] $thread}-->
|
|
<!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
|
|
<!--{eval $thread['tid']=$thread['closed'];}-->
|
|
<!--{/if}-->
|
|
<li><a href="forum.php?mod=viewthread&tid=$thread['tid']"{if $thread['highlight']} $thread['highlight']{/if}><span class="mybk">$thread['author']</span><span class="mico"></span>{$thread['oldsubject']}</a></li>
|
|
<!--{/loop}-->
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
window.onload = function() {
|
|
var tabsSwiper = new Swiper('#tabs-box', {
|
|
speed: 500,
|
|
on: {
|
|
slideChangeTransitionStart: function() {
|
|
$(".tabs .mon").removeClass('mon');
|
|
$(".tabs a").eq(this.activeIndex).addClass('mon');
|
|
}
|
|
}
|
|
})
|
|
$(".tabs a").on('click', function(e) {
|
|
e.preventDefault()
|
|
$(".tabs .mon").removeClass('mon')
|
|
$(this).addClass('mon')
|
|
tabsSwiper.slideTo($(this).index())
|
|
})
|
|
}
|
|
</script>
|
|
<!--{/if}-->
|
|
<!--{/if}-->
|
|
<!--{if in_array($_G['setting']['mobile']['forum']['index'], array(0,3)) || $_GET['forumlist'] == 1}-->
|
|
<!--{if $announcements}-->
|
|
<div class="ann-box">
|
|
<div class="mtit">{lang announcements}</div>
|
|
<div id="ann"><ul>$announcements</ul></div>
|
|
</div>
|
|
<script type="text/javascript">discuz_loop(24, 30, 3000, 'ann');</script>
|
|
<!--{/if}-->
|
|
<!--{if $_G['setting']['mobile']['forum']['statshow']}-->
|
|
<div class="stat cl">
|
|
<ul class="flex-box">
|
|
<li class="flex"><em>$todayposts</em>{lang index_today}</li>
|
|
<li class="flex"><em>$postdata[0]</em>{lang index_yesterday}</li>
|
|
<li class="flex"><em>$posts</em>{lang index_posts}</li>
|
|
<li class="flex"><em>$_G['cache']['userstats']['totalmembers']</em>{lang index_members}</li>
|
|
</ul>
|
|
</div>
|
|
<!--{/if}-->
|
|
<!--{hook/index_top_mobile}-->
|
|
<div class="forumlist cl">
|
|
<!--{loop $catlist $key $cat}-->
|
|
<div class="subforumshow cl" href="#sub-forum_$cat['fid']">
|
|
<i class="{if !$_G['setting']['mobile']['forum']['forumview']}dm-minus-c{else}dm-plus-c{/if}"></i>
|
|
<h2><a href="javascript:;">$cat['name']</a></h2>
|
|
</div>
|
|
<div id="sub-forum_$cat['fid']" class="sub-forum mlist<!--{if $cat['forumcolumns'] == 3}-->3<!--{elseif $cat['forumcolumns'] == 2}-->2<!--{elseif $cat['forumcolumns'] == 1 || $cat['forumcolumns'] == 0}-->1<!--{else}-->4<!--{/if}--> cl">
|
|
<ul>
|
|
<!--{loop $cat['forums'] $forumid}-->
|
|
<!--{eval $forum=$forumlist[$forumid];}-->
|
|
<!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? $_G['scheme'].'://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->
|
|
<!--{if $forum['permission'] == 1}-->
|
|
<li><span class="micon{if $_G['setting']['mobile']['forum']['iconautowidth']} autowidth{/if}"><a href="forum.php?mod=forumdisplay&fid={$forum['fid']}"><!--{if $forum['icon']}-->$forum['icon']<!--{else}--><svg width="48" height="44" alt="$forum['name']"><path fill="#{if $forum['folder']}fdc910{else}c9c9c9{/if}" 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}--></a></span>
|
|
<a href="forum.php?mod=forumdisplay&fid={$forum['fid']}" class="murl"><p class="mtit">{lang private_forum}<!--{if $forum['todayposts'] > 0 && ($cat['forumcolumns'] == 1 || $cat['forumcolumns'] == 0)}--><span class="mnum">{lang forum_todayposts} $forum['todayposts']</span><!--{/if}--></p></a></li>
|
|
<!--{else}-->
|
|
<li><span class="micon{if $_G['setting']['mobile']['forum']['iconautowidth']} autowidth{/if}"><a href="forum.php?mod=forumdisplay&fid={$forum['fid']}"><!--{if $forum['icon']}-->$forum['icon']<!--{else}--><svg width="48" height="44" alt="$forum['name']"><path fill="#{if $forum['folder']}fdc910{else}c9c9c9{/if}" 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}--></a></span>
|
|
<a href="forum.php?mod=forumdisplay&fid={$forum['fid']}" class="murl"><p class="mtit">{$forum['name']}<!--{if $forum['todayposts'] > 0 && ($cat['forumcolumns'] == 1 || $cat['forumcolumns'] == 0)}--><span class="mnum">{lang forum_todayposts} $forum['todayposts']</span><!--{/if}--></p>
|
|
<!--{if $cat['forumcolumns'] < 3}--><!--{if $forum['redirect']}--><p class="mtxt">{lang url_link}</p><!--{else}--><p class="mtxt"><!--{if $cat['forumcolumns'] == 2}-->{lang mobposts}: <!--{echo dnumber($forum['posts'])}--><!--{if $forum['todayposts'] > 0}--><span class="mnum">{lang forum_todayposts}: $forum['todayposts']</span><!--{/if}--><!--{else}--><!--{if $forum['description']}-->$forum['description']<!--{else}-->{lang mobnodescription}<!--{/if}--><!--{/if}--></p><!--{/if}--><!--{/if}--></a></li>
|
|
<!--{/if}-->
|
|
<!--{/loop}-->
|
|
</ul>
|
|
</div>
|
|
<!--{/loop}-->
|
|
</div>
|
|
<!--{hook/index_middle_mobile}-->
|
|
<script type="text/javascript">
|
|
(function() {
|
|
<!--{if !$_G['setting']['mobile']['forum']['forumview']}-->
|
|
$('.sub-forum').css('display', 'block');
|
|
<!--{else}-->
|
|
$('.sub-forum').css('display', 'none');
|
|
<!--{/if}-->
|
|
$('.subforumshow').on('click', function() {
|
|
var obj = $(this);
|
|
var subobj = $(obj.attr('href'));
|
|
if(subobj.css('display') == 'none') {
|
|
subobj.css('display', 'block');
|
|
obj.find('i').removeClass().addClass('dm-minus-c');
|
|
} else {
|
|
subobj.css('display', 'none');
|
|
obj.find('i').removeClass().addClass('dm-plus-c');
|
|
}
|
|
});
|
|
})();
|
|
</script>
|
|
<!--{/if}-->
|
|
<div class="footer mt10 cl">
|
|
<div class="footer-nv">
|
|
<a href="javascript:;" class="mon">{lang mobile2version}</a>|<a
|
|
href="{$_G['setting']['mobile']['nomobileurl']}">{lang nomobiletype}</a><!--{if $clienturl}-->|<a
|
|
href="$clienturl">{lang clientversion}</a><!--{/if}-->
|
|
</div>
|
|
<div class="footer-copy mt10">
|
|
<!--{if $_G['setting']['icp'] || $_G['setting']['mps']}--><!--{if $_G['setting']['icp']}--><a href="https://beian.miit.gov.cn/" target="_blank">$_G['setting']['icp']</a><!--{/if}--><!--{if $_G['setting']['mps']}--><a href="https://beian.mps.gov.cn/#/query/webSearch?code=$_G['setting']['mpsid']" target="_blank"><img width="14" height="14" src="{IMGDIR}/ico_mps.png" />$_G['setting']['mps']</a><!--{/if}--><br><!--{/if}-->
|
|
Powered by Discuz! <em>$_G['setting']['version']</em>
|
|
<p class="xs0">{lang copyright}</p>
|
|
</div>
|
|
</div>
|
|
<!--{/if}-->
|
|
<!--{/if}-->
|
|
<!--{template common/footer}--> |