89 lines
2.4 KiB
HTML
89 lines
2.4 KiB
HTML
{layout name="layout"/}
|
|
{php}
|
|
use \app\model\Archives ;
|
|
use \app\model\ArchivesCategory ;
|
|
use app\service\Image as WImage;
|
|
$newsMenu = ArchivesCategory::findlist([["pid","=",ArchivesCategory::news_id]],[],1,0,null,['sort' =>'desc',"id"=>"asc"]);
|
|
if(!isset($newsMenu['list'])){
|
|
$newsMenu['list']=[];
|
|
}
|
|
{/php}
|
|
|
|
<!-- 轮播图 -->
|
|
<div class="pull-swiper banner-swiper swiper w1690">
|
|
{include file="public/slide"/}
|
|
<div class="swiper-pagination"></div>
|
|
<ul class="pull-item">
|
|
{foreach $newsMenu['list'] as $newsMenuItem}
|
|
<li {if $active_category_id == $newsMenuItem['id']} class="cur" {/if}>
|
|
<a href="{:getUri($newsMenuItem)}">{$newsMenuItem['title']}</a>
|
|
</li>
|
|
{/foreach}
|
|
</ul>
|
|
</div>
|
|
<!-- 主体内容 -->
|
|
<div class="content w100" >
|
|
<div class="news-bg news-detail-bg w1690">
|
|
<div class="news w1280">
|
|
<h1>{$archive['title']}</h1>
|
|
<span class="news-time">
|
|
发布时间:{$archive['created_at']|date="Y-m-d"}
|
|
|
|
<em>
|
|
来源:
|
|
{if empty($archive['author'] )}
|
|
本站原创
|
|
{else/}
|
|
{$archive['author']??"本站原创"}
|
|
{/if}
|
|
</em>
|
|
|
|
点击次数:{$archive['views']}次
|
|
</span>
|
|
<div class="news-detail-txt">
|
|
{$archive['content']|raw}
|
|
</div>
|
|
<!-- 上下篇 -->
|
|
<div class="news-page">
|
|
|
|
{if !empty($prev)}
|
|
<a href="{:archiveGetUri($prev)}" class="prev">
|
|
<ins><img src="__IMG__/arrow-page.png" alt=""></ins>
|
|
{if !empty($prev['cover']) && is_file(public_path().$prev['cover']) }
|
|
<span>
|
|
<img src="{:WImage::getThumb($prev['cover'], 90, 60)}" alt="">
|
|
</span>
|
|
{/if}
|
|
<div class="page-title">
|
|
<p class="clips1">{$prev['title']}</p>
|
|
<span>{$prev['created_at']|date="Y.m.d"}</span>
|
|
</div>
|
|
</a>
|
|
{else/}
|
|
<a class="prev"></a>
|
|
{/if}
|
|
|
|
|
|
|
|
{if !empty($next)}
|
|
<a href="{:archiveGetUri($next)}" class="next">
|
|
<div class="page-title">
|
|
<p class="clips1">{$next['title']}</p>
|
|
<span>{$next['created_at']|date="Y.m.d"}</span>
|
|
</div>
|
|
{if !empty($next['cover']) && is_file(public_path().$next['cover']) }
|
|
<span>
|
|
<img src="{:WImage::getThumb($next['cover'], 90, 60)}" alt="">
|
|
</span>
|
|
{/if}
|
|
<ins><img src="__IMG__/arrow-page.png" alt=""></ins>
|
|
</a>
|
|
{else/}
|
|
<a class="next"></a>
|
|
{/if}
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |