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

105 lines
4.6 KiB
HTML
Raw Normal View History

2020-01-01 13:17:19 +08:00
{extend name="public/base" /}
2022-08-02 18:47:24 +08:00
{block name="title"}{$sysInfo.webname}{/block}
2022-08-16 15:29:04 +08:00
{block name="keywords"}{$sysInfo.keywords}{/block}
{block name="description"}{$sysInfo.descript}{/block}
{block name="ogtitle"}<meta property="og:title" content="{$sysInfo.webtitle}" />{/block}
{block name="ogdescription"}<meta property="og:description" content="{$sysInfo.descript}" />{/block}
{block name="ogimage"}<meta property="og:image" content="{$Request.domain}{$sysInfo.logo}" />{/block}
{block name="meta"}
<!-- SEO优化 -->
<meta name="Copyright" content="{$sysInfo.webname}">
<meta property="og:type" content="website"/>
<meta property="og:image" content=""/>
{/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">
2023-05-05 12:07:11 +08:00
<div class="layui-col-md8">
2020-01-01 13:17:19 +08:00
<div class="fly-panel" style="margin-bottom: 0;">
2022-08-02 18:47:24 +08:00
{include file="public/filter" /}
2020-01-01 13:17:19 +08:00
<ul class="fly-list">
2022-01-07 14:43:42 +08:00
{volist name="artList['data']" id="art"}
2020-01-01 13:17:19 +08:00
<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}">
2020-01-01 13:17:19 +08:00
</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>
2020-01-01 13:17: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}
<a href="{$Request.domain}{:url('user/home',['id'=>$art.user.id])}" link>
<cite>{$art.user.nickname ?: $art.user.name}</cite>
<i>{$art.create_time|date='Y-m-d'}</i>
<!--
<i class="iconfont icon-renzheng" title="认证信息XXX"></i>
{if($art.user.vip > 0)}
<i class="layui-badge fly-badge-vip">vip{$art.user.vip}</i>
{/if}
-->
2020-01-01 13:17:19 +08:00
</a>
2023-05-05 12:04:46 +08:00
{$art.has_img ?= '<span><i class="layui-icon layui-icon-picture" style="color: #5FB878;"></i></span>'}
{$art.has_video ?= '<span><i class="layui-icon layui-icon-play" style="color: #FF5722;"></i></span>'}
{$art.has_audio ?= '<span><i class="layui-icon layui-icon-speaker" style="color: #000000;"></i></span>'}
{$art.read_type ?= '<span><i class="layui-icon layui-icon-password" style="color: #FF5722;"></i></span>'}
{$art.upzip ?= '<span><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}
2022-08-02 21:13:36 +08:00
<span class="fly-list-nums"><i class="iconfont icon-pinglun1" title="回答"></i> {$art.comments_count}</span>
2020-01-01 13:17:19 +08:00
</div>
<div class="fly-list-badge">
2022-08-02 21:13:36 +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>
2023-05-05 12:07:11 +08:00
<div class="layui-col-md4">
<!--列表广告图片位-->
{:hook('ads_cate_rimg')}
<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"}
2022-08-16 15:29:04 +08:00
<dd>
2022-08-02 21:13:36 +08:00
<a href="{$Request.domain}{$vo.url}">{$vo.title}</a>
2020-01-01 13:17:19 +08:00
<span><i class="iconfont icon-pinglun1"></i> {$vo.comments_count}</span>
</dd>
2022-08-16 15:29:04 +08:00
{/volist}
2020-01-01 13:17:19 +08:00
</dl>
2023-05-05 12:07:11 +08:00
<!--列表广告赞助位-->
{:hook('ads_cate_support')}
2020-01-01 13:17:19 +08:00
</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不用加 # 号
2022-01-07 14:43:42 +08:00
,count: "{$artList['total']}" //数据总数,从服务端得到
,limit: "{$artList['per_page']}"
,curr : "{$artList['current_page']}"
//获取起始页
2021-05-14 17:57:15 +08:00
,jump: function(obj, first){
//首次不执行
2022-08-16 15:29:04 +08:00
if(!first){
window.location.href = '{$path}/'+ obj.curr +'.html'; //跳转
}
2021-05-14 17:57:15 +08:00
}
});
});
2020-01-01 13:17:19 +08:00
</script>
{/block}