TaoLer/view/taoler/index/article/news/detail.html
2024-04-01 10:24:38 +08:00

100 lines
3.7 KiB
HTML

{extend name="public/base" /}
{block name="title"}{$article.title} - {$sysInfo.webname}{/block}
{block name="keywords"}{$article.keywords ?: $article.title}{/block}
{block name="description"}{$article.title},{$article.description ?? ''}{/block}
{block name="ogtitle"}<meta property="og:title" content="{$article.title} - {$sysInfo.webname}">{/block}
{block name="ogdescription"}<meta property="og:description" content="{$article.title},{$article.description ?? ''}" />{/block}
{block name="meta"}
<meta property="og:type" content="article"/>
<meta property="article:published_time" content="{$article.create_time|date='c'}"/>
<meta property="bytedance:published_time" content="{$article.create_time|date='c'}" />
<meta property="bytedance:updated_time" content="{$article.update_time|date='c'}" />
{/block}
{block name="link"} {/block}
{block name="column"}<div class="layui-hide-xs">{include file="/public/column" /}</div>{/block}
{block name="content"}
<div class="layui-container">
<div class="layui-row layui-col-space15">
<div class="layui-col-md12 content detail">
<div class="fly-panel detail-box">
<h1 style="margin:10px 5px 15px 5px; text-align: center;">{article:title}</h1>
{//作者}
<div class="detail-about" style="text-align:center">
<div class="detail-hits" style="left:-30px;">
<span>{$article.cate.catename}</span>
<span>{$article.user.name}</span>
<span class="post-time" style="padding-top: 5px;" data="{$article.update_time}">{article:uptime} </span>
<span><i class="iconfont" title="浏览">&#xe60b;</i> {article:pv}</span>
</div>
</div>
<hr style="margin-bottom: 25px">
{// 内容}
{:hook('taoplayerdiv')}
<div class="detail-body photos" style="font-size: 18px;line-height: 200%;" id="content">
{$article.content|raw}
</div>
{//解密文件}
{empty name="passJieMi"}
{if($article.read_type == 1)}
<div id="jiemi" style="text-align:center">
<button type="button" class="layui-btn layui-btn-primary"><i class="layui-icon layui-icon-password" style="font-size: 30px; color: #FF5722;"></i> 阅读请解密 </button>
</div>
{/if}
{/empty}
{notempty name="tags"}
<div style="margin-top: 15px">标签
{volist name="tags" id="vo" }
<a href="{$vo.url}"><span class="layui-btn layui-btn-xs layui-btn-normal layui-btn-radius">{$vo.name}</span></a>
{/volist}
</div>
{/notempty}
<div style="margin: 20px 0px 15px 0px; color: rgb(130, 125, 125);">
<p style="line-height:200%;">{$sysInfo.state|raw}</p>
</div>
<div style="margin-top: 20px;">本文链接:
<a href="{$Request.domain}{$Request.url}">{$Request.domain}{$Request.url}</a>
</div>
</div>
</div>
{//crud管理模块}
{include file="/public/crud" /}
</div>
<!--底部栏-->
<!-- <div class="site-tree-mobile-detail-bottom layui-hide-md">
<div id="LAY_jieAdmin1" data-id="{$article['id']}"></div>
</div> -->
</div>
{include file="public/menu" /}
{/block}
{block name="script"}
<script>
var collectionFind = "{:url('Collection/find')}",
collection = "{:url('collection/')}",
articleJieset = "{:url('Article/jieset')}",
articleDelete = "{:url('Article/delete')}",
commentJiedaZan = "{:url('Comment/jiedaZan')}",
commentJiedaCai = "{:url('Comment/jiedaCai')}",
commentGetDa = "{:url('Comment/getDa')}",
commentUpdateDa = "{:url('Comment/updateDa')}",
commentJiedaDelete = "{:url('Comment/jiedaDelete')}",
langCollection = "{:lang('collection')}",
langCancelCollection = "{:lang('cancel collection')}";
let taonystatus = "{:hook('taonystatus') ? 1 : 0} ";
</script>
<!-- 插件hook位 -->
{:hook('addonhook_detail_js')}
{//图片点击放大}
{include file="/public/images-click" /}
{/block}