修正一些主题的bug

This commit is contained in:
liyukun 2021-08-09 01:00:41 +08:00
parent 713054fbea
commit 0119edb22d
10 changed files with 774 additions and 909 deletions

View File

@ -199,7 +199,7 @@ class Zz extends TagLib{
}
/**
* tagAdvert
* tagAdvert 广告
* @param $tag
* @param $content
* @return string

File diff suppressed because it is too large Load Diff

View File

@ -60,7 +60,7 @@ class Article extends Base
if(!is_file(config('view.view_path').'category/'.$listTmp)){
$this->error('模板文件不存在!');
}
trace('列表页模板路径:'.config('view.view_path').'category/'.$listTmp,'debug');
Log::info('列表页模板路径:'.config('view.view_path').'category/'.$listTmp);
//文章兼容字段
$dc['category_id']=$dc['id'];
//判断seo标题是否存在
@ -146,29 +146,6 @@ class Article extends Base
return $this->fetch('article/'.$detailTmp);
}
//自定义页面,可通过参数指定模板文件。完成完全自定义的文件输出。
//可以输出html片段甚至可以输出JSON
//参数指定的模板文件必须位于模板文件夹下且以content_开头以.htm拓展名结尾
public function content()
{
$zzField=input();
if(!isset($zzField['tpl'])){
$this->error('没有指定模板文件!');
}
//将参数传递到模板页面
$this->assign('zzField',$zzField);
//模板兼容性标签
$this->assign('id',false);
$this->assign('cid',false);
//读取模板配置,获得模板后缀名
$view_suffix=config('view.view_suffix');
Log::info('详情页模板路径:'.config('view.view_path').'article/'.'content_'.$zzField['tpl'].'.'.$view_suffix);
cache('curr_category_patent_id',false);
$detailTmp = substr($detailTmp,0,strpos($detailTmp,'.'));
return $this->fetch('article/'.$detailTmp);
return $this->fetch();
}
//文章标签页面
public function tag()
{
@ -193,7 +170,8 @@ class Article extends Base
//模板兼容性标签
$this->assign('id',false);
$this->assign('cid',false);
return $this->fetch();
$view_suffix=config('view.view_suffix');
return $this->fetch('tag.'.$view_suffix);
}
//搜索页面
@ -219,6 +197,10 @@ class Article extends Base
//模板兼容性标签
$this->assign('id',false);
$this->assign('cid',false);
$template = config('view.view_path').'article/search.html';
if(!is_file($template)){
$this->error('模板文件不存在!');
}
return $this->fetch();
}
}

View File

@ -2,8 +2,8 @@
<html lang="zh">
<head>
<title>{$zzField['title']} - {:web_config("title")}</title>
<meta name="keywords" content="{$zzField['keywords']}">
<meta name="description" content="{$zzField['description']}">
<meta name="keywords" content="{$zzField['keywords']}" />
<meta name="description" content="{$zzField['description']}"/>
{include file="public/head" /}
<link rel="stylesheet" href="__LIB__/nprogress/nprogress.min.css">
@ -528,145 +528,24 @@
</div>
<div class="sidebar">
<div class="sidebar-box-list">
<div class="aside-box"><h2 class="widget-title">热门文章</h2>
<div class="aside-box">
<h2 class="widget-title">热门文章</h2>
{zz:arclist row="8" orderby="view desc" type="where"}
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
1 </span>
<span class="hot-post-widget-item-num">{$i}</span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-om-order-table/index1.html"> oracle-EBS甲骨文销售订单下单发放挑库发运(销售到出货全过程)主要相关表(多图)</a>
</span>
<a href="{$field['url']}">{:cn_substr($field['title'],15)}</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>{$field['create_time']}</div>
<div>
2020-12-09
</div>
<div>
<a href="../category/oracle-om/index.html"> Oracle-OM-销售物流</a>
<a href="#">{:cn_substr($field['category_title'],5)}</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
2 </span>
<span class="hot-post-widget-item-title">
<a href="../decoration-erp/index.html"> 某家装公司项目管理软件系统的设计思路</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2021-03-24
</div>
<div>
<a href="../category/talk/index.html"> 学习笔记</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
3 </span>
<span class="hot-post-widget-item-title">
<a href="../oaworkflowapprove/index1.html"> 常见企业OA办公审批流、工作流实现层级审批、层层签核的方式</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2021-02-28
</div>
<div>
<a href="../category/sql-server/index.html"> sql-server</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
4 </span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-pur-inventory-table/index1.html"> oracle-EBS-采购单创建接收检验入库经历主要表(多图)</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2020-12-13
</div>
<div>
<a href="../category/oracle-pur-prod/index.html"> Oracle-PROD-采购生产</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
5 </span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-pl-sql-ap-podetial/index.html"> oracle-EBS-PL/sql AP 发票中匹配的po明细按发票</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2021-03-07
</div>
<div>
<a href="../category/oracle-finance/index.html"> Oracle-Finance-财务</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
6 </span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-pl-sql-price-list/index.html"> oracle EBS PL/sql 查看销售订单的价目表Price List</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2020-12-13
</div>
<div>
<a href="../category/oracle-pl-sql/index.html"> Oracle-PL/SQL</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
7 </span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-om-confirm-transferto-ar/index.html"> oracle-EBS-PL/sql查看销售订单已经确认出货和过账到AR应收的订单行明细查看物流操作时间</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2020-12-04
</div>
<div>
<a href="../category/oracle-pl-sql/index.html"> Oracle-PL/SQL</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
8 </span>
<span class="hot-post-widget-item-title">
<a href="../sql-server-max-lineconverttocolumn/index.html"> SQL Server- 行列转换 行转列,多行转多列 &#8211; max 函数用法</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2020-12-07
</div>
<div>
<a href="../category/sql-server/index.html"> sql-server</a>
</div>
</div>
</div>
{/zz:arclist}
</div>
</div>
</div>

View File

@ -179,27 +179,25 @@
<div class="post-turn-page-plane">
<div class="post-turn-page post-turn-page-previous" style="background-image:url()">
<div class="post-turn-page-main">
{zz:prenext get="pre" cid="$zzField['category_id']"}
<div>
<a href="../oracle-ebs-pur-inventory-table/index1.html">oracle-EBS-采购单创建接收检验入库经历主要表(多图)</a>
<a href="{:url('/index/article/detail')}?id={$field['id']}">{$field['title']}</a>
</div>
<div class="post-turn-page-link-pre">
<a href="../oracle-ebs-pur-inventory-table/index1.html"><
<上一篇></上一篇>
</a>
<a href="{:url('/index/article/detail')}?id={$field['id']}"><<上一篇></上一篇></a>
</div>
{/zz:prenext}
</div>
</div>
<div class="post-turn-page post-turn-page-next"
style="background-image:url(../wp-content/uploads/2020/12/oracleAP_Payments_GL_Voucher.png)">
<div class="post-turn-page post-turn-page-next" style="background-image:url(../wp-content/uploads/2020/12/oracleAP_Payments_GL_Voucher.png)">
{zz:prenext get="next" cid="$zzField['category_id']"}
<div class="post-turn-page-main">
<div>
<a href="javascript:;">oracle-EBS-PL/sql AP GL总账付款凭证</a>
</div>
<a href="{:url('/index/article/detail')}?id={$field['id']}">{$field['title']}</a>
<div class="post-turn-page-link-next">
<a href="javascript:;">下一篇>></a>
</div>
</div>
{/zz:prenext}
</div>
</div>
<script>
@ -528,145 +526,24 @@
</div>
<div class="sidebar">
<div class="sidebar-box-list">
<div class="aside-box"><h2 class="widget-title">热门文章</h2>
<div class="aside-box">
<h2 class="widget-title">热门文章</h2>
{zz:arclist row="8" orderby="view desc" type="where"}
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
1 </span>
<span class="hot-post-widget-item-num">{$i}</span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-om-order-table/index1.html"> oracle-EBS甲骨文销售订单下单发放挑库发运(销售到出货全过程)主要相关表(多图)</a>
</span>
<a href="{$field['url']}">{:cn_substr($field['title'],15)}</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>{$field['create_time']}</div>
<div>
2020-12-09
</div>
<div>
<a href="../category/oracle-om/index.html"> Oracle-OM-销售物流</a>
<a href="#">{:cn_substr($field['category_title'],5)}</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
2 </span>
<span class="hot-post-widget-item-title">
<a href="../decoration-erp/index.html"> 某家装公司项目管理软件系统的设计思路</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2021-03-24
</div>
<div>
<a href="../category/talk/index.html"> 学习笔记</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
3 </span>
<span class="hot-post-widget-item-title">
<a href="../oaworkflowapprove/index1.html"> 常见企业OA办公审批流、工作流实现层级审批、层层签核的方式</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2021-02-28
</div>
<div>
<a href="../category/sql-server/index.html"> sql-server</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
4 </span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-pur-inventory-table/index1.html"> oracle-EBS-采购单创建接收检验入库经历主要表(多图)</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2020-12-13
</div>
<div>
<a href="../category/oracle-pur-prod/index.html"> Oracle-PROD-采购生产</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
5 </span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-pl-sql-ap-podetial/index.html"> oracle-EBS-PL/sql AP 发票中匹配的po明细按发票</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2021-03-07
</div>
<div>
<a href="../category/oracle-finance/index.html"> Oracle-Finance-财务</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
6 </span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-pl-sql-price-list/index.html"> oracle EBS PL/sql 查看销售订单的价目表Price List</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2020-12-13
</div>
<div>
<a href="../category/oracle-pl-sql/index.html"> Oracle-PL/SQL</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
7 </span>
<span class="hot-post-widget-item-title">
<a href="../oracle-ebs-om-confirm-transferto-ar/index.html"> oracle-EBS-PL/sql查看销售订单已经确认出货和过账到AR应收的订单行明细查看物流操作时间</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2020-12-04
</div>
<div>
<a href="../category/oracle-pl-sql/index.html"> Oracle-PL/SQL</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">
8 </span>
<span class="hot-post-widget-item-title">
<a href="../sql-server-max-lineconverttocolumn/index.html"> SQL Server- 行列转换 行转列,多行转多列 &#8211; max 函数用法</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>
2020-12-07
</div>
<div>
<a href="../category/sql-server/index.html"> sql-server</a>
</div>
</div>
</div>
{/zz:arclist}
</div>
</div>
</div>

View File

@ -0,0 +1,357 @@
<!DOCTYPE html>
<html lang="zh">
<head>
<title>{$zzField['meta_title']} - {:web_config("title")}</title>
<meta name="keywords" content="{$zzField['keywords']}" />
<meta name="description" content="{$zzField['description']}" />
{include file="public/head" /}
<script type="text/javascript" src="__JS__/qrcode.min.js" id="corepress_jquery_qrcode-js"s></script>
<script src="__JS__/jquery.lazyload.min.js"></script>
</head>
<body>
<script>NProgress.start();</script>
<div id="app">
{include file="public/header" /}
<div class="top-divider"></div>
<main class="container">
<div class="html-main">
<div class="post-main">
<div class="post-list-page-plane">
<div class="list-plane-title">
<div>搜索内容:{$kw}</div>
</div>
<ul class="post-list">
{zz:list pagesize="10" type="where"}
<li class="post-item">
<div class="post-item-container">
<div class="post-item-thumbnail">
<a href="{$field['url']}" target="_blank">
<img src="__IMG__/loading.gif" data-original="{:file_cdn($field['cover_path'])}"/>
</a>
</div>
<!-- tag链接等待完善-->
{notempty name="$field['tags']"}
<div class="post-item-tags ">
<span class="cat-item">
<a target="_blank" href="{$field['url']}">{:cn_substr($field['tags'],15)}</a>
</span>
</div>
{/notempty}
<div class="post-item-main">
<h2>
<a target="_blank" href="{$field['url']}" style="white-space: nowrap;text-overflow: ellipsis;">{:cn_substr($field['title'],20)}</a>
</h2>
<div class="post-item-content">
<a target="_blank" href="{$field['url']}" style="white-space: nowrap;text-overflow: ellipsis;">{:cn_substr($field['content'],100)}</a>
</div>
<div class="post-item-info">
<div class="post-item-meta">
<div class="post-item-meta-item">
<span class="post-item-meta-author">
<!-- <img alt="" src="__IMG__/corepress_avatar/1.jpg" srcset="__IMG__/corepress_avatar/1.jpg 2x" class="avatar avatar-24 photo post-item-avatar"-->
<!-- height="24" width="24" loading="lazy"/>-->
{$field['author']}
</span>
<span class="post-item-time">{$field['create_time']}</span>
</div>
<div class="item-post-meta-other">
<span><i class="fas fa-eye" aria-hidden="true"></i>{$field['view']}</span>
<!-- <span><i class="fas fa-comment-alt-lines"></i>0</span>-->
</div>
</div>
</div>
</div>
</div>
</li>
{/zz:list}
</ul>
<div class="pages">
<div class="fenye">
{$pager|raw}
</div>
</div>
</div>
</div>
<div class="sidebar">
<div class="aside-box">
<form class="search-form" action="{:url('/index/article/search')}" method="get" role="search">
<div class="search-form-input-plane">
<input type="text" class="search-keyword" name="kw" placeholder="搜索内容" value="{$kw}"/>
</div>
<div>
<button type="submit" class="search-submit" value="&#xf002;">搜索</button>
</div>
</form>
</div>
<div class="aside-box">
<h2 class="widget-title">句子</h2>
<div class="widget-sentence-placeholder widget-sentence-placeholder-jzmk">
<ul>
<li></li>
<li></li>
</ul>
</div>
<script>
$(document).ready(function () {
widget_sentence_load('djt', '.widget-sentence-placeholder-jzmk');
});
</script>
</div>
<div class="aside-box">
<h2 class="widget-title">热门文章</h2>
{zz:arclist row="6" type="where" orderby="view desc"}
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">{$i}</span>
<span class="hot-post-widget-item-title">
<a href="{$field['url']}">{:cn_substr($field['title'],15)}</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>{$field['create_time']}</div>
<div>
<a href="#">{:cn_substr($field['category_title'],5)}</a>
</div>
</div>
</div>
{/zz:arclist}
</div>
<div class="aside-box">
<h2 class="widget-title">标签云</h2>
<script src="__JS__/TagCloud.js"></script>
<div class="corepress-tag-cloud">
<div class="corepress-tag-container-tag1"></div>
</div>
<style>
.corepress-tagcloud a {
font-size: 12px;
color: #fff;
padding: 0 !important;
}
.corepress-tagcloud a:hover {
color: #fff !important;
}
.tagcloud--item {
color: #fff;
padding: 2px 4px;
border-radius: 3px;
cursor: pointer;
}
.tagcloud--item:hover {
opacity: 1 !important;
z-index: 100 !important;
}
</style>
<script>
var tag = TagCloud(
".corepress-tag-container-tag1",
JSON.parse(
'[{"text":"WordPress","href":"https:\/\/www.lovestu.com\/tag\/wordpress"},{"text":"WordPress\u7248\u672c","href":"https:\/\/www.lovestu.com\/tag\/wordpress%e7%89%88%e6%9c%ac"},{"text":"\u4e3b\u9898","href":"https:\/\/www.lovestu.com\/tag\/%e4%b8%bb%e9%a2%98"},{"text":"\u4ee3\u7801","href":"https:\/\/www.lovestu.com\/tag\/code"},{"text":"\u4f7f\u7528\u6559\u7a0b","href":"https:\/\/www.lovestu.com\/tag\/tutorial"}]'
),
{},
[
"#67C23A",
"#E6A23C",
"#F56C6C",
"#909399",
"#CC9966",
"#FF6666",
"#99CCFF",
"#FF9999",
"#CC6633",
]
);
</script>
</div>
<div class="aside-box">
<h2 class="widget-title">最新评论</h2>
<li>
<div class="widger-comment-plane">
<div class="widger-comment-info">
<div class="widger-comment-user">
<div class="widger-avatar">
<img
alt="黯然gg"
src="../avatar/a817af1c94172733c4e559a236053976.jpg"
srcset="
https://sdn.geekzu.org/avatar/a817af1c94172733c4e559a236053976?s=60&d=mm&r=g 2x
"
class="avatar avatar-30 photo"
height="30"
width="30"
loading="lazy"
/>
</div>
<div class="widger-comment-name">黯然gg</div>
</div>
<div class="widger-comment-time">
<span>7月17日</span>
</div>
</div>
<div class="widger-comment-excerpt">
<p>
哈哈我换你这个主题了,现在在友链首页了,大佬来个友链(我是不会告你我从十一点多搞到现在的)
博客名称:阿...
</p>
</div>
<p class="widger-comment-postlink">
评论于
<a href="../applylink.html" target="_blank">申请友情链接</a>
</p>
</div>
</li>
<li>
<div class="widger-comment-plane">
<div class="widger-comment-info">
<div class="widger-comment-user">
<div class="widger-avatar">
<img
alt="黑域博客"
src="../avatar/a19c6a43816e575771df29bc689efa17.jpg"
srcset="
https://sdn.geekzu.org/avatar/a19c6a43816e575771df29bc689efa17?s=60&d=mm&r=g 2x
"
class="avatar avatar-30 photo"
height="30"
width="30"
loading="lazy"
/>
</div>
<div class="widger-comment-name">黑域博客</div>
</div>
<div class="widger-comment-time">
<span>7月16日</span>
</div>
</div>
<div class="widger-comment-excerpt">
<p>哈哈,我什么时候能上优秀网站</p>
</div>
<p class="widger-comment-postlink">
评论于
<a href="../corepresswzzs.html" target="_blank"
>CorePress主题优秀网站展示</a
>
</p>
</div>
</li>
<li>
<div class="widger-comment-plane">
<div class="widger-comment-info">
<div class="widger-comment-user">
<div class="widger-avatar">
<img
alt="黯然gg"
src="../avatar/a817af1c94172733c4e559a236053976.jpg"
srcset="
https://sdn.geekzu.org/avatar/a817af1c94172733c4e559a236053976?s=60&d=mm&r=g 2x
"
class="avatar avatar-30 photo"
height="30"
width="30"
loading="lazy"
/>
</div>
<div class="widger-comment-name">黯然gg</div>
</div>
<div class="widger-comment-time">
<span>7月16日</span>
</div>
</div>
<div class="widger-comment-excerpt">
<p>啊 必须要首页的嘛 我用的主题没有首页链接这个模块儿呀</p>
</div>
<p class="widger-comment-postlink">
评论于
<a href="../applylink.html" target="_blank">申请友情链接</a>
</p>
</div>
</li>
<li>
<div class="widger-comment-plane">
<div class="widger-comment-info">
<div class="widger-comment-user">
<div class="widger-avatar">
<img
alt="Xpower"
src="../avatar/a19c6a43816e575771df29bc689efa17.jpg"
srcset="
https://sdn.geekzu.org/avatar/d88fa0e5183fc60bce09df183aa52f13?s=60&d=mm&r=g 2x
"
class="avatar avatar-30 photo"
height="30"
width="30"
loading="lazy"
/>
</div>
<div class="widger-comment-name">Xpower</div>
</div>
<div class="widger-comment-time">
<span>7月16日</span>
</div>
</div>
<div class="widger-comment-excerpt">
<p>这模板可以</p>
</div>
<p class="widger-comment-postlink">
评论于
<a href="../shortcodeshow.html" target="_blank"
>CorePress主题短代码演示</a
>
</p>
</div>
</li>
<li>
<div class="widger-comment-plane">
<div class="widger-comment-info">
<div class="widger-comment-user">
<div class="widger-avatar">
<img
alt="雅魔窝"
src="../avatar/a19c6a43816e575771df29bc689efa17.jpg"
srcset="
https://sdn.geekzu.org/avatar/6836e13db58b6cdca078095a09f95ac3?s=60&d=mm&r=g 2x
"
class="avatar avatar-30 photo"
height="30"
width="30"
loading="lazy"
/>
</div>
<div class="widger-comment-name">雅魔窝</div>
</div>
<div class="widger-comment-time">
<span>7月16日</span>
</div>
</div>
<div class="widger-comment-excerpt">
<p>
适合wp高手使用如果用做新手小白可能还需要写更傻瓜式的教程。
</p>
</div>
<p class="widger-comment-postlink">
评论于
<a href="../wordpresswwznltjzdyzd.html" target="_blank"
>WordPress为文章目录添加自定义字段</a
>
</p>
</div>
</li>
</div>
</div>
</div>
</main>
{include file="public/footer"/}
<script src="__LIB__/highlight/init.js"></script>
</div>
</body>
</html>

View File

@ -24,19 +24,19 @@
<div>{$zzField['title']}</div>
</div>
<ul class="post-list">
{zz:list orderby="create_time desc" type="where"}
{zz:list orderby="create_time desc" type="where" pagesize="10"}
<li class="post-item">
<div class="post-item-container">
<div class="post-item-thumbnail">
<a href="{$field['url']}" target="_blank">
<img src="__IMG__/loading.gif" data-original="{:file_cdn($field['cover_path'])}"/>
<img src="__IMG__/loading.gif" data-original="{:file_cdn($field['cover_path'])}" />
</a>
</div>
<!-- tag链接等待完善-->
{notempty name="$field['tags']"}
<div class="post-item-tags ">
<span class="cat-item">
<a target="_blank" href="{$field['url']}">{:cn_substr($field['tags'],15)}</a>
<a target="_blank" href="{$field['url']}">{:cn_substr($field['tags'],20)}</a>
</span>
</div>
{/notempty}
@ -44,8 +44,8 @@
<h2>
<a target="_blank" href="{$field['url']}" style="white-space: nowrap;text-overflow: ellipsis;">{:cn_substr($field['title'],20)}</a>
</h2>
<div class="post-item-content">
<a target="_blank" href="{$field['url']}" style="white-space: nowrap;text-overflow: ellipsis;">{:cn_substr($field['content'],40)}</a>
<div class="post-item-content" style="white-space: nowrap;text-overflow: ellipsis;">
{:cn_substr($field['content'],100)}
</div>
<div class="post-item-info">
<div class="post-item-meta">
@ -58,7 +58,7 @@
<span class="post-item-time">{$field['create_time']}</span>
</div>
<div class="item-post-meta-other">
<span><i class="fas fa-eye" aria-hidden="true"></i>{$zzField['view']}</span>
<span><i class="fas fa-eye" aria-hidden="true"></i>{$field['view']}</span>
<!-- <span><i class="fas fa-comment-alt-lines"></i>0</span>-->
</div>
</div>
@ -77,33 +77,18 @@
</div>
<div class="sidebar">
<div class="aside-box">
<form
class="search-form"
action="https://www.lovestu.com"
method="get"
role="search"
>
<form class="search-form" action="{:url('/index/article/search')}" method="get" role="search">
<div class="search-form-input-plane">
<input
type="text"
class="search-keyword"
name="s"
placeholder="搜索内容"
value=""
/>
<input type="text" class="search-keyword" name="kw" placeholder="搜索内容" value=""/>
</div>
<div>
<button type="submit" class="search-submit" value="&#xf002;">
搜索
</button>
<button type="submit" class="search-submit" value="&#xf002;">搜索</button>
</div>
</form>
</div>
<div class="aside-box">
<h2 class="widget-title">句子</h2>
<div
class="widget-sentence-placeholder widget-sentence-placeholder-jzmk"
>
<div class="widget-sentence-placeholder widget-sentence-placeholder-jzmk">
<ul>
<li></li>
<li></li>
@ -111,101 +96,28 @@
</div>
<script>
$(document).ready(function () {
widget_sentence_load(
"djt",
".widget-sentence-placeholder-jzmk"
);
widget_sentence_load('djt', '.widget-sentence-placeholder-jzmk');
});
</script>
</div>
<div class="aside-box">
<h2 class="widget-title">热门阅读</h2>
{zz:arclist row="6" typeid="$id" orderby="view desc"}
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num"> 1 </span>
<span class="hot-post-widget-item-num">{$i}</span>
<span class="hot-post-widget-item-title">
<a href="../corepress.html"> CorePress主题 v5.1.1</a>
<a href="{$field['url']}">{:cn_substr($field['title'],15)}</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>2021-07-12</div>
<div>{$field['create_time']}</div>
<div>
<a href="php/wordpress.html"> wordpress</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num"> 2 </span>
<span class="hot-post-widget-item-title">
<a href="../odsz01.html"> OD修改软件文本字符串内容</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>2019-04-29</div>
<div>
<a href="asm/绿化破解.html"> 绿化破解</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num"> 3 </span>
<span class="hot-post-widget-item-title">
<a href="../corepresswzzs.html">
CorePress主题优秀网站展示</a
>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>2021-03-20</div>
<div>
<a href="php/wordpress.html"> wordpress</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num"> 4 </span>
<span class="hot-post-widget-item-title">
<a href="../uniappzdy.html"> uni-app 自定义组件</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>2019-06-08</div>
<div>
<a href="uniapp.html"> UniApp</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num"> 5 </span>
<span class="hot-post-widget-item-title">
<a href="../ollydbg.html"> OllyDbg官方版和增强版</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>2019-04-21</div>
<div>
<a href="soft.html"> 软件资源</a>
</div>
</div>
</div>
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num"> 6 </span>
<span class="hot-post-widget-item-title">
<a href="../layuigettext.html"> layui 获取select值和文本</a>
</span>
</div>
<div class="hot-post-widget-item-meta">
<div>2019-08-08</div>
<div>
<a href="front.html"> 前端</a>
<a href="#">{:cn_substr($field['category_title'],5)}</a>
</div>
</div>
</div>
{/zz:arclist}
</div>
<div class="aside-box">
<h2 class="widget-title">标签云</h2>

View File

@ -2,20 +2,24 @@
<html lang="zh">
<head>
<title>{:web_config("title")}</title>
<meta name="keywords" content="{:web_config("keywords")}">
<meta name="description" content="{:web_config("description")}">
<meta name="keywords" content="{:web_config(" keywords
")}">
<meta name="description" content="{:web_config(" description
")}">
{include file="public/head" /}
<link rel="stylesheet" href="__LIB__/swiper/swiper.min.css">
<link rel="stylesheet" href="__LIB__/swiper/swiper.min.css">
<script src="__LIB__/swiper/swiper.min.js"></script>
<link rel="icon" href="{:web_config("logo")}" type="image/x-icon">
<link rel="icon" href="{:web_config(" logo
")}" type="image/x-icon">
<style>
:root {
--Maincolor: #409EFF !important;
--MaincolorHover: #409EFF !important;
--fontSelectedColor: #3390ff !important;
}
#nprogress .bar {
background: var(--Maincolor)!important;
background: var(--Maincolor) !important;
}
</style>
<script src="__JS__/jquery.lazyload.min.js"></script>
@ -86,8 +90,8 @@
<div class="post-list-page-plane">
<div class="list-plane-title">
<div class="index-tab-plane">
<div class="index-tab-item index-tab-item-active" catid="0">最新文章</div>
<div class="index-tab-item" catid="6">wordpress</div>
<div class="index-tab-item index-tab-item-active" catid="0">最新文章</div>
<div class="index-tab-item" catid="6">wordpress</div>
<div class="index-tab-item" catid="24">JavaScript</div>
<div class="index-tab-item" catid="8">绿化破解</div>
</div>
@ -107,12 +111,13 @@
cat: $(this).attr('catid')
}, function (data) {
$('.post-list').html(data);
$("img").lazyload({effect: "fadeIn"}); })
$("img").lazyload({effect: "fadeIn"});
})
});
</script>
</div>
<ul class="post-list">
{zz:list orderby="create_time desc" type="where"}
{zz:list orderby="create_time desc" pagesize="10" type="where" }
<li class="post-item ">
<div class="post-item-container">
<div class="post-item-thumbnail">
@ -130,9 +135,11 @@
<div class="post-item-main">
<h2>
{if $field['is_top']==1}<span class="post-item-sticky">置顶</span>{/if}
<a href="{$field['url']}" style="white-space: nowrap;text-overflow: ellipsis;" target="_blank">{:cn_substr($field['title'],20)}</a>
<a target="_blank" href="{$field['url']}" style="white-space: nowrap;text-overflow: ellipsis;">{:cn_substr($field['title'],20)}</a>
</h2>
<div class="post-item-content" style="white-space: nowrap;text-overflow: ellipsis;">{:cn_substr($field['content'],40)}</div>
<div class="post-item-content" style="white-space: nowrap;text-overflow: ellipsis;">
{:cn_substr($field['content'],100)}
</div>
<div class="post-item-info">
<div class="post-item-meta">
<div class="post-item-meta-item">
@ -143,9 +150,8 @@
<span class="post-item-time">{$field['create_time']}</span>
</div>
<div class="item-post-meta-other">
<span><i class="fas fa-eye" aria-hidden="true"></i>{$field['view']}</span>
<!-- 评论数-->
<!-- <span><i class="fas fa-comment-alt-lines"></i>{$field['view']}</span>-->
<span><i class="fas fa-eye" aria-hidden="true"></i>{$field['view']}</span>
<!-- <span><i class="fas fa-comment-alt-lines"></i>0</span>-->
</div>
</div>
</div>
@ -155,50 +161,26 @@
{/zz:list}
</ul>
<div class="pages">
<button class="index-load-more-btn"><i class="far fa-circle-notch"></i> 加载更多</button>
<script>
var paged = 2;
var max_page =6;
$('.index-load-more-btn').click(() => {
var btn_cloass = '.index-load-more-btn';
if (paged > max_page) {
$(btn_cloass).text('到底啦');
return;
}
$(btn_cloass).html('<i class="far fa-circle-notch fa-spin"></i> 加载中');
$.post('https://www.lovestu.com/wp-admin/admin-ajax.php', {
action: 'corepress_load_post',
page: paged,
cat: $('.index-tab-item-active').attr('catid')
}, (data) => {
if (data.length == 0) {
$(btn_cloass).html('<i class="far fa-circle-notch"></i> 到底啦');
} else {
$(btn_cloass).html('<i class="far fa-circle-notch"></i> 加载更多');
}
$('.post-list').append(data);
$("img").lazyload({effect: "fadeIn"}); paged++;
})
})
</script>
<div class="fenye">
{$pager|raw}
</div>
</div>
</div>
</div>
<div class="sidebar">
<div class="sidebar-box-list">
<div class="aside-box">
<form class="search-form" action="https://www.lovestu.com" method="get" role="search">
<form class="search-form" action="{:url('/index/article/search')}" method="get" role="search">
<div class="search-form-input-plane">
<input type="text" class="search-keyword" name="s" placeholder="搜索内容" value="">
<input type="text" class="search-keyword" name="kw" placeholder="搜索内容" value=""/>
</div>
<div>
<button type="submit" class="search-submit" value="&#xf002;">搜索</button>
</div>
</div>
</form>
</div>
<div class="aside-box"><h2 class="widget-title">句子</h2>
<div class="aside-box">
<h2 class="widget-title">句子</h2>
<div class="widget-sentence-placeholder widget-sentence-placeholder-jzmk">
<ul>
<li></li>
@ -213,7 +195,7 @@
</div>
<div class="aside-box">
<h2 class="widget-title">热门阅读</h2>
{zz:arclist orderby="view desc" type="where"}
{zz:arclist row="6" type="where" orderby="view desc"}
<div class="hot-post-widget-item">
<div>
<span class="hot-post-widget-item-num">{$i}</span>
@ -242,15 +224,18 @@
color: #fff;
padding: 0 !important;
}
.corepress-tagcloud a:hover {
color: #fff !important;
}
.tagcloud--item {
color: #fff;
padding: 2px 4px;
border-radius: 3px;
cursor: pointer;
}
.tagcloud--item:hover {
opacity: 1 !important;
z-index: 100 !important;
@ -469,9 +454,9 @@
<h2 class="widget-title">拥有一个自己的网站服务器</h2>
<a href="javascript:;">
<img width="300" height="164"
src="/uploads/article/2021/03/440-240_画板-1-300x164.jpg"
class="image wp-image-574 attachment-medium size-medium" alt=""
loading="lazy" style="max-width: 100%; height: auto;">
src="/uploads/article/2021/03/440-240_画板-1-300x164.jpg"
class="image wp-image-574 attachment-medium size-medium" alt=""
loading="lazy" style="max-width: 100%; height: auto;">
</a>
</div>
</div>

View File

@ -36,7 +36,7 @@
</div>
<div class="header-logo-plane">
<div class="header-logo">
<a href=""><img src="{:file_cdn(web_config('logo'))}" alt=""></a></div>
<a href="/"><img src="{:file_cdn(web_config('logo'))}" alt=""></a></div>
</div>
<div class="mobile-search-btn" onclick="openSearch()">
<i class="fa fa-search"></i>
@ -45,9 +45,9 @@
<div class="dialog-mask" onclick="closeSearch()"></div>
<div class="dialog-plane">
<h2>搜索内容</h2>
<form class="search-form" action="{:url('/article/search')}" method="get" role="search">
<form class="search-form" action="{:url('/index/article/search')}" method="get" role="search">
<div class="search-form-input-plane">
<input type="text" class="search-keyword" name="tag" placeholder="搜索内容" value="">
<input type="text" class="search-keyword" name="kw" placeholder="搜索内容" value="">
</div>
<div>
<button type="submit" class="search-submit" value="&#xf002;">搜索</button>
@ -58,7 +58,10 @@
<div class="header-menu">
<div class="menu-plane">
<nav class="menu-header-plane">
<ul id="menu-%e4%b8%8a%e6%96%b9%e5%af%bc%e8%88%aa%e6%a0%8f" class="menu-header-list">
<ul id="menu-header-list" class="menu-header-list">
<li id="menu-item-128" class="menu-item current_page_item menu-item-128">
<a href="/" aria-current="page">首页</a>
</li>
{zz:channel type="top"}
<li id="menu-item-{$field.id}" class="menu-item {notempty name="field['child']"}menu-item-has-children{/notempty} {:IsActiveNav($cid,$field['id'])?'current-menu-item':''} menu-item-{$field['id']}">
{notempty name="field['child']"}
@ -86,7 +89,6 @@
</div>
<span class="user-menu-main">
<a href="login.html"><button class="login-btn-header">登录</button></a>
</span>
</div>
</div>

View File

@ -1,150 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" href="__IMG__/favicon.png" type="image/png">
<title>{$zzField['title']}_{:web_config('WEB_SITE_TITLE')}</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="__CSS__/bootstrap.css">
<link rel="stylesheet" href="/template/default/vendors/linericon/style.css">
<link rel="stylesheet" href="__CSS__/font-awesome.min.css">
<link rel="stylesheet" href="/template/default/vendors/owl-carousel/owl.carousel.min.css">
<link rel="stylesheet" href="/template/default/vendors/lightbox/simpleLightbox.css">
<link rel="stylesheet" href="/template/default/vendors/nice-select/css/nice-select.css">
<link rel="stylesheet" href="/template/default/vendors/animate-css/animate.css">
<!-- main css -->
<link rel="stylesheet" href="__CSS__/style.css">
<link rel="stylesheet" href="__CSS__/responsive.css">
</head>
<body>
<!--================Header Menu Area =================-->
{include file="template/default/head.html"}
<!--================Header Menu Area =================-->
<!--================Home Poster Area =================-->
<section class="home_banner_area">
<div class="banner_inner">
<div class="container">
<div class="row">
<div class="col-lg-5">
<div class="banner_content">
<h2>
呼啦资源网<br>
{:web_config('WEB_SITE_TITLE')}
</h2>
<p>
{:cn_substr(html2text(:web_config('WEB_SITE_DESCRIPTION')),100)}...
</p>
</div>
</div>
<div class="col-lg-7">
<div class="home_right_img">
<img class="img-fluid" src="__IMG__/banner/home-right.png" alt="">
</div>
</div>
</div>
</div>
</div>
</section>
<!--================End Home Poster Area =================-->
<!--================Blog Area =================-->
<section class="blog_area">
<div class="container">
<div class="row">
<div class="col-lg-8">
<div class="blog_left_sidebar">
{zz:list pagesize="3"}
<article class="row blog_item">
<div class="col-md-3">
<div class="blog_info text-right">
<ul class="blog_meta list">
<li><a>{$field['writer']}<i class="lnr lnr-user"></i></a></li>
<li><a>{:MyDate('Y-m-d',$field['create_time'])}<i class="lnr lnr-calendar-full"></i></a></li>
<li><a>{$field['view']}<i class="lnr lnr-eye"></i></a></li>
</ul>
</div>
</div>
<div class="col-md-9">
<div class="blog_post">
<img src="{$field['cover_path']}" alt="">
<div class="blog_details">
<a href="{$field['url']}">
<h2>{$field['title']}</h2></a>
<p>{:cn_substr($field['description'],400)}...</p>
<a href="{$field['url']}" class="primary_btn"><span>查看更多</span></a>
</div>
</div>
</div>
</article>
{/zz:list}
<nav class="blog-pagination justify-content-center d-flex">
{$pager}
</nav>
</div>
</div>
<div class="col-lg-4">
<div class="blog_right_sidebar">
<aside class="single_sidebar_widget search_widget">
<div class="input-group">
<form action="{:url('Article/search')}" style="width: 100%;">
<input type="text" value="{$kw}" name="kw" placeholder="输入关键字...回车键进行搜索" class="form-control" />
</form>
<!--<input type="text" class="form-control" placeholder="Search Posts">-->
</div><!-- /input-group -->
<div class="br"></div>
</aside>
<aside class="single_sidebar_widget popular_post_widget">
<h3 class="widget_title">热点新闻</h3>
{zz:arclist row="4" typeid="85" orderby="create_time desc"}
<div class="media post_item">
<img src="__IMG__/blog/popular-post/post{$i}.jpg" alt="post">
<div class="media-body">
<a href="{$field['url']}"><h3>{:cn_substr($field['title'],15)}...</h3></a>
<p>{:MyDate('Y-m-d',$field['create_time'])}</p>
</div>
</div>
{/zz:arclist}
<div class="br"></div>
</aside>
</div>
</div>
</div>
</div>
</section>
<!--================Blog Area =================-->
<style type="text/css">
.footer_area {
padding-top: 80px !important;
}
</style>
<!--================Footer Area =================-->
{include file="template/default/footer.html"}
<!--================End Footer Area =================-->
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="__JS__/jquery-3.2.1.min.js"></script>
<script src="__JS__/popper.js"></script>
<script src="__JS__/bootstrap.min.js"></script>
<script src="__JS__/stellar.js"></script>
<script src="/template/default/vendors/lightbox/simpleLightbox.min.js"></script>
<script src="/template/default/vendors/nice-select/js/jquery.nice-select.min.js"></script>
<script src="/template/default/vendors/isotope/imagesloaded.pkgd.min.js"></script>
<script src="/template/default/vendors/isotope/isotope-min.js"></script>
<script src="/template/default/vendors/owl-carousel/owl.carousel.min.js"></script>
<script src="__JS__/jquery.ajaxchimp.min.js"></script>
<script src="__JS__/mail-script.js"></script>
<script src="/template/default/vendors/counter-up/jquery.waypoints.min.js"></script>
<script src="/template/default/vendors/counter-up/jquery.counterup.min.js"></script>
<script src="__JS__/theme.js"></script>
</body>
</html>