1.9.9
This commit is contained in:
parent
0a958f2b1a
commit
cea9984bfc
@ -2,7 +2,7 @@
|
||||
/*
|
||||
* @Author: TaoLer <alipey_tao@qq.com>
|
||||
* @Date: 2021-12-06 16:04:50
|
||||
* @LastEditTime: 2022-04-22 06:30:01
|
||||
* @LastEditTime: 2022-05-10 15:00:49
|
||||
* @LastEditors: TaoLer
|
||||
* @Description: 搜索引擎SEO优化设置
|
||||
* @FilePath: \TaoLer\app\admin\controller\Set.php
|
||||
@ -81,7 +81,7 @@ class Set extends AdminController
|
||||
public function website()
|
||||
{
|
||||
if(Request::isPost()){
|
||||
$data = Request::only(['webname','domain','template','cache','upsize','uptype','blackname','webtitle','keywords','descript','icp','showlist','copyright']);
|
||||
$data = Request::only(['webname','domain','template','cache','upsize','uptype','blackname','webtitle','keywords','descript','state','icp','showlist','copyright']);
|
||||
$system = new System();
|
||||
$result = $system->sets($data,$this->sysInfo['clevel']);
|
||||
if($result == 1){
|
||||
|
@ -100,6 +100,12 @@
|
||||
<textarea name="descript" class="layui-textarea">{$sysInfo.descript}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item layui-form-text">
|
||||
<label class="layui-form-label">网站声明</label>
|
||||
<div class="layui-input-block">
|
||||
<textarea name="state" class="layui-textarea">{$sysInfo.state}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">备案号</label>
|
||||
<div class="layui-input-inline">
|
||||
|
@ -73,6 +73,15 @@ class Article extends BaseController
|
||||
$artDetail = $article->getArtDetail($id,$page);
|
||||
// 设置tag内链
|
||||
$artDetail['content'] = $this->setArtTagLink($artDetail['content']);
|
||||
// tag
|
||||
$attr = explode(',', $artDetail['tags']);
|
||||
$tags = [];
|
||||
foreach($attr as $v){
|
||||
if ($v !='') {
|
||||
$tags[] = $v;
|
||||
}
|
||||
}
|
||||
|
||||
$arId = $artDetail['cate_id'];
|
||||
$tpl = Db::name('cate')->where('id',$arId)->value('detpl');
|
||||
$download = $artDetail['upzip'] ? download($artDetail['upzip'],'file') : '';
|
||||
@ -97,7 +106,20 @@ class Article extends BaseController
|
||||
$ad_comm = $ad->getSliderList(7);
|
||||
$push_js = Db::name('push_jscode')->where(['delete_time'=>0])->cache(true)->select();
|
||||
|
||||
View::assign(['article'=>$artDetail,'pv'=>$pv,'artHot'=>$artHot,'ad_art'=>$ad_artImg,'ad_comm'=>$ad_comm,$download,'page'=>$page,'comments'=>$comments,'jspage'=>'jie','push_js'=>$push_js]);
|
||||
View::assign([
|
||||
'article' => $artDetail,
|
||||
'pv' => $pv,
|
||||
'artHot' => $artHot,
|
||||
'ad_art' => $ad_artImg,
|
||||
'ad_comm' => $ad_comm,
|
||||
'tags' => $tags,
|
||||
'page' => $page,
|
||||
'comments' => $comments,
|
||||
'jspage' => 'jie',
|
||||
'push_js' => $push_js,
|
||||
$download,
|
||||
]);
|
||||
|
||||
return View::fetch('article/'.$tpl.'/detail');
|
||||
}
|
||||
|
||||
@ -250,11 +272,11 @@ class Article extends BaseController
|
||||
$tag = $article->tags;
|
||||
$attr = explode(',',$tag);
|
||||
$tags = [];
|
||||
foreach($attr as $key => $v){
|
||||
if ($v !='') {
|
||||
$tags[] = $v;
|
||||
}
|
||||
foreach($attr as $key => $v){
|
||||
if ($v !='') {
|
||||
$tags[] = $v;
|
||||
}
|
||||
}
|
||||
|
||||
View::assign(['article'=>$article,'tags'=>$tags,'jspage'=>'jie']);
|
||||
return View::fetch();
|
||||
|
@ -1,6 +1,6 @@
|
||||
{extend name="public/base" /}
|
||||
{block name="title"}发表帖子{/block}
|
||||
{block name="link"}<link rel="stylesheet" href="/static/res/css/plyr.css" charset="utf-8">{/block}
|
||||
{block name="link"}<link rel="stylesheet" href="{$Request.domain}/static/res/css/plyr.css" charset="utf-8">{/block}
|
||||
{block name="column"}{/block}
|
||||
{block name="content"}
|
||||
<div class="layui-container fly-marginTop">
|
||||
|
@ -1,7 +1,10 @@
|
||||
{extend name="public/base" /}
|
||||
|
||||
{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}
|
||||
{block name="ogtitle"}<meta property="og:title" content="{$Request.param.ename|getCateName}-{$sysInfo.webname}">{/block}
|
||||
{block name="ogdescription"}<meta property="og:description" content="{$Request.param.ename|getCateDesc}" />{/block}
|
||||
{block name="column"}{include file="/public/column" /}{/block}
|
||||
|
||||
{block name="content"}
|
||||
@ -11,9 +14,9 @@
|
||||
<div class="fly-panel" style="margin-bottom: 0;">
|
||||
<div class="layui-tab-card">
|
||||
<ul class="layui-tab-title">
|
||||
<li {if condition="$type eq 'all'" } class="layui-this" {/if}><a href="{:url('cate_type',['ename' => $Request.param.ename,'type' => 'all'])} " >{:lang('all')}</a></li>
|
||||
<li {if condition="$type eq 'jie'" } class="layui-this" {/if}><a href="{:url('cate_type',['ename' => $Request.param.ename,'type' => 'jie'])} ">{:lang('end')}</a></li>
|
||||
<li {if condition="$type eq 'wait'" } class="layui-this" {/if}><a href="{:url('cate_type',['ename' => $Request.param.ename,'type' => 'wait',])}">{:lang('未解决')}</a> </li>
|
||||
<li {if condition="$type eq 'all'" } class="layui-this" {/if}><a href="{$Request.domain}{:url('cate_type',['ename' => $Request.param.ename,'type' => 'all'])} " >{:lang('all')}</a></li>
|
||||
<li {if condition="$type eq 'jie'" } class="layui-this" {/if}><a href="{$Request.domain}{:url('cate_type',['ename' => $Request.param.ename,'type' => 'jie'])} ">{:lang('end')}</a></li>
|
||||
<li {if condition="$type eq 'wait'" } class="layui-this" {/if}><a href="{$Request.domain}{:url('cate_type',['ename' => $Request.param.ename,'type' => 'wait',])}">{:lang('未解决')}</a> </li>
|
||||
</ul>
|
||||
</div>
|
||||
<ul class="question-list">
|
||||
@ -32,11 +35,11 @@
|
||||
{/if}
|
||||
<div class="que-body">
|
||||
<h2>
|
||||
<a href="{:url('article/detail',['id' => $art.id])}" style="color:{$art.title_color};">{$art.title}</a>
|
||||
<a href="{$Request.domain}{:url('article/detail',['id' => $art.id])}" style="color:{$art.title_color};">{$art.title}</a>
|
||||
</h2>
|
||||
<div class="que-user-info">
|
||||
<a href="{:url('user/home',['id'=>$art.user.id])}" class="que-avatar">
|
||||
<img src="{$art.user.user_img}" alt="{$art.user.name}">
|
||||
<a href="{$Request.domain}{:url('user/home',['id'=>$art.user.id])}" class="que-avatar">
|
||||
<img src="{$Request.domain}{$art.user.user_img}" alt="{$art.user.name}">
|
||||
<cite>{$art.user.nickname ?: $art.user.name}</cite>
|
||||
</a>
|
||||
{$art.create_time|date='Y-m-d'}
|
||||
@ -57,7 +60,7 @@
|
||||
<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>
|
||||
<a href="{$vo.slid_href}" target="_blank"><img src="{$Request.domain}{$vo.slid_img}" style="max-width: 100%;"></a>
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
@ -65,15 +68,15 @@
|
||||
<dt class="fly-panel-title">{:lang('hot post list')}</dt>
|
||||
{volist name="artHot" id="vo"}
|
||||
<dd>
|
||||
<a href="{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
|
||||
<a href="{$Request.domain}{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
|
||||
<span><i class="iconfont icon-pinglun1"></i> {$vo.comments_count}</span>
|
||||
</dd>
|
||||
{/volist}
|
||||
</dl>
|
||||
</dl>
|
||||
|
||||
<div class="fly-panel">
|
||||
<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>
|
||||
<a href="" class="fly-link fly-joinad">{:lang('i want to join')}</a>
|
||||
</div>
|
||||
<div class="fly-panel-main">
|
||||
{volist name="ad_comm" id="vo"}
|
||||
|
@ -3,7 +3,9 @@
|
||||
{block name="title"}{$article.title}-{$sysInfo.webname}{/block}
|
||||
{block name="keywords"}{$article.tags}{/block}
|
||||
{block name="description"}{$article.title},{$article.description}{/block}
|
||||
{block name="link"}<link rel="stylesheet" href="/static/res/css/plyr.css" charset="utf-8">{/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="link"}<link rel="stylesheet" href="{$Request.domain}/static/res/css/plyr.css" charset="utf-8">{/block}
|
||||
{block name="column"}<div class="layui-hide-xs">{include file="/public/column" /}</div>{/block}
|
||||
{block name="content"}
|
||||
<div class="layui-container">
|
||||
@ -16,8 +18,8 @@
|
||||
|
||||
{//图标}
|
||||
<div class="user-questions">
|
||||
<a class="user-avatar" href="{:url('user/home',['id'=>$article.user.id])}">
|
||||
<img src="{$article.user.user_img}" alt="{$article.user.name}">
|
||||
<a class="user-avatar" href="{$Request.domain}{:url('user/home',['id'=>$article.user.id])}">
|
||||
<img src="{$Request.domain}{$article.user.user_img}" alt="{$article.user.name}">
|
||||
<cite>{$article.user.nickname ?: $article.user.name} / </cite>
|
||||
</a>
|
||||
<span class="user-post-time" data="{$article.create_time}" style="padding-top: 5px;"></span>
|
||||
@ -57,7 +59,7 @@
|
||||
<span id="color">{:lang('title color')}</span>
|
||||
{/if}
|
||||
{if(session('user_name')==$article.user.name || ($user.auth ?? ''))}
|
||||
<span class="layui-btn layui-btn-xs jie-admin" type="edit"><a href="{:url('article/edit',['id'=>$article.id])}">{:lang('edit')}</a></span>
|
||||
<span class="layui-btn layui-btn-xs jie-admin" type="edit"><a href="{$Request.domain}{:url('article/edit',['id'=>$article.id])}">{:lang('edit')}</a></span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
@ -69,6 +71,19 @@
|
||||
<div style="margin-top: 15px; font-size: 18px; font-weight:bold; color: rgb(130, 125, 125);">问题描述:</div>
|
||||
<hr>
|
||||
<div class="detail-body-wenda photos" id="content">{$article.content}</div>
|
||||
|
||||
<div style="margin-top: 25px;">本文链接:<a href="{$Request.domain}{$Request.url}">{$Request.domain}{$Request.url}</div>
|
||||
<div style="margin-top: 15px">
|
||||
<h2>关键词</h2>
|
||||
<div class="layui-btn-container" style="padding-top: 15px;">
|
||||
{volist name="tags" id="vo" }
|
||||
<button type="button" class="layui-btn layui-btn-sm layui-btn-radius layui-btn-danger" value="{$vo}">{$vo}</button>
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin: 20px 0px 15px 0px; color: rgb(130, 125, 125);">
|
||||
<p>{$sysInfo.state}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{//评论区}
|
||||
@ -97,11 +112,11 @@
|
||||
<li data-id="{$vo.id}" class="jieda-daan">
|
||||
<a name="item-1111111111"></a>
|
||||
<div class="detail-about detail-about-reply">
|
||||
<a class="fly-avatar" href="{:url('user/home',['id'=>$vo.user.id])}">
|
||||
<img src="{$vo.user.user_img}" alt=" ">{if($vo.user.vip > 0)}<i class="iconfont icon-renzheng" title="认证信息"></i>{/if}
|
||||
<a class="fly-avatar" href="{$Request.domain}{:url('user/home',['id'=>$vo.user.id])}">
|
||||
<img src="{$Request.domain}{$vo.user.user_img}" alt=" ">{if($vo.user.vip > 0)}<i class="iconfont icon-renzheng" title="认证信息"></i>{/if}
|
||||
</a>
|
||||
<div class="fly-detail-user">
|
||||
<a href="{:url('user/home',['id'=>$vo.user.id])}" class="fly-link">
|
||||
<a href="{$Request.domain}{:url('user/home',['id'=>$vo.user.id])}" class="fly-link">
|
||||
<cite>{$vo.user.nickname ?: $vo.user.name}</cite>
|
||||
</a>
|
||||
{if condition="$article.user.id eq $vo.user.id"}<span>({:lang('poster')})</span>{/if}
|
||||
@ -139,8 +154,8 @@
|
||||
<div class="fly-panel">
|
||||
<div class="fly-panel-main wenda-user">
|
||||
<div class="user-img">
|
||||
<a href="{:url('user/home',['id'=>$article.user.id])}">
|
||||
<img class="" src="{$article.user.user_img}" alt="{$article.user.name}">
|
||||
<a href="{$Request.domain}{:url('user/home',['id'=>$article.user.id])}">
|
||||
<img class="" src="{$Request.domain}{$article.user.user_img}" alt="{$article.user.name}">
|
||||
{if($article.user.vip > 0)}<i class="iconfont icon-renzheng" title="认证信息"></i>{/if}
|
||||
</a>
|
||||
</div>
|
||||
@ -163,14 +178,14 @@
|
||||
<dt class="fly-panel-title">{:lang('hot post list')}</dt>
|
||||
{volist name="artHot" id="vo"}
|
||||
<dd>
|
||||
<a href="{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
|
||||
<a href="{$Request.domain}{: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" style="padding: 5px 0; text-align: center;">
|
||||
{volist name="ad_art" id="vo"}
|
||||
<a href="{$vo.slid_href}" target="_blank"><img src="{$vo.slid_img}" style="max-width: 100%;"></a>
|
||||
<a href="{$vo.slid_href}" target="_blank"><img src="{$Request.domain}{$vo.slid_img}" style="max-width: 100%;"></a>
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -14,15 +14,15 @@
|
||||
<ul class="fly-list">
|
||||
{volist name="artList['data']" id="art"}
|
||||
<li>
|
||||
<a href="{:url('user/home',['id'=>$art.user_id])}" class="fly-avatar">
|
||||
<img src="{$art.user.user_img}" alt="{$art.user.name}">
|
||||
<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>
|
||||
<h2>
|
||||
{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="{:url('article/detail',['id' => $art.id])}" style="color: {$art['title_color']};">{$art.title}</a>
|
||||
<a href="{$Request.domain}{:url('article/detail',['id' => $art.id])}" style="color: {$art['title_color']};">{$art.title}</a>
|
||||
</h2>
|
||||
<div class="fly-list-info">
|
||||
<a href="{:url('user/home',['id'=>$art.user.id])}" link>
|
||||
<a href="{$Request.domain}{:url('user/home',['id'=>$art.user.id])}" link>
|
||||
{if config('taoler.config.area_show') == 1}
|
||||
<span class="layui-badge layui-bg-green " title="来自哪简称">{:getAsing($art.user.area_id) ?: '无'}</span>
|
||||
{/if}
|
||||
@ -60,7 +60,7 @@
|
||||
<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>
|
||||
<a href="{$vo.slid_href}" target="_blank"><img src="{$Request.domain}{$vo.slid_img}" style="max-width: 100%;"></a>
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
@ -68,7 +68,7 @@
|
||||
<dt class="fly-panel-title">{:lang('hot post list')}</dt>
|
||||
{volist name="artHot" id="vo"}
|
||||
<dd>
|
||||
<a href="{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
|
||||
<a href="{$Request.domain}{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
|
||||
<span><i class="iconfont icon-pinglun1"></i> {$vo.comments_count}</span>
|
||||
</dd>
|
||||
{/volist}
|
||||
|
@ -3,7 +3,7 @@
|
||||
{block name="title"}{$article.title}-{$sysInfo.webname}{/block}
|
||||
{block name="keywords"}{$article.title},{$article.tags}{/block}
|
||||
{block name="description"}{$article.title},{:getArtContent($article.content)}{/block}
|
||||
{block name="link"}<link rel="stylesheet" href="/static/res/css/plyr.css" charset="utf-8">{/block}
|
||||
{block name="link"}<link rel="stylesheet" href="{$Request.domain}/static/res/css/plyr.css" charset="utf-8">{/block}
|
||||
{block name="column"}<div class="layui-hide-xs">{include file="/public/column" /}</div>{/block}
|
||||
{block name="content"}
|
||||
<div class="layui-container">
|
||||
@ -33,12 +33,12 @@
|
||||
</div>
|
||||
{//作者}
|
||||
<div class="detail-about">
|
||||
<a class="fly-avatar" href="{:url('user/home',['id'=>$article.user.id])}">
|
||||
<img src="{$article.user.user_img}" alt="{$article.user.name}">
|
||||
<a class="fly-avatar" href="{$Request.domain}{:url('user/home',['id'=>$article.user.id])}">
|
||||
<img src="{$Request.domain}{$article.user.user_img}" alt="{$article.user.name}">
|
||||
<i class="iconfont icon-renzheng" title="认证信息"></i>
|
||||
</a>
|
||||
<div class="fly-detail-user">
|
||||
<a href="{:url('user/home',['id'=>$article.user.id])}" class="fly-link">
|
||||
<a href="{$Request.domain}{:url('user/home',['id'=>$article.user.id])}" class="fly-link">
|
||||
{if config('taoler.config.area_show') == 1}<i class="layui-badge layui-bg-green " title="">{:getAsing($article.user.area_id) ?: '无'}</i>{/if}
|
||||
<cite>{$article.user.nickname ?: $article.user.name}</cite>
|
||||
</a>
|
||||
@ -75,7 +75,7 @@
|
||||
<span id="color">{:lang('title color')}</span>
|
||||
{/if}
|
||||
{if(session('user_name')==$article.user.name || ($user.auth ?? ''))}
|
||||
<span class="layui-btn layui-btn-xs jie-admin" type="edit"><a href="{:url('article/edit',['id'=>$article.id])}">{:lang('edit')}</a></span>
|
||||
<span class="layui-btn layui-btn-xs jie-admin" type="edit"><a href="{$Request.domain}{:url('article/edit',['id'=>$article.id])}">{:lang('edit')}</a></span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,7 +1,7 @@
|
||||
{extend name="public/base" /}
|
||||
|
||||
{block name="title"}编辑帖子{/block}
|
||||
{block name="link"}<link rel="stylesheet" href="/static/res/css/plyr.css" charset="utf-8">{/block}
|
||||
{block name="link"}<link rel="stylesheet" href="{$Request.domain}/static/res/css/plyr.css" charset="utf-8">{/block}
|
||||
{block name="column"}{/block}
|
||||
{block name="content"}
|
||||
<div class="layui-container fly-marginTop">
|
||||
|
@ -2,6 +2,8 @@
|
||||
{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}
|
||||
{block name="ogtitle"}<meta property="og:title" content="{$Request.param.ename|getCateName}-{$sysInfo.webname}">{/block}
|
||||
{block name="ogdescription"}<meta property="og:description" content="{$Request.param.ename|getCateDesc}" />{/block}
|
||||
{block name="column"}{include file="/public/column" /}{/block}
|
||||
|
||||
{block name="content"}
|
||||
@ -12,13 +14,13 @@
|
||||
<ul class="fly-list">
|
||||
{volist name="artList['data']" id="art"}
|
||||
<li>
|
||||
<a href="{:url('user/home',['id'=>$art.user.id])}" class="fly-avatar"><img src="{$art.user.user_img}" alt="{$art.user.name}"></a>
|
||||
<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>
|
||||
<h2>
|
||||
{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="{:url('article/detail',['id' => $art.id])}" style="color:{$art.title_color};">{$art.title}</a>
|
||||
<a href="{$Request.domain}{:url('article/detail',['id' => $art.id])}" style="color:{$art.title_color};">{$art.title}</a>
|
||||
</h2>
|
||||
<div class="fly-list-info">
|
||||
<a href="{:url('user/home',['id'=>$art.user.id])}" link>
|
||||
<a href="{$Request.domain}{:url('user/home',['id'=>$art.user.id])}" link>
|
||||
{if config('taoler.config.area_show') == 1}
|
||||
<span class="layui-badge layui-bg-green " title="来自哪简称">{:getAsing($art.user.area_id) ?: '无'}</span>
|
||||
{/if}
|
||||
@ -50,7 +52,7 @@
|
||||
<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>
|
||||
<a href="{$vo.slid_href}" target="_blank"><img src="{$Request.domain}{$vo.slid_img}" style="max-width: 100%;"></a>
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
@ -58,7 +60,7 @@
|
||||
<dt class="fly-panel-title">{:lang('hot post list')}</dt>
|
||||
{volist name="artHot" id="vo"}
|
||||
<dd>
|
||||
<a href="{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
|
||||
<a href="{$Request.domain}{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
|
||||
<span><i class="iconfont icon-pinglun1"></i> {$vo.comments_count}</span>
|
||||
</dd>
|
||||
{/volist}
|
||||
|
@ -2,7 +2,9 @@
|
||||
{block name="title"}{$article.title}-{$sysInfo.webname}{/block}
|
||||
{block name="keywords"}{$article.tags}{/block}
|
||||
{block name="description"}{$article.title},{$article.description}{/block}
|
||||
{block name="link"}<link rel="stylesheet" href="/static/res/css/plyr.css" charset="utf-8">{/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="link"}<link rel="stylesheet" href="{$Request.domain}/static/res/css/plyr.css" charset="utf-8">{/block}
|
||||
{block name="column"}<div class="layui-hide-xs">{include file="/public/column" /}</div>{/block}
|
||||
{block name="content"}
|
||||
<div class="layui-container">
|
||||
@ -23,6 +25,18 @@
|
||||
<hr style="margin-bottom: 25px">
|
||||
{// 内容}
|
||||
<div class="detail-body photos" style="font-size: 18px;line-height: 200%;" id="content">{$article.content}</div>
|
||||
<div style="margin-top: 25px;">本文链接:<a href="{$Request.domain}{$Request.url}">{$Request.domain}{$Request.url}</div>
|
||||
<div style="margin-top: 15px">
|
||||
<h2>关键词</h2>
|
||||
<div class="layui-btn-container" style="padding-top: 15px;">
|
||||
{volist name="tags" id="vo" }
|
||||
<button type="button" class="layui-btn layui-btn-sm layui-btn-radius layui-btn-danger" value="{$vo}">{$vo}</button>
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin: 20px 0px 15px 0px; color: rgb(130, 125, 125);">
|
||||
<p>{$sysInfo.state}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -54,7 +68,7 @@
|
||||
<span id="color">{:lang('title color')}</span>
|
||||
{/if}
|
||||
{if(session('user_name')==$article.user.name || ($user.auth ?? ''))}
|
||||
<span class="layui-btn layui-btn-xs jie-admin" type="edit"><a href="{:url('article/edit',['id'=>$article.id])}">{:lang('edit')}</a></span>
|
||||
<span class="layui-btn layui-btn-xs jie-admin" type="edit"><a href="{$Request.domain}{:url('article/edit',['id'=>$article.id])}">{:lang('edit')}</a></span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -2,6 +2,8 @@
|
||||
{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}
|
||||
{block name="ogtitle"}<meta property="og:title" content="{$Request.param.ename|getCateName}-{$sysInfo.webname}">{/block}
|
||||
{block name="ogdescription"}<meta property="og:description" content="{$Request.param.ename|getCateDesc}" />{/block}
|
||||
{block name="column"}{include file="/public/column" /}{/block}
|
||||
|
||||
{block name="content"}
|
||||
@ -12,15 +14,15 @@
|
||||
<ul class="fly-list">
|
||||
{volist name="artList['data']" id="art"}
|
||||
<li>
|
||||
<a href="{:url('user/home',['id'=>$art.user.id])}" class="fly-avatar">
|
||||
<a href="{$Request.domain}{:url('user/home',['id'=>$art.user.id])}" class="fly-avatar">
|
||||
<img src="{$art.user.user_img}" alt="{$art.user.name}">
|
||||
</a>
|
||||
<h2>
|
||||
{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="{:url('article/detail',['id' => $art.id])}" style="color:{$art.title_color};">{$art.title}</a>
|
||||
<a href="{$Request.domain}{:url('article/detail',['id' => $art.id])}" style="color:{$art.title_color};">{$art.title}</a>
|
||||
</h2>
|
||||
<div class="fly-list-info">
|
||||
<a href="{:url('user/home',['id'=>$art.user.id])}" link>
|
||||
<a href="{$Request.domain}{:url('user/home',['id'=>$art.user.id])}" link>
|
||||
{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>
|
||||
@ -49,7 +51,7 @@
|
||||
<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>
|
||||
<a href="{$vo.slid_href}" target="_blank"><img src="{$Request.domain}{$vo.slid_img}" style="max-width: 100%;"></a>
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
@ -57,7 +59,7 @@
|
||||
<dt class="fly-panel-title">{:lang('hot post list')}</dt>
|
||||
{volist name="artHot" id="vo"}
|
||||
<dd>
|
||||
<a href="{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
|
||||
<a href="{$Request.domain}{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
|
||||
<span><i class="iconfont icon-pinglun1"></i> {$vo.comments_count}</span>
|
||||
</dd>
|
||||
{/volist}
|
||||
@ -69,7 +71,7 @@
|
||||
</div>
|
||||
<div class="fly-panel-main">
|
||||
{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>
|
||||
<a href="{$vo.slid_href}" target="_blank" rel="nofollow" class="fly-zanzhu" style="background-color: {$vo.slid_color};">{$vo.slid_name}</a>
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -3,7 +3,9 @@
|
||||
{block name="title"}{$article.title}-{$sysInfo.webname}{/block}
|
||||
{block name="keywords"}{$article.tags}{/block}
|
||||
{block name="description"}{$article.title},{$article.description}{/block}
|
||||
{block name="link"}<link rel="stylesheet" href="/static/res/css/plyr.css" charset="utf-8">{/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="link"}<link rel="stylesheet" href="{$Request.domain}/static/res/css/plyr.css" charset="utf-8">{/block}
|
||||
{block name="column"}<div class="layui-hide-xs">{include file="/public/column" /}</div>{/block}
|
||||
{block name="content"}
|
||||
<div class="layui-container">
|
||||
@ -25,12 +27,12 @@
|
||||
</div>
|
||||
{//作者}
|
||||
<div class="detail-about">
|
||||
<a class="fly-avatar" href="{:url('user/home',['id'=>$article.user.id])}">
|
||||
<img src="{$article.user.user_img}" alt="{$article.user.name}">
|
||||
<a class="fly-avatar" href="{$Request.domain}{:url('user/home',['id'=>$article.user.id])}">
|
||||
<img src="{$Request.domain}{$article.user.user_img}" alt="{$article.user.name}">
|
||||
<i class="iconfont icon-renzheng" title="认证信息"></i>
|
||||
</a>
|
||||
<div class="fly-detail-user">
|
||||
<a href="{:url('user/home',['id'=>$article.user.id])}" class="fly-link">
|
||||
<a href="{$Request.domain}{:url('user/home',['id'=>$article.user.id])}" class="fly-link">
|
||||
{if config('taoler.config.area_show') == 1}<i class="layui-badge layui-bg-green " title="">{:getAsing($article.user.area_id) ?: '无'}</i>{/if}
|
||||
<cite>{$article.user.nickname ?: $article.user.name}</cite>
|
||||
</a>
|
||||
@ -44,6 +46,18 @@
|
||||
<hr>
|
||||
{// 内容}
|
||||
<div class="detail-body photos" id="content">{$article.content}</div>
|
||||
<div style="margin-top: 25px;">本文链接:<a href="{$Request.domain}{$Request.url}">{$Request.domain}{$Request.url}</div>
|
||||
<div style="margin-top: 15px">
|
||||
<h2>关键词</h2>
|
||||
<div class="layui-btn-container" style="padding-top: 15px;">
|
||||
{volist name="tags" id="vo" }
|
||||
<button type="button" class="layui-btn layui-btn-sm layui-btn-radius layui-btn-danger" value="{$vo}">{$vo}</button>
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin: 20px 0px 15px 0px; color: rgb(130, 125, 125);">
|
||||
<p>{$sysInfo.state}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{//管理}
|
||||
@ -74,7 +88,7 @@
|
||||
<span id="color">{:lang('title color')}</span>
|
||||
{/if}
|
||||
{if(session('user_name')==$article.user.name || ($user.auth ?? ''))}
|
||||
<span class="layui-btn layui-btn-xs jie-admin" type="edit"><a href="{:url('article/edit',['id'=>$article.id])}">{:lang('edit')}</a></span>
|
||||
<span class="layui-btn layui-btn-xs jie-admin" type="edit"><a href="{$Request.domain}{:url('article/edit',['id'=>$article.id])}">{:lang('edit')}</a></span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
@ -90,11 +104,11 @@
|
||||
<li data-id="{$vo.id}" class="jieda-daan">
|
||||
<a name="item-1111111111"></a>
|
||||
<div class="detail-about detail-about-reply">
|
||||
<a class="fly-avatar" href="{:url('user/home',['id'=>$vo.user_id])}">
|
||||
<img src="{$vo.user.user_img}" alt=" "><i class="iconfont icon-renzheng" title="认证信息"></i>
|
||||
<a class="fly-avatar" href="{$Request.domain}{:url('user/home',['id'=>$vo.user_id])}">
|
||||
<img src="{$Request.domain}{$vo.user.user_img}" alt=" "><i class="iconfont icon-renzheng" title="认证信息"></i>
|
||||
</a>
|
||||
<div class="fly-detail-user">
|
||||
<a href="{:url('user/home',['id'=>$vo.user.id])}" class="fly-link">
|
||||
<a href="{$Request.domain}{:url('user/home',['id'=>$vo.user.id])}" class="fly-link">
|
||||
{if config('taoler.config.area_show') == 1}<i class="layui-badge layui-bg-green " title="">{:getAsing($vo.user.area_id) ?: '无'}</i>{/if}
|
||||
<cite>{$vo.user.nickname ?: $vo.user.name}</cite>
|
||||
</a>
|
||||
@ -158,14 +172,14 @@
|
||||
<dt class="fly-panel-title">{:lang('hot post list')}</dt>
|
||||
{volist name="artHot" id="vo"}
|
||||
<dd>
|
||||
<a href="{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
|
||||
<a href="{$Request.domain}{: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" style="padding: 5px 0; text-align: center;">
|
||||
{volist name="ad_art" id="vo"}
|
||||
<a href="{$vo.slid_href}" target="_blank"><img src="{$vo.slid_img}" style="max-width: 100%;"></a>
|
||||
<a href="{$vo.slid_href}" target="_blank"><img src="{$Request.domain}{$vo.slid_img}" style="max-width: 100%;"></a>
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -3,6 +3,10 @@
|
||||
{block name="title"}{$sysInfo.webtitle}{/block}
|
||||
{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="column"}{include file="public/column" /}{/block}
|
||||
|
||||
{block name="content"}
|
||||
|
@ -1,3 +1,12 @@
|
||||
<!--
|
||||
* @Author: TaoLer <alipay_tao@qq.com>
|
||||
* @Date: 2021-12-06 16:04:51
|
||||
* @LastEditTime: 2022-05-10 12:55:02
|
||||
* @LastEditors: TaoLer
|
||||
* @Description: 搜索引擎SEO优化设置
|
||||
* @FilePath: \TaoLer\view\taoler\index\index\search.html
|
||||
* Copyright (c) 2020~2022 https://www.aieok.com All rights reserved.
|
||||
-->
|
||||
{extend name="public/base" /}
|
||||
|
||||
{block name="title"}{$sysInfo.webname}{$keywords}搜索内容{/block}
|
||||
@ -14,15 +23,15 @@
|
||||
<ul class="fly-list">
|
||||
{volist name="artList" id="art"}
|
||||
<li>
|
||||
<a href="{:url('user/home',['id'=>$art.user_id])}" class="fly-avatar">
|
||||
<a href="{$Request.domain}{:url('user/home',['id'=>$art.user_id])}" class="fly-avatar">
|
||||
<img src="{$art.user.user_img}" alt="{$art.user_id|getUserName}"><i class="iconfont icon-renzheng" title="认证信息"></i>
|
||||
</a>
|
||||
<h2>
|
||||
{if config('taoler.config.cate_show') == 1}<a class="layui-badge">{$art.cate.catename}</a>{/if}
|
||||
<a href="{:url('article/detail',['id' => $art.id])}">{$art.title}</a>
|
||||
<a href="{$Request.domain}{:url('article/detail',['id' => $art.id])}">{$art.title}</a>
|
||||
</h2>
|
||||
<div class="fly-list-info">
|
||||
<a href="{:url('user/home',['id'=>$art.user_id])}" link>
|
||||
<a href="{$Request.domain}{:url('user/home',['id'=>$art.user_id])}" link>
|
||||
<cite>{$art.user.name}</cite>
|
||||
</a>
|
||||
<span>{$art.create_time|date='Y-m-d'}</span>
|
||||
@ -44,7 +53,7 @@
|
||||
<dt class="fly-panel-title">本周热议</dt>
|
||||
{volist name="artHot" id="vo" empty="还没有帖子"}
|
||||
<dd>
|
||||
<a href="{:url('article/detail',['id'=>$vo.id])}">{$vo.title}</a>
|
||||
<a href="{$Request.domain}{:url('article/detail',['id'=>$vo.id])}">{$vo.title}</a>
|
||||
<span><i class="iconfont icon-pinglun1"></i> {$vo.comments_count}</span>
|
||||
</dd>
|
||||
{/volist}
|
||||
@ -52,7 +61,7 @@
|
||||
<!--自定义-->
|
||||
<div class="fly-panel" style="padding: 5px 0; text-align: center;">
|
||||
{volist name="ad_comm" id="vo"}
|
||||
<a href="{$vo.slid_href}" target="_blank"><img src="{$vo.slid_img}" style="max-width: 100%;"></a>
|
||||
<a href="{$Request.domain}{$vo.slid_href}" target="_blank"><img src="{$Request.domain}{$vo.slid_img}" style="max-width: 100%;"></a>
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -7,7 +7,7 @@
|
||||
<div class="fly-panel fly-panel-user" pad20>
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="user">
|
||||
<ul class="layui-tab-title">
|
||||
<li><a href="{:url('login/index')}">{:lang('login')}</a></li>
|
||||
<li><a href="{$Request.domain}{:url('login/index')}">{:lang('login')}</a></li>
|
||||
<li class="layui-this">{if cache('repass')==2}{:lang('reset password')}{else /}{:lang('retrieve password')}{/if}</li>
|
||||
</ul>
|
||||
<div class="layui-form layui-tab-content" id="LAY_ucm" style="padding: 20px 0;">
|
||||
@ -23,7 +23,7 @@
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<button class="layui-btn" lay-submit lay-filter="user-get-code">{:lang('submit')}</button>
|
||||
<span class="layui-btn" ><a href="{:url('login/forget')}">{:lang('go back')}</a></span>
|
||||
<span class="layui-btn" ><a href="{$Request.domain}{:url('login/forget')}">{:lang('go back')}</a></span>
|
||||
</div>
|
||||
</div>
|
||||
{elseif cache('repass') == 'resetpass' /}
|
||||
|
@ -1,3 +1,12 @@
|
||||
<!--
|
||||
* @Author: TaoLer <alipay_tao@qq.com>
|
||||
* @Date: 2021-12-06 16:04:51
|
||||
* @LastEditTime: 2022-05-10 13:12:21
|
||||
* @LastEditors: TaoLer
|
||||
* @Description: 搜索引擎SEO优化设置
|
||||
* @FilePath: \TaoLer\view\taoler\index\login\login.html
|
||||
* Copyright (c) 2020~2022 https://www.aieok.com All rights reserved.
|
||||
-->
|
||||
{extend name="public/base" /}
|
||||
|
||||
{block name="title"}用户登录{/block}
|
||||
@ -8,7 +17,7 @@
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="user">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this">{:lang('login')}</li>
|
||||
<li><a href="{:url('login/reg')}">{:lang('sign up')}</a></li>
|
||||
<li><a href="{$Request.domain}{:url('login/reg')}">{:lang('sign up')}</a></li>
|
||||
</ul>
|
||||
<div class="layui-form layui-tab-content" id="LAY_ucm" style="padding: 20px 0;">
|
||||
<div class="layui-tab-item layui-show">
|
||||
@ -43,7 +52,7 @@
|
||||
<div class="layui-form-item">
|
||||
<button type="submit" name="submit" class="layui-btn" lay-filter="user" lay-submit id="login">{:lang('login now')}</button>
|
||||
<span style="padding-left:20px;">
|
||||
<a href="{:url('login/forget')}">{:lang('forget password')}?</a>
|
||||
<a href="{$Request.domain}{:url('login/forget')}">{:lang('forget password')}?</a>
|
||||
</span>
|
||||
</div>
|
||||
{:hook('socialhook')}
|
||||
|
@ -1,3 +1,12 @@
|
||||
<!--
|
||||
* @Author: TaoLer <alipay_tao@qq.com>
|
||||
* @Date: 2021-12-06 16:04:51
|
||||
* @LastEditTime: 2022-05-10 13:12:36
|
||||
* @LastEditors: TaoLer
|
||||
* @Description: 搜索引擎SEO优化设置
|
||||
* @FilePath: \TaoLer\view\taoler\index\login\reg.html
|
||||
* Copyright (c) 2020~2022 https://www.aieok.com All rights reserved.
|
||||
-->
|
||||
{extend name="public:base" /}
|
||||
|
||||
{block name="title"}注册账号{/block}
|
||||
@ -7,7 +16,7 @@
|
||||
<div class="fly-panel fly-panel-user" pad20>
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="user">
|
||||
<ul class="layui-tab-title">
|
||||
<li><a href="{:url('login/index')}">{:lang('login')}</a></li>
|
||||
<li><a href="{$Request.domain}{:url('login/index')}">{:lang('login')}</a></li>
|
||||
<li class="layui-this">{:lang('sign up')}</li>
|
||||
</ul>
|
||||
<div class="layui-form layui-tab-content" id="LAY_ucm" style="padding: 20px 0;">
|
||||
|
@ -2,12 +2,24 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="force-rendering" content="webkit">
|
||||
<title>{block name="title"}标题{/block}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="keywords" content="{block name='keywords'}关键词{/block}">
|
||||
<meta name="description" content="{block name='description'}描述{/block}">
|
||||
<link rel="stylesheet" href="/static/layui/css/layui.css" charset="utf-8">
|
||||
<link rel="stylesheet" href="/static/res/css/global.css" charset="utf-8">
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:site_name" content="{$sysInfo.webname}" />
|
||||
<meta property="og:url" content="{$Request.domain}{$Request.url}">
|
||||
{block name="ogtitle"} {/block}
|
||||
{block name="ogdescription"} {/block}
|
||||
{block name="ogimage"} {/block}
|
||||
<meta name="applicable-device" content="pc,mobile">
|
||||
<link rel="canonical" href="{$Request.domain}{$Request.url}">
|
||||
<link rel="stylesheet" href="{$Request.domain}/static/layui/css/layui.css" charset="utf-8">
|
||||
<link rel="stylesheet" href="{$Request.domain}/static/res/css/global.css" charset="utf-8">
|
||||
{block name="link"}{/block}
|
||||
<style>
|
||||
/*5+ 引擎环境下自动隐藏无关元素*/
|
||||
@ -18,7 +30,7 @@
|
||||
html body{margin-top: 1px;}
|
||||
{/if}
|
||||
</style>
|
||||
<script src="/static/share/plusShare.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="{$Request.domain}/static/share/plusShare.js" type="text/javascript" charset="utf-8"></script>
|
||||
</head>
|
||||
<body >
|
||||
<script>
|
||||
|
@ -1,3 +1,12 @@
|
||||
<!--
|
||||
* @Author: TaoLer <alipay_tao@qq.com>
|
||||
* @Date: 2021-12-06 16:04:51
|
||||
* @LastEditTime: 2022-05-10 12:45:43
|
||||
* @LastEditors: TaoLer
|
||||
* @Description: 搜索引擎SEO优化设置
|
||||
* @FilePath: \TaoLer\view\taoler\index\public\column.html
|
||||
* Copyright (c) 2020~2022 https://www.aieok.com All rights reserved.
|
||||
-->
|
||||
<div class="fly-panel fly-column layui-hide-xs">
|
||||
<div class="layui-container">
|
||||
<ul class="layui-clear">
|
||||
@ -6,19 +15,19 @@
|
||||
</li>
|
||||
{volist name="cateList" id="cate"}
|
||||
<li {if condition="$cate.ename eq $Request.param.ename"} class="layui-this" {/if}>
|
||||
<a href="{:url('cate',['ename' => $cate.ename])}">{:cookie('think_lang') == 'en-us' ? $cate.ename : $cate.catename}{if condition="$cate.is_hot eq 1"}<span class="layui-badge-dot"></span>{/if}</a>
|
||||
<a href="{$Request.domain}{:url('cate',['ename' => $cate.ename])}">{:cookie('think_lang') == 'en-us' ? $cate.ename : $cate.catename}{if condition="$cate.is_hot eq 1"}<span class="layui-badge-dot"></span>{/if}</a>
|
||||
</li>
|
||||
{/volist}
|
||||
<li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><span class="fly-mid"></span></li>
|
||||
{if session('?user_id')}
|
||||
<li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a href="{:url('user/post')}">{:lang('my post')}</a></li>
|
||||
<li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a href="{:url('user/post#collection')}">{:lang('my collection')}</a></li>
|
||||
<li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a href="{$Request.domain}{:url('user/post')}">{:lang('my post')}</a></li>
|
||||
<li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a href="{$Request.domain}{:url('user/post#collection')}">{:lang('my collection')}</a></li>
|
||||
{/if}
|
||||
</ul>
|
||||
|
||||
<div class="fly-column-right layui-hide-xs">
|
||||
<span class="fly-search"><i class="layui-icon"></i></span>
|
||||
<a href="{:url('article/add')}" class="layui-btn" >{:lang('add post')}</a>
|
||||
<a href="{$Request.domain}{:url('article/add')}" class="layui-btn" >{:lang('add post')}</a>
|
||||
</div>
|
||||
<!--div class="layui-hide-sm layui-show-xs-block" style="margin-top: -10px; padding-bottom: 10px; text-align: center;">
|
||||
<a href="javascript:void(0)" class="layui-btn" id="add_post">{:lang('add post')}</a>
|
||||
|
@ -1,11 +1,20 @@
|
||||
<!--
|
||||
* @Author: TaoLer <alipay_tao@qq.com>
|
||||
* @Date: 2021-12-06 16:04:51
|
||||
* @LastEditTime: 2022-05-10 12:49:45
|
||||
* @LastEditors: TaoLer
|
||||
* @Description: 搜索引擎SEO优化设置
|
||||
* @FilePath: \TaoLer\view\taoler\index\public\filter.html
|
||||
* Copyright (c) 2020~2022 https://www.aieok.com All rights reserved.
|
||||
-->
|
||||
<div class="fly-panel-title fly-filter">
|
||||
<a href="{:url('cate_type',['ename' => $Request.param.ename,'type' => 'all'])} " {if condition="$type eq 'all'" } class="layui-this" {/if} >{:lang('all')}</a>
|
||||
<a href="{$Request.domain}{:url('cate_type',['ename' => $Request.param.ename,'type' => 'all'])} " {if condition="$type eq 'all'" } class="layui-this" {/if} >{:lang('all')}</a>
|
||||
<span class="fly-mid"></span>
|
||||
<a href="{:url('cate_type',['ename' => $Request.param.ename,'type' => 'jie'])} " {if condition="$type eq 'jie'" } class="layui-this" {/if} >{:lang('end')}</a>
|
||||
<a href="{$Request.domain}{:url('cate_type',['ename' => $Request.param.ename,'type' => 'jie'])} " {if condition="$type eq 'jie'" } class="layui-this" {/if} >{:lang('end')}</a>
|
||||
<span class="fly-mid"></span>
|
||||
<a href="{:url('cate_type',['ename' => $Request.param.ename,'type' => 'top'])} " {if condition="$type eq 'top'" } class="layui-this" {/if} >{:lang('top')}</a>
|
||||
<a href="{$Request.domain}{:url('cate_type',['ename' => $Request.param.ename,'type' => 'top'])} " {if condition="$type eq 'top'" } class="layui-this" {/if} >{:lang('top')}</a>
|
||||
<span class="fly-mid"></span>
|
||||
<a href="{:url('cate_type',['ename' => $Request.param.ename,'type' => 'hot'])} " {if condition="$type eq 'hot'" } class="layui-this" {/if} >{:lang('hot')}</a>
|
||||
<a href="{$Request.domain}{:url('cate_type',['ename' => $Request.param.ename,'type' => 'hot'])} " {if condition="$type eq 'hot'" } class="layui-this" {/if} >{:lang('hot')}</a>
|
||||
|
||||
<!--span class="fly-filter-right layui-hide-xs"><a href="" class="layui-this">按最新</a>
|
||||
<span class="fly-mid"></span><a href="">按热议</a></span-->
|
||||
|
@ -1,3 +1,12 @@
|
||||
<!--
|
||||
* @Author: TaoLer <alipay_tao@qq.com>
|
||||
* @Date: 2021-12-06 16:04:51
|
||||
* @LastEditTime: 2022-05-10 13:58:04
|
||||
* @LastEditors: TaoLer
|
||||
* @Description: 搜索引擎SEO优化设置
|
||||
* @FilePath: \TaoLer\view\taoler\index\public\flink.html
|
||||
* Copyright (c) 2020~2022 https://www.aieok.com All rights reserved.
|
||||
-->
|
||||
<h3 class="fly-panel-title">{:lang('friendly link')}</h3>
|
||||
<dl class="fly-panel-main">
|
||||
{volist name="flinks" id="vo"}
|
||||
|
@ -1,18 +1,26 @@
|
||||
<!--
|
||||
* @Author: TaoLer <alipay_tao@qq.com>
|
||||
* @Date: 2021-12-06 16:04:51
|
||||
* @LastEditTime: 2022-05-10 12:49:25
|
||||
* @LastEditors: TaoLer
|
||||
* @Description: 搜索引擎SEO优化设置
|
||||
* @FilePath: \TaoLer\view\taoler\index\public\footer.html
|
||||
* Copyright (c) 2020~2022 https://www.aieok.com All rights reserved.
|
||||
-->
|
||||
<div class="fly-footer html5plus-hide">
|
||||
<p>
|
||||
Copyright © {:date('Y')}{$sysInfo.copyright|raw}v{:config('taoler.version')}
|
||||
</p>
|
||||
<p>
|
||||
{$sysInfo.showlist|raw} {volist name="footlinks" id="vo"}
|
||||
<a href="{$vo.slid_href}" target="_blank">{$vo.slid_name}</a>
|
||||
<a href="{$Request.domain}{$vo.slid_href}" target="_blank">{$vo.slid_name}</a>
|
||||
{/volist}
|
||||
<a href="https://beian.miit.gov.cn/#/Integrated/recordQuery" target="_blank"
|
||||
>{$sysInfo.icp}</a
|
||||
>
|
||||
>{$sysInfo.icp}</a>
|
||||
</p>
|
||||
</div>
|
||||
<script src="/static/layui/jquery.min.js" charset="utf-8"></script>
|
||||
<script src="/static/layui/layui.js" charset="utf-8"></script>
|
||||
<script src="{$Request.domain}/static/layui/jquery.min.js" charset="utf-8"></script>
|
||||
<script src="{$Request.domain}/static/layui/layui.js" charset="utf-8"></script>
|
||||
<script>
|
||||
var messageNums = "{:url('message/nums')}",
|
||||
messageRead = "{:url('Message/read')}",
|
||||
|
@ -1,13 +1,13 @@
|
||||
<div class="fly-header layui-bg-black">
|
||||
<div class="layui-container">
|
||||
<a class="fly-logo layui-hide-xs" href="/"><img src="{$sysInfo.logo}" alt="taoler" width="135" height="37"></a>
|
||||
<a class="fly-logo layui-hide-xs" href="{$Request.domain}"><img src="{$Request.domain}{$sysInfo.logo}" alt="taoler" width="135" height="37"></a>
|
||||
<!--头部伸缩侧边栏-->
|
||||
<div class="site-tree-mobile-top layui-hide">
|
||||
<i class="layui-icon layui-icon-spread-left"></i>
|
||||
</div>
|
||||
<div class="site-mobile-shade-top"></div>
|
||||
{//移动端LOGO}
|
||||
<a class="fly-logo layui-hide-md" href="/" style="padding-left:50%; margin-left:-60px;"><img src="/static/res/images/logo-m.png"></a>
|
||||
<a class="fly-logo layui-hide-md" href="/" style="padding-left:50%; margin-left:-60px;"><img src="{$Request.domain}/static/res/images/logo-m.png"></a>
|
||||
<ul class="layui-nav fly-nav layui-hide-xs">
|
||||
{volist name="headlinks" id="vo"}
|
||||
<li class="layui-nav-item">
|
||||
@ -20,12 +20,12 @@
|
||||
{if session('?user_id')}
|
||||
{if($Request.action=='user')}
|
||||
<li class="layui-nav-item">
|
||||
<a href="/">{:lang('home page')}</a>
|
||||
<a href="{$Request.domain}">{:lang('home page')}</a>
|
||||
</li>
|
||||
{/if}
|
||||
<li class="layui-nav-item">
|
||||
<a class="fly-nav-avatar" href="javascript:;">
|
||||
<cite class="layui-hide-xs">{$user.name}</cite><img src="{$user.user_img}">
|
||||
<cite class="layui-hide-xs">{$user.name}</cite><img src="{$Request.domain}{$user.user_img}">
|
||||
</a>
|
||||
<dl class="layui-nav-child">
|
||||
<dd><a href="{:url('user/index')}"><i class="layui-icon"></i>{:lang('user center')}</a></dd>
|
||||
|
@ -1,13 +1,13 @@
|
||||
<li>
|
||||
<a href="{:url('user/home',['id'=>$art.user_id])}" class="fly-avatar">
|
||||
<img src="{$art.user.user_img}" alt="{$art.user.name}">
|
||||
<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>
|
||||
<h2>
|
||||
{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="{:url('article/detail',['id' => $art.id])}" style="color:{$art.title_color};">{$art.title}</a>
|
||||
<a href="{$Request.domain}{:url('article/detail',['id' => $art.id])}" style="color:{$art.title_color};">{$art.title}</a>
|
||||
</h2>
|
||||
<div class="fly-list-info">
|
||||
<a href="{:url('user/home',['id'=>$art.user.id])}" link>
|
||||
<a href="{$Request.domain}{:url('user/home',['id'=>$art.user.id])}" link>
|
||||
{if config('taoler.config.area_show') == 1}<i class="layui-badge layui-bg-green" title="来自哪简称">{:getAsing($art.user.area_id) ?: '无'}</i>{/if}
|
||||
<cite>{$art.user.nickname ?: $art.user.name}</cite>
|
||||
<i>{$art.create_time|date='Y-m-d'}</i>
|
||||
|
@ -3,8 +3,8 @@
|
||||
<div carousel-item="">
|
||||
{volist name="slider" id="vo"}
|
||||
<div time-limit="">
|
||||
<a href="{$vo.slid_href}" target="_blank" rel="nofollow">
|
||||
<img src="{$vo.slid_img}" alt="{$vo.slid_name}" />
|
||||
<a href="{$Request.domain}{$vo.slid_href}" target="_blank" rel="nofollow">
|
||||
<img src="{$Request.domain}{$vo.slid_img}" alt="{$vo.slid_name}" />
|
||||
</a>
|
||||
</div>
|
||||
{/volist}
|
||||
|
@ -1,8 +1,17 @@
|
||||
<!--
|
||||
* @Author: TaoLer <alipay_tao@qq.com>
|
||||
* @Date: 2021-12-06 16:04:51
|
||||
* @LastEditTime: 2022-05-10 12:51:38
|
||||
* @LastEditors: TaoLer
|
||||
* @Description: 搜索引擎SEO优化设置
|
||||
* @FilePath: \TaoLer\view\taoler\index\public\index-static.html
|
||||
* Copyright (c) 2020~2022 https://www.aieok.com All rights reserved.
|
||||
-->
|
||||
<div class="layui-row fly-panel-main" style="padding: 15px;">
|
||||
<div class="layui-clear fly-list-quick">
|
||||
{volist name="fastlinks" id="vo"}
|
||||
<div class="layui-col-xs6">
|
||||
<div><a href="{$vo.slid_href}" target="_blank">{$vo.slid_name}</a></div>
|
||||
<div><a href="{$Request.domain}{$vo.slid_href}" target="_blank">{$vo.slid_name}</a></div>
|
||||
</div>
|
||||
{/volist}
|
||||
</div>
|
||||
|
@ -1,13 +1,13 @@
|
||||
<li>
|
||||
<a href="{:url('user/home',['id'=>$top.user_id])}" class="fly-avatar">
|
||||
<img src="{$top.user.user_img}" alt="{$top.user.name}">
|
||||
<a href="{$Request.domain}{:url('user/home',['id'=>$top.user_id])}" class="fly-avatar">
|
||||
<img src="{$Request.domain}{$top.user.user_img}" alt="{$top.user.name}">
|
||||
</a>
|
||||
<h2>
|
||||
{if config('taoler.config.cate_show') == 1}<a class="layui-badge">{:cookie('think_lang') == 'en-us' ? $top.cate.ename : $top.cate.catename}</a>{/if}
|
||||
<a href="{:url('article/detail',['id' => $top.id])}" style="color:{$top.title_color};">{$top.title}</a>
|
||||
<a href="{$Request.domain}{:url('article/detail',['id' => $top.id])}" style="color:{$top.title_color};">{$top.title}</a>
|
||||
</h2>
|
||||
<div class="fly-list-info">
|
||||
<a href="{:url('user/home',['id'=>$top.user_id])}" link>
|
||||
<a href="{$Request.domain}{:url('user/home',['id'=>$top.user_id])}" link>
|
||||
{if config('taoler.config.area_show') == 1}<i class="layui-badge layui-bg-green" title="来自哪简称">{:getAsing($top.user.area_id) ?: '无'}</i>{/if}
|
||||
<cite>{$top.user.nickname ?: $top.user.name}</cite>
|
||||
<i>{$top.create_time|date='Y-m-d'}</i>
|
||||
|
12
view/taoler/index/public/js.html
Normal file
12
view/taoler/index/public/js.html
Normal file
@ -0,0 +1,12 @@
|
||||
<script>
|
||||
var messageNums = "{:url('Message/nums')}",
|
||||
messageRead = "{:url('Message/read')}",
|
||||
userMessage = "{:url('index/User/message')}",
|
||||
login = "{:url('Login/index')}",
|
||||
articleAdd = "{:url('Article/add')}",
|
||||
websearch = "{:url('index/search')}",
|
||||
textImgUpload = "{:url('article/textImgUpload')}",
|
||||
searchUrl = "{:url('index/search')}";
|
||||
</script>
|
||||
<script src="{$Request.domain}/static/layui/jquery.min.js" charset="utf-8"></script>
|
||||
<script src="{$Request.domain}/static/layui/layui.js" charset="utf-8"></script>
|
@ -1,2 +1,2 @@
|
||||
<link rel="stylesheet" href="/static/res/layui/css/layui.css">
|
||||
<link rel="stylesheet" href="/static/res/css/global.css">
|
||||
<link rel="stylesheet" href="{$Request.domain}/static/res/layui/css/layui.css">
|
||||
<link rel="stylesheet" href="{$Request.domain}/static/res/css/global.css">
|
@ -1,14 +1,23 @@
|
||||
<!--
|
||||
* @Author: TaoLer <alipay_tao@qq.com>
|
||||
* @Date: 2021-12-06 16:04:51
|
||||
* @LastEditTime: 2022-05-10 12:47:05
|
||||
* @LastEditors: TaoLer
|
||||
* @Description: 搜索引擎SEO优化设置
|
||||
* @FilePath: \TaoLer\view\taoler\index\public\menu.html
|
||||
* Copyright (c) 2020~2022 https://www.aieok.com All rights reserved.
|
||||
-->
|
||||
<div class="layui-panel site-menu layui-hide-md">
|
||||
<ul class="layui-menu layui-menu-lg">
|
||||
<li class="search" style="padding-left:5px;padding-top:2px;padding-right:5px;">
|
||||
<form action="{:url('index/search',['keywords'=>$Request.param.keywords])}">
|
||||
<form action="{$Request.domain}{:url('index/search',['keywords'=>$Request.param.keywords])}">
|
||||
<input type="search" name="keywords" value="" aria-label="Search text" placeholder="搜索" class="layui-input">
|
||||
</form>
|
||||
</li>
|
||||
{if session('?user_id')}
|
||||
<li class="layui-nav-item" style="padding-left:25px;">
|
||||
<a class="fly-nav-avatar" href="javascript:;">
|
||||
<img src="{$user['user_img']}" >
|
||||
<img src="{$Request.domain}{$user['user_img']}" >
|
||||
</a>
|
||||
</li>
|
||||
{else /}
|
||||
@ -35,7 +44,7 @@
|
||||
{volist name="cateList" id="cate"}
|
||||
<li {if condition="$cate.ename eq $Request.param.ename"} class="layui-this" {/if}>
|
||||
<div class="layui-menu-body-title">
|
||||
<a href="{:url('cate',['ename' => $cate.ename])}"><i class="layui-icon {$cate.icon}"></i> {:cookie('think_lang') == 'en-us' ? $cate.ename : $cate.catename}
|
||||
<a href="{$Request.domain}{:url('cate',['ename' => $cate.ename])}"><i class="layui-icon {$cate.icon}"></i> {:cookie('think_lang') == 'en-us' ? $cate.ename : $cate.catename}
|
||||
<span class="layui-font-12 layui-font-gray">>> {$cate.ename}</span>
|
||||
{if condition="$cate.is_hot eq 1"}<span class="layui-badge-dot"></span>{/if}
|
||||
</a>
|
||||
@ -52,7 +61,7 @@
|
||||
{volist name="headlinks" id="vo"}
|
||||
<li class="">
|
||||
<div class="layui-menu-body-title">
|
||||
<a href="{$vo.slid_href}"><i class="layui-icon {$vo.slid_img}"></i><span> {$vo.slid_name} </span></a>
|
||||
<a href="{$Request.domain}{$vo.slid_href}"><i class="layui-icon {$vo.slid_img}"></i><span> {$vo.slid_name} </span></a>
|
||||
</div>
|
||||
</li>
|
||||
{/volist}
|
||||
|
@ -1,3 +1,12 @@
|
||||
<!--
|
||||
* @Author: TaoLer <alipay_tao@qq.com>
|
||||
* @Date: 2021-12-06 16:04:51
|
||||
* @LastEditTime: 2022-05-10 12:47:47
|
||||
* @LastEditors: TaoLer
|
||||
* @Description: 搜索引擎SEO优化设置
|
||||
* @FilePath: \TaoLer\view\taoler\index\public\user.html
|
||||
* Copyright (c) 2020~2022 https://www.aieok.com All rights reserved.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
@ -6,9 +15,9 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="keywords" content="TaoLer社区">
|
||||
<meta name="description" content="TaoLer社区是模块化前端UI框架社区,致力于为web开发提供强劲动力">
|
||||
<link rel="stylesheet" href="/static/res/css/font_24081_qs69ykjbea.css" />
|
||||
<link rel="stylesheet" href="/static/layui/css/layui.css">
|
||||
<link rel="stylesheet" href="/static/res/css/global.css">
|
||||
<link rel="stylesheet" href="{$Request.domain}/static/res/css/font_24081_qs69ykjbea.css" />
|
||||
<link rel="stylesheet" href="{$Request.domain}/static/layui/css/layui.css">
|
||||
<link rel="stylesheet" href="{$Request.domain}/static/res/css/global.css">
|
||||
{block name="css"}{/block}
|
||||
</head>
|
||||
<body>
|
||||
|
@ -1,12 +1,21 @@
|
||||
<!--
|
||||
* @Author: TaoLer <alipay_tao@qq.com>
|
||||
* @Date: 2021-12-06 16:04:51
|
||||
* @LastEditTime: 2022-05-10 12:52:55
|
||||
* @LastEditors: TaoLer
|
||||
* @Description: 搜索引擎SEO优化设置
|
||||
* @FilePath: \TaoLer\view\taoler\index\user\home.html
|
||||
* Copyright (c) 2020~2022 https://www.aieok.com All rights reserved.
|
||||
-->
|
||||
{extend name="public/base" /}
|
||||
|
||||
{block name="title"}{$u.nickname ?: $u.name}的主页-{$sysInfo.webname}{/block}
|
||||
{block name="description"}{$u.sign}{/block}
|
||||
{block name="link"}<link rel="stylesheet" href="/static/res/css/plyr.css" charset="utf-8">{/block}
|
||||
{block name="link"}<link rel="stylesheet" href="{$Request.domain}/static/res/css/plyr.css" charset="utf-8">{/block}
|
||||
{block name="column"}{/block}
|
||||
{block name="content"}
|
||||
<div class="fly-home fly-panel" style="background-image: url();">
|
||||
<img src="{$u.user_img}" alt="{$u.name}">
|
||||
<img src="{$Request.domain}{$u.user_img}" alt="{$u.name}">
|
||||
{if($u.vip > 0)}<i class="iconfont icon-renzheng" title="Fly社区认证"></i>{/if}
|
||||
<h1>
|
||||
{$u.nickname ?: $u.name}
|
||||
@ -44,7 +53,7 @@
|
||||
{volist name="$arts" id="vo"}
|
||||
<li>
|
||||
{if condition="$vo.is_hot==1"}<span class="fly-jing">{:lang('hot')}</span>{/if}
|
||||
<a href="{:url('article/detail',['id'=>$vo.id])}" class="jie-title"> {$vo.title}</a>
|
||||
<a href="{$Request.domain}{:url('article/detail',['id'=>$vo.id])}" class="jie-title"> {$vo.title}</a>
|
||||
<i>{$vo.create_time|date='Y-m-d'}</i>
|
||||
<em class="layui-hide-xs">{$vo.pv} {:lang('browses')}</em>
|
||||
</li>
|
||||
@ -64,7 +73,7 @@
|
||||
<li>
|
||||
<p>
|
||||
<span>{$vo.create_time|date='Y-m-d H-m'}</span>
|
||||
{:lang('in')}<a href="{:url('article/detail',['id'=>$vo.id])}" target="_blank">{$vo.title}</a>{:lang('reply')}:
|
||||
{:lang('in')}<a href="{$Request.domain}{:url('article/detail',['id'=>$vo.id])}" target="_blank">{$vo.title}</a>{:lang('reply')}:
|
||||
</p>
|
||||
<div class="home-dacontent detail-body jieda-body photos" >{$vo.content}</div>
|
||||
</li>
|
||||
|
Loading…
Reference in New Issue
Block a user