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

116 lines
4.9 KiB
HTML
Raw Normal View History

2020-01-01 13:17:19 +08:00
{extend name="public/base" /}
2020-03-13 22:59:38 +08:00
{block name="title"}{$Request.param.ename|getCateName}-{$sysInfo.webname}{/block}
{block name="keywords"}{$Request.param.ename|getCateName},{$sysInfo.webname}{/block}
{block name="description"}{$Request.param.ename|getCateDesc}{/block}
2020-01-01 13:17: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">
2021-12-06 15:50:11 +08:00
<div class="layui-col-md9">
2020-01-01 13:17:19 +08:00
<div class="fly-panel" style="margin-bottom: 0;">
{include file="public/filter" /}
<ul class="fly-list">
2020-03-15 18:38:56 +08:00
{volist name="artList" id="art"}
2020-01-01 13:17:19 +08:00
<li>
<a href="{:url('user/home',['id'=>$art.user.id])}" class="fly-avatar">
2020-03-13 22:59:38 +08:00
<img src="{$art.user.user_img}" alt="{$art.user.name}">
2020-01-01 13:17:19 +08:00
</a>
<h2>
2021-07-23 17:05:43 +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}
2020-04-19 14:29:34 +08:00
<a href="{:url('article/detail',['id' => $art.id])}" style="color:{$art.title_color};">{$art.title}</a>
2020-01-01 13:17:19 +08:00
</h2>
<div class="fly-list-info">
<a href="{:url('user/home',['id'=>$art.user.id])}" link>
2021-07-22 10:54:03 +08:00
{if config('taoler.config.area_show') == 1}<span class="layui-badge layui-bg-green " title="来自哪简称">{:getAsing($art.user.area_id) ?: '无'}</span>{/if}
2020-01-01 13:17:19 +08:00
<cite>{$art.user.nickname ?: $art.user.name}</cite>
2021-06-07 17:53:24 +08:00
<i>{$art.create_time|date='Y-m-d'}</i>
2020-01-01 13:17:19 +08:00
<!--
<i class="iconfont icon-renzheng" title="认证信息XXX"></i>
2020-03-30 21:11:12 +08:00
{if($art.user.vip > 0)}
2020-12-14 14:53:33 +08:00
<i class="layui-badge fly-badge-vip">vip{$art.user.vip}</i>
2020-03-30 21:11:12 +08:00
{/if}
2021-06-07 17:53:24 +08:00
-->
2020-01-01 13:17:19 +08:00
</a>
2021-05-27 18:09:24 +08:00
<span>
{$art.has_img ?= ' <i class="layui-icon layui-icon-picture" style=" color: #5FB878;"></i>'}
2021-06-07 17:53:24 +08:00
{$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>'}
2021-05-27 18:09:24 +08:00
{$art.upzip ?= ' <i class="layui-icon layui-icon-file-b" style="color: #009688;" title="附件"></i>'}
</span>
2020-12-14 14:53:33 +08:00
<span class="layui-hide-xs" title="浏览"><i class="iconfont" title="浏览">&#xe60b;</i> {$art.pv}</span>
{if ($art.jie == 1)}<span class="layui-badge fly-badge-accept layui-hide-xs">{:lang('end')}</span>{/if}
2020-01-01 13:17:19 +08:00
<span class="fly-list-nums">
<i class="iconfont icon-pinglun1" title="回答"></i> {$art.comments_count}
</span>
</div>
<div class="fly-list-badge">
2021-07-07 17:17:58 +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}
2020-01-01 13:17:19 +08:00
</div>
</li>
2020-03-15 18:38:56 +08:00
{/volist}
2020-01-01 13:17:19 +08:00
</ul>
<div style="text-align: center" id="pages"></div>
2020-01-01 13:17:19 +08:00
</div>
</div>
2021-12-06 15:50:11 +08:00
<div class="layui-col-md3">
<div class="fly-panel">
<div class="fly-panel" style="padding: 5px 0; text-align: center;">
{volist name="ad_cateImg" id="vo"}
<a href="{$vo.slid_href}" target="_blank"><img src="{$vo.slid_img}" style="max-width: 100%;"></a>
{/volist}
</div>
</div>
<dl class="fly-panel fly-list-one layui-hide-xs">
2020-11-02 15:41:31 +08:00
<dt class="fly-panel-title">{:lang('hot post list')}</dt>
2020-01-01 13:17:19 +08:00
{volist name="artHot" id="vo"}
<dd>
<a href="{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
<span><i class="iconfont icon-pinglun1"></i> {$vo.comments_count}</span>
</dd>
{/volist}
</dl>
<div class="fly-panel">
2020-11-02 15:41:31 +08:00
<div class="fly-panel-title">{:lang('sponsor')}<span style="padding: 0 3px;">-</span>
<a href="" class="fly-link fly-joinad ">{:lang('i want to join')}</a>
2020-01-01 13:17:19 +08:00
</div>
<div class="fly-panel-main">
{volist name="ad_comm" id="vo"}
2020-01-02 16:23:03 +08:00
<a href="{$vo.slid_href}" target="_blank" rel="nofollow" class="fly-zanzhu" style="background-color: {$vo.slid_color};">{$vo.slid_name}</a>
2020-01-01 13:17:19 +08:00
{/volist}
</div>
</div>
</div>
</div>
</div>
{include file="public/menu" /}
2020-01-01 13:17:19 +08:00
{/block}
{block name="script"}
<script>
2021-05-20 11:52:40 +08:00
layui.use(['laypage'], function(){
2021-05-14 17:57:15 +08:00
var laypage = layui.laypage;
//执行一个laypage实例
laypage.render({
elem: 'pages' //注意,这里的 test1 是 ID不用加 # 号
,count: {$count} //数据总数,从服务端得到
2021-05-14 17:57:15 +08:00
,limit: 15
,curr :{$page}
//获取起始页
2021-05-14 17:57:15 +08:00
,jump: function(obj, first){
//obj包含了当前分页的所有参数比如
//console.log(obj.curr); //得到当前页,以便向服务端请求对应页的数据。
//console.log(obj.limit); //得到每页显示的条数
//首次不执行
if(!first){
//do something
//window.location.href= url+obj.curr+'&limit='+obj.limit+'#collection'; //跳转
window.location.href = '{$url}'+obj.curr+'.html'; //跳转
2021-05-14 17:57:15 +08:00
}
}
});
});
2020-01-01 13:17:19 +08:00
</script>
{/block}