修正一些错误

This commit is contained in:
liyukun 2021-07-27 23:24:03 +08:00
parent e10c7df9c8
commit 30b2a7df02
2 changed files with 84 additions and 123 deletions

View File

@ -7,20 +7,35 @@
{include file="public/head" /} {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> <script src="__LIB__/swiper/swiper.min.js"></script>
<style>.icon {width: 18px; height: 18px;vertical-align: -3px;fill: currentColor;overflow: hidden;}</style><style>html, body, #app {background-image: url('wp-content/uploads/2021/01/light_wool.png')!important;background-position: center center;background-attachment: fixed;}</style> <link rel="icon" href="https://www.lovestu.com/wp-content/uploads/2020/07/code.png" type="image/x-icon"> <style>
.icon {
width: 18px;
height: 18px;
vertical-align: -3px;
fill: currentColor;
overflow: hidden;
}
</style>
<style> <style>
:root { html, body, #app {
--Maincolor: #409EFF !important; background-image: url('{:web_config("logo")}')!important;
--MaincolorHover: #409EFF !important; background-position: center center;
--fontSelectedColor: #3390ff !important; background-attachment: fixed;
} }
#nprogress .bar { </style>
background: var(--Maincolor)!important; <link rel="icon" href="{:web_config("logo")}" type="image/x-icon">
} <style>
</style> :root {
--Maincolor: #409EFF !important;
--MaincolorHover: #409EFF !important;
--fontSelectedColor: #3390ff !important;
}
#nprogress .bar {
background: var(--Maincolor)!important;
}
</style>
</head> </head>
<body> <body>
<script>NProgress.start();</script> <script>NProgress.start();</script>
<div id="app"> <div id="app">
{include file="public/header" /} {include file="public/header" /}
@ -83,32 +98,33 @@
{/zz:list} {/zz:list}
</div> </div>
</div> </div>
<div class="post-list-page-plane"> <div class="post-list-page-plane">
<div class="list-plane-title"> <div class="list-plane-title">
<div class="index-tab-plane"> <div class="index-tab-plane">
<div class="index-tab-item index-tab-item-active" catid="0">最新文章</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="6">wordpress</div>
</div> <div class="index-tab-item" catid="24">JavaScript</div>
<script> <div class="index-tab-item" catid="8">绿化破解</div>
var nowid = $('.index-tab-item-active').attr('catid'); </div>
$('.index-tab-item').click(function () { <script>
if (nowid == $(this).attr('catid')) { var nowid = $('.index-tab-item-active').attr('catid');
return; $('.index-tab-item').click(function () {
} if (nowid == $(this).attr('catid')) {
nowid = $(this).attr('catid'); return;
paged = 2; }
$('.index-tab-item').removeClass('index-tab-item-active'); nowid = $(this).attr('catid');
$(this).addClass('index-tab-item-active'); paged = 2;
$('.post-list').html('<div class="post-item post-loading"><i class="far fa-circle-notch fa-spin"></i> 加载中</div>'); $('.index-tab-item').removeClass('index-tab-item-active');
$.post('https://www.lovestu.com/wp-admin/admin-ajax.php', { $(this).addClass('index-tab-item-active');
action: 'corepress_load_post_by_tabs', $('.post-list').html('<div class="post-item post-loading"><i class="far fa-circle-notch fa-spin"></i> 加载中</div>');
cat: $(this).attr('catid') $.post('https://www.lovestu.com/wp-admin/admin-ajax.php', {
}, function (data) { action: 'corepress_load_post_by_tabs',
$('.post-list').html(data); cat: $(this).attr('catid')
$("img").lazyload({effect: "fadeIn"}); }) }, function (data) {
}); $('.post-list').html(data);
</script> $("img").lazyload({effect: "fadeIn"}); })
});
</script>
</div> </div>
<ul class="post-list"> <ul class="post-list">
{zz:list orderby="create_time desc" type="where"} {zz:list orderby="create_time desc" type="where"}
@ -158,7 +174,7 @@
var max_page =6; var max_page =6;
$('.index-load-more-btn').click(() => { $('.index-load-more-btn').click(() => {
var btn_cloass = '.index-load-more-btn'; var btn_cloass = '.index-load-more-btn';
if (paged >= max_page) { if (paged > max_page) {
$(btn_cloass).text('到底啦'); $(btn_cloass).text('到底啦');
return; return;
} }
@ -182,102 +198,54 @@
</script> </script>
</div> </div>
</div> </div>
</div> </div>
<div class="sidebar"> <div class="sidebar">
<div class="sidebar-box-list"> <div class="sidebar-box-list">
<div class="aside-box">
<form class="search-form" action="https://www.lovestu.com" method="get" role="search">
<div class="search-form-input-plane">
<input type="text" class="search-keyword" name="s" placeholder="搜索内容" value="">
</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"> <div class="aside-box">
<h2 class="widget-title">热门阅读</h2> <h2 class="widget-title">热门阅读</h2>
{zz:arclist orderby="view desc"}
<div class="hot-post-widget-item"> <div class="hot-post-widget-item">
<div> <div>
<span class="hot-post-widget-item-num"> 1 </span> <span class="hot-post-widget-item-num">{$field['create_time']}</span>
<span class="hot-post-widget-item-title"> <span class="hot-post-widget-item-title">
<a href="corepress.html"> CorePress主题 v5.1.1 </a> <a href="corepress.html">{:cn_substr($field['title'],15)}...</a>
</span> </span>
</div> </div>
<div class="hot-post-widget-item-meta"> <div class="hot-post-widget-item-meta">
<div>2021-07-12</div> <div>{$field['create_time']}</div>
<div> <div>
<a href="category/php/wordpress.html"> wordpress </a> <a href="category/php/wordpress.html">{:cn_substr($field['title'],15)}...</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="category/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="category/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="category/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="category/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="category/front.html"> 前端 </a>
</div> </div>
</div> </div>
</div> </div>
{/zz:arclist}
</div> </div>
<div class="aside-box"> <div class="aside-box">
<h2 class="widget-title">标签云</h2> <h2 class="widget-title">标签云</h2>
<script src="wp-content/themes/CorePress/static/js/TagCloud.js"></script> <script src="__JS__/TagCloud.js"></script>
<div class="corepress-tag-cloud"> <div class="corepress-tag-cloud">
<div class="corepress-tag-container-tag1"></div> <div class="corepress-tag-container-tag1"></div>
</div> </div>
@ -520,8 +488,6 @@
</a> </a>
</div> </div>
</div> </div>
</div>
</div> </div>
<div class="frinds-links"> <div class="frinds-links">
<div class="list-plane-title"> <div class="list-plane-title">

View File

@ -32,10 +32,7 @@
</div> </div>
</div> </div>
<nav class="menu-footer-plane"> <nav class="menu-footer-plane">
<ul <ul id="menu-%e5%ba%95%e9%83%a8%e8%8f%9c%e5%8d%95" class="menu-footer-list">
id="menu-%e5%ba%95%e9%83%a8%e8%8f%9c%e5%8d%95"
class="menu-footer-list"
>
<li id="menu-item-306" class="menu-item menu-item-306"> <li id="menu-item-306" class="menu-item menu-item-306">
<a href="about.html">关于本站</a> <a href="about.html">关于本站</a>
</li> </li>
@ -46,9 +43,7 @@
</nav> </nav>
<div class="footer-info"> <div class="footer-info">
{:web_config("copyright")} {:web_config("copyright")}
<span class="theme-copyright" <span class="theme-copyright"><a href="corepress.html">CorePress Theme</a> </span>Powered by {:web_config("copyright")}
><a href="corepress.html">CorePress Theme</a> </span
>Powered by {:web_config("copyright")}
</div> </div>
<div class="footer-info"> <div class="footer-info">
<span class="footer-icp"><img class="ipc-icon" src="__IMG__/icp.svg" alt=""/><a href="javascript:;" target="_blank">{:web_config("icp")}</a></span> <span class="footer-icp"><img class="ipc-icon" src="__IMG__/icp.svg" alt=""/><a href="javascript:;" target="_blank">{:web_config("icp")}</a></span>