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

100 lines
3.7 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"}{$article.title} - {$sysInfo.webname}{/block}
2022-08-16 15:29:04 +08:00
{block name="keywords"}{$article.keywords ?: $article.title}{/block}
2022-08-02 21:13:36 +08:00
{block name="description"}{$article.title},{$article.description ?? ''}{/block}
2022-08-16 15:21:08 +08:00
{block name="ogtitle"}<meta property="og:title" content="{$article.title} - {$sysInfo.webname}">{/block}
2022-08-02 21:13:36 +08:00
{block name="ogdescription"}<meta property="og:description" content="{$article.title},{$article.description ?? ''}" />{/block}
{block name="meta"}
2022-08-16 15:21:08 +08:00
<meta property="og:type" content="article"/>
2022-08-02 21:13:36 +08:00
<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}
2022-12-25 17:13:13 +08:00
{block name="link"} {/block}
2022-04-17 17:09:19 +08:00
{block name="column"}<div class="layui-hide-xs">{include file="/public/column" /}</div>{/block}
2024-04-01 10:20:25 +08:00
2022-04-17 17:09:19 +08:00
{block name="content"}
<div class="layui-container">
2024-04-01 10:20:25 +08:00
<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.create_time}">{$article.create_time} </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>
2022-08-02 18:46:05 +08:00
2024-04-01 10:20:25 +08:00
{//解密文件}
{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}
2023-03-16 22:30:36 +08:00
2024-04-01 10:20:25 +08:00
{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}
2023-05-05 12:03:45 +08:00
2024-04-01 10:20:25 +08:00
<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>
2022-08-16 15:21:08 +08:00
{//crud管理模块}
{include file="/public/crud" /}
2022-04-17 17:09:19 +08:00
</div>
<!--底部栏-->
<div class="site-tree-mobile-detail-bottom layui-hide-md">
<div id="LAY_jieAdmin1" data-id="{$article['id']}"></div>
2022-08-02 21:13:36 +08:00
</div>
2022-04-17 17:09:19 +08:00
</div>
2023-05-05 12:06:07 +08:00
{include file="public/menu" /}
2024-04-01 10:20:25 +08:00
2022-04-17 17:09:19 +08:00
{/block}
{block name="script"}
<script>
2024-04-01 10:20:25 +08:00
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')}";
2023-05-05 12:03:45 +08:00
2024-04-01 10:20:25 +08:00
let taonystatus = "{:hook('taonystatus') ? 1 : 0} ";
2022-04-17 17:09:19 +08:00
</script>
2024-04-01 10:17:53 +08:00
<!-- 插件hook位 -->
{:hook('addonhook_detail_js')}
2022-12-25 17:13:13 +08:00
2022-08-16 15:21:08 +08:00
{//图片点击放大}
{include file="/public/images-click" /}
2022-08-02 18:46:05 +08:00
2022-04-17 17:09:19 +08:00
{/block}