TaoLer/view/taoler/index/article/news/cate.html

116 lines
4.9 KiB
HTML
Raw Normal View History

2022-04-17 17:09:19 +08:00
{extend name="public/base" /}
2022-08-16 15:21:08 +08:00
{block name="title"}{$cateinfo.catename} - {$sysInfo.webname}{/block}
{block name="keywords"}{$cateinfo.catename},{$sysInfo.webname}{/block}
{block name="description"}{$cateinfo.desc}{/block}
{block name="ogtitle"}<meta property="og:title" content="{$cateinfo.catename} - {$sysInfo.webname}">{/block}
{block name="ogdescription"}<meta property="og:description" content="{$cateinfo.desc}" />{/block}
{block name="meta"}
<!-- SEO优化 -->
<meta name="Copyright" content="{$sysInfo.webname}">
<meta property="og:type" content="website"/>
<meta property="og:image" content=""/>
{/block}
2022-04-17 17:09:19 +08:00
{block name="column"}{include file="/public/column" /}{/block}
{block name="content"}
<div class="layui-container">
<div class="layui-row layui-col-space15">
2022-08-02 21:13:36 +08:00
<div class="layui-col-md8">
2022-04-17 17:09:19 +08:00
<div class="fly-panel" style="margin-bottom: 0;">
<ul class="fly-list">
{volist name="artList['data']" id="art"}
<li>
2022-08-02 20:47:28 +08:00
<a href="{$Request.domain}{:url('user/home',['id'=>$art.user.id])}" class="fly-avatar"><img src="{$Request.domain}{$art.user.user_img}" alt="{$art.user.name}"></a>
2022-08-02 21:13:36 +08:00
<h2><a href="{$Request.domain}{$art.url}" style="color:{$art.title_color ?? '#333'};">{$art.title}</a></h2>
2022-04-17 17:09:19 +08:00
<div class="fly-list-info">
2022-08-02 21:13:36 +08:00
{if config('taoler.config.cate_show') == 1}
<a class="layui-badge">{:cookie('think_lang') == 'en-us' ? $art.cate.ename : $art.cate.catename}</a>
{/if}
2022-08-02 20:47:28 +08:00
<a href="{$Request.domain}{:url('user/home',['id'=>$art.user.id])}" link>
2022-08-02 20:39:46 +08:00
{if config('taoler.config.area_show') == 1}
<span class="layui-badge layui-bg-green " title="来自哪简称">{:getAsing($art.user.area_id) ?: '无'}</span>
{/if}
<cite>{$art.user.nickname ?: $art.user.name}</cite>
<i>{$art.create_time|date='Y-m-d'}</i>
2022-04-17 17:09:19 +08:00
</a>
<span>
2022-08-02 21:13:36 +08:00
{$art.has_img ?= ' <i class="layui-icon layui-icon-picture" style=" color: #5FB878;"></i>'}
{$art.has_video ?= ' <i class="layui-icon layui-icon-play" style="color: #FF5722;"></i>'}
{$art.has_audio ?= ' <i class="layui-icon layui-icon-speaker" style="color: #000000;"></i>'}
{$art.upzip ?= ' <i class="layui-icon layui-icon-file-b" style="color: #009688;" title="附件"></i>'}
2022-04-17 17:09:19 +08:00
</span>
2022-08-02 20:39:46 +08:00
<span class="layui-hide-xs" title="浏览"><i class="iconfont" title="浏览">&#xe60b;</i> {$art.pv}</span>
<span class="fly-list-nums"><i class="iconfont icon-pinglun1" title="回答"></i> {$art.comments_count}</span>
2022-04-17 17:09:19 +08:00
</div>
<div class="fly-list-badge">
2022-08-02 20:39:46 +08:00
{if ($art.is_hot == 1)}
<i class="layui-icon layui-icon-fire layui-hide-md" style="font-size: 20px; color: #FF5722;"></i>
<span class="layui-badge layui-bg-red layui-hide-xs">{:lang('hot')}</span>
{/if}
2022-04-17 17:09:19 +08:00
</div>
</li>
{/volist}
</ul>
2022-08-02 20:39:46 +08:00
<div style="text-align: center" id="pages"></div>
2022-04-17 17:09:19 +08:00
</div>
</div>
2022-08-02 21:13:36 +08:00
<div class="layui-col-md4">
{if showSlider(3)}
2022-04-17 17:09:19 +08:00
<div class="fly-panel">
<div class="fly-panel" style="padding: 5px 0; text-align: center;">
{volist name="ad_cateImg" id="vo"}
2022-08-02 20:47:28 +08:00
<a href="{$vo.slid_href}" target="_blank"><img src="{$Request.domain}{$vo.slid_img}" style="max-width: 100%;"></a>
2022-04-17 17:09:19 +08:00
{/volist}
</div>
</div>
2022-08-02 21:13:36 +08:00
{/if}
2022-04-17 17:09:19 +08:00
<dl class="fly-panel fly-list-one layui-hide-xs">
<dt class="fly-panel-title">{:lang('hot post list')}</dt>
{volist name="artHot" id="vo"}
2022-08-02 20:39:46 +08:00
<dd>
2022-08-02 21:13:36 +08:00
<a href="{$Request.domain}{$vo.url}">{$vo.title}</a>
2022-04-17 17:09:19 +08:00
<span><i class="iconfont icon-pinglun1"></i> {$vo.comments_count}</span>
</dd>
2022-08-02 20:39:46 +08:00
{/volist}
</dl>
2022-08-02 21:13:36 +08:00
{if showSlider(6)}
2022-04-17 17:09:19 +08:00
<div class="fly-panel">
<div class="fly-panel-title">{:lang('sponsor')}<span style="padding: 0 3px;">-</span>
2022-08-02 20:39:46 +08:00
<a href="" class="fly-link fly-joinad">{:lang('i want to join')}</a>
2022-04-17 17:09:19 +08:00
</div>
<div class="fly-panel-main">
2022-08-02 20:39:46 +08:00
{volist name="ad_comm" id="vo"}
<a href="{$vo.slid_href}" target="_blank" rel="nofollow" class="fly-zanzhu" style="background-color: '{$vo.slid_color}';">{$vo.slid_name}</a>
{/volist}
2022-04-17 17:09:19 +08:00
</div>
</div>
2022-08-02 21:13:36 +08:00
{/if}
2022-04-17 17:09:19 +08:00
</div>
</div>
</div>
{include file="public/menu" /}
{/block}
{block name="script"}
<script>
layui.use(['laypage'], function(){
var laypage = layui.laypage;
//执行一个laypage实例
laypage.render({
elem: 'pages' //注意,这里的 test1 是 ID不用加 # 号
,count: "{$artList['total']}" //数据总数,从服务端得到
,limit: "{$artList['per_page']}"
,curr : "{$artList['current_page']}"
//获取起始页
,jump: function(obj, first){
//首次不执行
if(!first){
window.location.href = '{$path}/'+obj.curr+'.html'; //跳转
}
}
});
});
</script>
{/block}