Files
web-discuz/template/bygsjw_sj/touch/portal/view.php
2025-06-27 21:04:18 +08:00

141 lines
6.0 KiB
PHP

<?php echo 'Discuz!应用中心开发者-简约设计';exit;?>
<!--{template common/header}-->
<!-- header start -->
<header class="header_xin">
<div class="hdc_xin cl" id="byg_header">
<div class="header_z cl">
<a href="javascript:;" class="shouye">
<img src="<!--{avatar($_G['uid'], 'middle', true)}-->" alt="头像"/>
<!--{if $_G[member][newpm] || $post_notice_new}-->
<img src="{$_G['style']['styleimgdir']}/new_pm.png" alt="提醒" class="new_pm"/>
<!--{/if}-->
</a>
<em>&rsaquo;</em>
<a href="portal.php">{lang portal}</a>
<em>&rsaquo;</em>
<!--{loop $cat[ups] $value}-->
<a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a>
<em>&rsaquo;</em>
<!--{/loop}-->
<a href="{echo getportalcategoryurl($cat[catid])}">$cat[catname]</a>
<em>&rsaquo;</em>
<span>内容</span>
</div>
<a href="javascript:history.back();" title="返回上一页" class="header_y">
<img src="{$_G['style']['styleimgdir']}/houtui.png" alt="返回"/></a>
</div>
</header>
<!--{hook/global_header_mobile}-->
<!-- header end -->
<div class="portal_cat">
<!--门户频道相关分类开始-->
<link rel="stylesheet" href="{$_G['style']['styleimgdir']}/swiper.min.css" type="text/css">
<script type="text/javascript" src="{$_G['style']['styleimgdir']}/swiper.jquery.min.js"></script>
<!--{if $cat[others]}-->
<div class="portal_cat_top">
<div class="swiper-wrapper">
<!--{loop $cat[others] $value}-->
<a href="{echo getportalcategoryurl($value[catid])}" class="swiper-slide<!--{if $_GET['catid'] == $value['catid']}--> on<!--{/if}-->">{$value[catname]}</a>
<!--{/loop}-->
</div>
</div>
<script type="text/javascript">
var tab_initial = jQuery(".portal_cat_top .on").length > 0 ? jQuery(".portal_cat_top .on").index() : 0;
var portal_cat_top = new Swiper('.portal_cat_top', {
initialSlide : tab_initial,
slidesPerView : 'auto',
freeMode : true,
});
</script>
<!--{/if}-->
<!--门户频道下级分类开始-->
<!--{if $cat[subs]}-->
<div class="portal_cat_sub">
<div class="swiper-wrapper">
<span></span>
<!--{loop $cat[subs] $value}-->
<a href="{echo getportalcategoryurl($value[catid])}" class="swiper-slide">$value[catname]</a>
<!--{/loop}-->
</div>
</div>
<script type="text/javascript">
var tab_initial = jQuery(".portal_cat_sub .on").length > 0 ? jQuery(".portal_cat_sub .on").index() : 0;
var portal_cat_sub = new Swiper('.portal_cat_sub', {
initialSlide : tab_initial,
slidesPerView : 'auto',
freeMode : true,
});
</script>
<!--{/if}-->
</div>
<!--门户内容页文章开始-->
<!--{hook/view_article_top_mobile}-->
<div class="portal_content_t">
<div class="title">
<h1>$article[title] <!--{if $article['status'] == 1}-->({lang moderate_need})<!--{elseif $article['status'] == 2}-->({lang ignored})<!--{/if}--></h1>
<p class="article_h1_username">
<style>
.article_h1_username span{display:inline-block;}
.byg_article_description{ margin: .1rem 0; padding: .1rem; border: 1px dashed #eee; background: #ffe; border-radius: .02rem; color: #666; font-size: .15rem;}
</style>
<span class="y">$article[dateline]</span>
<span>{lang view_publisher} : <a href="home.php?mod=space&uid=$article[uid]&do=profile">$article[username]</a></span>&nbsp;&nbsp;&nbsp;
<span>{lang view_views} : <em id="_viewnum"><!--{if $article[viewnum] > 0}-->$article[viewnum]<!--{else}-->0<!--{/if}--></em></span>&nbsp;&nbsp;&nbsp;
<span>{lang view_comments} : <!--{if $article[commentnum] > 0}--><a href="$common_url" title="{lang view_all_comments}"><em id="_commentnum">$article[commentnum]</em></a><!--{else}-->0<!--{/if}--></span>&nbsp;&nbsp;&nbsp;
<!--{if $article[author]}--><span>{lang view_author_original} : $article[author]</span>&nbsp;&nbsp;&nbsp;<!--{/if}-->
<!--{if $article[from]}--><span>{lang from} : <!--{if $article[fromurl]}--><a href="$article[fromurl]" target="_blank">$article[from]</a><!--{else}-->$article[from]<!--{/if}--></span><!--{/if}-->
<!--{hook/view_article_subtitle_mobile}-->
</p>
</div>
<!--{if $article['summary'] && empty($cat['notshowarticlesummay'])}--><div class="byg_article_description"><div><strong>{lang article_description}</strong>: $article[summary]</div><!--{hook/view_article_summary_mobile}--></div><!--{/if}-->
<div id="article_content">$content[content]<!--{hook/view_article_content_mobile}--></div>
<!--{if $multi}--><div class="ptw pbw cl">$multi</div><!--{/if}-->
<script type="text/javascript" src="{$_G[setting][jspath]}home.js?{VERHASH}"></script>
<div id="click_div">
<!--{template home/space_click}-->
</div>
<!--{if $article['preaid'] || $article['nextaid']}-->
<div class="pren">
<!--{if $article['prearticle']}--><em>{lang pre_article}<a href="{$article['prearticle']['url']}" title="{$article['prearticle']['title']}"><!--{echo cutstr($article['prearticle']['title'],36,'')}--></a></em><!--{/if}-->
<!--{if $article['nextarticle']}--><em>{lang next_article}<a href="{$article['nextarticle']['url']}" title="{$article['nextarticle']['title']}"><!--{echo cutstr($article['nextarticle']['title'],36,'')}--></a></em><!--{/if}-->
</div>
<!--{/if}-->
</div>
<!--{eval $portal_view_gg = byg_block_fetch_value($bygsjw_blocks,'简约通用手机版门户内容页广告','summary');}-->
<!--{if $portal_view_gg}-->
<div class="byg_gg">{$portal_view_gg}</div>
<!--{/if}-->
<!--门户内容页相关阅读开始-->
<!--{if $article['related']}-->
<div id="related_article" class="portal_content_c">
<div class="pcc_title">
<h3>{lang view_related}</h3>
</div>
<div class="pcc_content">
<ul class="cl" id="raid_div">
<!--{loop $article['related'] $raid $rvalue}-->
<input type="hidden" value="$raid" />
<li>&bull; <a href="{$rvalue[uri]}" title="{$rvalue[title]}"><!--{echo cutstr($rvalue[title],40,'')}--></a></li>
<!--{/loop}-->
</ul>
</div>
</div>
<!--{/if}-->
<!--门户内容页最新评论开始-->
<!--{if $article['allowcomment']==1}-->
<!--{eval $data = &$article}-->
<!--{subtemplate portal/portal_comment}-->
<!--{/if}-->
<!--{template common/footer}-->