Giter Club home page Giter Club logo

licoy / wordpress-theme-puock Goto Github PK

View Code? Open in Web Editor NEW
2.1K 21.0 386.0 26.12 MB

:art: 一款基于WordPress开发的高颜值的自适应主题,支持白天与黑夜模式/无刷新加载/第三方登录等众多功能 | A high-value adaptive theme based on WordPress, supports light and dark modes, no refresh loading, etc.

Home Page: https://docs.puock.com

License: GNU General Public License v3.0

PHP 75.94% JavaScript 18.74% CSS 0.29% Less 5.03%
wordpress wordpress-theme theme bootstrap css javascript php7 php8 themes pjax

wordpress-theme-puock's Introduction

中文 | English

logo

介绍

cover

WordPress Theme - Puock

一款基于WordPress开发的高颜值的自适应主题,支持白天与黑夜模式。

Release-Version WordPress-Version PHP-Version
赞赏支持 支付宝捐赠 微信捐赠
Wechat Group



Puock WordPress Theme - A high-value adaptive theme based on WordPress | Product Hunt

配置截图

theme-options.png

安装

请到 发行版本 中进行下载最新版本,然后到WordPress管理后台中的「外观」-「主题」中点击「添加」,选择Puock的主题包进行上传安装并启用即可。

提示:为了防止主题不兼容,请在安装主题前进行数据备份,防止数据字段重复覆盖等情况发生。

重要:请不要直接克隆或直接下载仓库进行使用,请到发行版中进行下载使用

环境要求

  • WordPress >=6.0
  • PHP >=7.4

主题特性

  • 支持白天与暗黑模式
  • 全局无刷新加载
  • 支持博客、CMS、企业三种布局
  • 内置WP优化策略
  • 内置前台用户中心
  • 支持QQ / Github / Gitee / 微博登录
  • 支持缩略图伪静态
  • 全局顶部滚动公告
  • 图形及极验验证码支持
  • 自定义SMTP支持
  • 一键全站变灰
  • 网页压缩成一行
  • 后台防恶意登录
  • 内置出色的SEO功能
  • 评论ajax加载
  • 文章点赞、打赏、海报生成、分享
  • Twemoji集成
  • 丰富的广告位
  • 丰富的小工具
  • 自动百度链接提交
  • 众多页面模板(读者墙 / 归档 / 书籍推荐/ 站点导航 / 标签 / 站点地图等)
  • 众多短代码支持(下载 / 评论后可见 / 登录后可见 / 登录且验证邮箱可见 / 多种提示框 / Github卡片等)
  • 支持Dplayer播放器
  • 仿MacOS的代码风格及拷贝代码
  • Vue3+NaiveUI集成的高颜值后台配置
  • 文章多级目录生成
  • 侧边栏粘性滚动
  • WP缓存支持
  • 自定义主色调
  • LOGO扫光动画
  • ChatGPT及AI绘画支持
  • 更多特性更新请查阅版本发布说明:releases
  • 更多功能等你的提议

文档

  • 主题使用文档:立即使用
  • 建议或BUG反馈:立即进入
  • QQ/微信交流群:点我加入 (此群皆为大家提供交流使用的地方,有BUG请直接提交ISSUE)
  • 若您有任何建议或BUG发现,并且您也有解决或实现的思路,欢迎直接提交PR!

支持

趋势

Stargazers over time

鸣谢

开源协议

  • GPL V3.0
  • 请遵守开源协议,保留主题底部的署名

wordpress-theme-puock's People

Contributors

baddate avatar dependabot[bot] avatar echome123 avatar happykl-cn avatar liaocp666 avatar licoy avatar lvshujun0918 avatar miniwater avatar mmm25002500 avatar rankment avatar smallki-d avatar wenutu avatar wuyueerhao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wordpress-theme-puock's Issues

文章底部广告内容无法显示

使用后台设置中的文章底部广告,发现无法显示,然后在single.php文件中有看到文章顶部广告内容的是引入的ad文件夹中的page-top.php,引入代码的是 https://github.com/Licoy/wordpress-theme-puock/blob/master/single.php#L7

<?php get_template_part('ad/page','top') ?>

但是没有发现对文章底部广告内容的引入,我想底部广告应该是page-innerb.php这个文件,按照文章顶部内容的引入方法引入这句代码后发现依旧无法显示

<?php get_template_part('ad/page','innerb') ?>

创建页面无法访问

WordPress版本:5.6
主题版本号:v1.4
PHP版本:[选填]
问题阐述:

使用当前主题创建的页面,选择任何模板都会导致页面只能预览,发布前页面为 www.com/?page_id=79
image
发布后链接自动变为www.com/.html?导致无法访问,切换到自带的主题后,该页面的链接又变回www.com/?page_id=79又可以访问了。

获取最新文章 小工具 BUG

https://github.com/Licoy/wordpress-theme-puock/blob/master/inc/fun/widget.php

 $sql = "SELECT ID , post_title FROM $wpdb->posts WHERE post_type = 'post'
                AND post_status = 'publish' AND TO_DAYS(now()) - TO_DAYS(post_date) < {$days}
                ORDER BY ID DESC LIMIT 0 , {$nums} ";
        $posts = $wpdb->get_results($sql);
        $out = "";
        foreach ($posts as $post){
            $out .= '<div class="media-link mt20">
                    <h2 class="t-lg t-line-1" title="'.get_the_title($post).'">
                        <i class="czs-angle-right-l t-sm c-sub mr-1"></i>
                        <a class="a-link t-w-400 t-md" title="'.get_the_title($post).'"
                         href="'.get_permalink($post).'">'.get_the_title($post).'</a>
                    </h2>
                </div>';
        }

get_permalink($post) 获取不到连接

应该修改为 SELECT * FROM

建议添加外链转化为内链功能

建议添加外链转化为内链功能,这样可以减少权重的流失或者隐藏某些推荐链接。

//给外部链接加上跳转 https://zhang.ge/4683.html
add_filter('the_content','the_content_nofollow',999);
function the_content_nofollow($content)
{
    preg_match_all('/<a(.*?)href="(.*?)"(.*?)>/',$content,$matches);
    if($matches){
        foreach($matches[2] as $val){
            if(strpos($val,'://')!==false && strpos($val,home_url())===false && !preg_match('/\.(jpg|jepg|png|ico|bmp|gif|tiff)/i',$val)){
                $content=str_replace("href=\"$val\"", "href=\"".home_url()."/go/?url=$val\" ",$content);
            }
        }
    }
    return $content;
}
//评论链接新窗口
function commentauthor($comment_ID = 0) {
    $url    = get_comment_author_url( $comment_ID );
    $author = get_comment_author( $comment_ID );
    if ( empty( $url ) || 'http://' == $url )
    echo $author;
    else
    echo "<a href='".home_url()."/go/?url=$url' rel='external nofollow' target='_blank' class='url'>$author</a>";
}

使用文档:

  1. 新增跳转。在网站根目录新增一个文件夹,命名为 go,并在 go 文件夹下新增一个 index.php,内容如下:(一共 6 个模板,可以在 https://files.ryanjie.vercel.app/go 页面预览)

    模板 1
    <!-- https://zhang.ge/5086.html -->
    <?php
    if (
        strlen($_SERVER['REQUEST_URI']) > 384 ||
        strpos($_SERVER['REQUEST_URI'], "eval(") ||
        strpos($_SERVER['REQUEST_URI'], "base64")
    ) {
        @header("HTTP/1.1 414 Request-URI Too Long");
        @header("Status: 414 Request-URI Too Long");
        @header("Connection: Close");
        @exit;
    }
    //通过QUERY_STRING取得完整的传入数据,然后取得url=之后的所有值,兼容性更好
    $t_url = preg_replace('/^url=(.*)$/i', '$1', $_SERVER["QUERY_STRING"]);
    //数据处理
    if (!empty($t_url)) {
        //判断取值是否加密
        if ($t_url == base64_encode(base64_decode($t_url))) {
            $t_url =  base64_decode($t_url);
        }
        //对取值进行网址校验和判断
        preg_match('/^(http|https|thunder|qqdl|ed2k|Flashget|qbrowser):\/\//i', $t_url, $matches);
        if ($matches) {
            $url = $t_url;
            $title = '页面加载中,请稍候...';
        } else {
            preg_match('/\./i', $t_url, $matche);
            if ($matche) {
                $url = 'http://' . $t_url;
                $title = '页面加载中,请稍候...';
            } else {
                $url = 'http://' . $_SERVER['HTTP_HOST'];
                $title = '参数错误,正在返回首页...';
            }
        }
    } else {
        $title = '参数缺失,正在返回首页...';
        $url = 'http://' . $_SERVER['HTTP_HOST'];
    }
    ?>
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="robots" content="noindex, nofollow" />
        <meta charset="UTF-8">
        <link rel="shortcut icon" href="https://www.baidu.com/favicon.ico">
        <noscript>
            <meta http-equiv="refresh" content="1;url='<?php echo $url; ?>';"></noscript>
        <script>
            function link_jump() {
                //禁止其他网站使用我们的跳转页面
                var MyHOST = new RegExp("<?php echo $_SERVER['HTTP_HOST']; ?>");
                if (!MyHOST.test(document.referrer)) {
                    location.href = "http://" + MyHOST;
                }
                location.href = "<?php echo $url; ?>";
            }
            //延时0.5S跳转,可自行修改延时时间
            setTimeout(link_jump, 500);
            //延时50S关闭跳转页面,用于文件下载后不会关闭跳转页的问题
            setTimeout(function() {
                window.opener = null;
                window.close();
            }, 50000);
        </script>
        <title><?php echo $title; ?></title>
        <style type="text/css">a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline } body { background: #3498db } #loader-container { width: 188px; height: 188px; color: #fff; margin: 0 auto; position: absolute; top: 50%; left: 50%; margin-right: -50%; transform: translate(-50%, -50%); border: 5px solid #3498db; border-radius: 50%; -webkit-animation: borderScale 1s infinite ease-in-out; animation: borderScale 1s infinite ease-in-out } #loadingText { font-family: "Microsoft YaHei", Helvetica, Arial, Lucida Grande, Tahoma, sans-serif, Raleway, sans-serif; font-size: 1.4em; position: absolute; top: 50%; left: 50%; margin-right: -50%; transform: translate(-50%, -50%) } @-webkit-keyframes borderScale { 0% { border: 5px solid #fff } 50% { border: 25px solid #3498db } 100% { border: 5px solid #fff } } @keyframes borderScale { 0% { border: 5px solid #fff } 50% { border: 25px solid #3498db } 100% { border: 5px solid #fff } }
        </style>
      </head>
      <body>
        <div id="loader-container">
          <p id="loadingText">页面加载中...</p></div>
      </body>
    </html>
    模板 2
    <!-- https://zhang.ge/5086.html -->
     <?php
     if (
         strlen($_SERVER['REQUEST_URI']) > 384 ||
         strpos($_SERVER['REQUEST_URI'], "eval(") ||
         strpos($_SERVER['REQUEST_URI'], "base64")
     ) {
         @header("HTTP/1.1 414 Request-URI Too Long");
         @header("Status: 414 Request-URI Too Long");
         @header("Connection: Close");
         @exit;
     }
     //通过QUERY_STRING取得完整的传入数据,然后取得url=之后的所有值,兼容性更好
     $t_url = preg_replace('/^url=(.*)$/i', '$1', $_SERVER["QUERY_STRING"]);
    
     //数据处理
     if (!empty($t_url)) {
         //判断取值是否加密
         if ($t_url == base64_encode(base64_decode($t_url))) {
             $t_url =  base64_decode($t_url);
         }
         //对取值进行网址校验和判断
         preg_match('/^(http|https|thunder|qqdl|ed2k|Flashget|qbrowser):\/\//i', $t_url, $matches);
         if ($matches) {
             $url = $t_url;
             $title = '页面加载中,请稍候...';
         } else {
             preg_match('/\./i', $t_url, $matche);
             if ($matche) {
                 $url = 'http://' . $t_url;
                 $title = '页面加载中,请稍候...';
             } else {
                 $url = 'http://' . $_SERVER['HTTP_HOST'];
                 $title = '参数错误,正在返回首页...';
             }
         }
     } else {
         $title = '参数缺失,正在返回首页...';
         $url = 'http://' . $_SERVER['HTTP_HOST'];
     }
     ?>
     <html>
    
     <head>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <meta name="robots" content="noindex, nofollow" />
         <meta charset="UTF-8">
         <link rel="shortcut icon" href="https://www.baidu.com/favicon.ico">
         <noscript>
             <meta http-equiv="refresh" content="1;url='<?php echo $url; ?>';"></noscript>
         <script>
             function link_jump() {
                 //禁止其他网站使用我们的跳转页面
                 var MyHOST = new RegExp("<?php echo $_SERVER['HTTP_HOST']; ?>");
                 if (!MyHOST.test(document.referrer)) {
                     location.href = "http://" + MyHOST;
                 }
                 location.href = "<?php echo $url; ?>";
             }
             //延时0.5S跳转,可自行修改延时时间
             setTimeout(link_jump, 500);
             //延时50S关闭跳转页面,用于文件下载后不会关闭跳转页的问题
             setTimeout(function() {
                 window.opener = null;
                 window.close();
             }, 50000);
         </script>
         <title><?php echo $title; ?></title>
         <style type="text/css">body { background: #555 } .loading { -webkit-animation: fadein 2s; -moz-animation: fadein 2s; -o-animation: fadein 2s; animation: fadein 2s } @-moz-keyframes fadein { from { opacity: 0 } to { opacity: 1 } } @-webkit-keyframes fadein { from { opacity: 0 } to { opacity: 1 } } @-o-keyframes fadein { from { opacity: 0 } to { opacity: 1 } } @keyframes fadein { from { opacity: 0 } to { opacity: 1 } } .spinner-wrapper { position: absolute; top: 0; left: 0; z-index: 300; height: 100%; min-width: 100%; min-height: 100%; background: rgba(255, 255, 255, 0.93) } .spinner-text { position: absolute; top: 45%; left: 50%; margin-left: -100px; margin-top: 2px; color: #000; letter-spacing: 1px; font-size: 20px; font-family: Arial } .spinner { position: absolute; top: 45%; left: 50%; display: block; margin-left: -160px; width: 1px; height: 1px; border: 20px solid rgba(255, 0, 0, 1); -webkit-border-radius: 50px; -moz-border-radius: 50px; border-radius: 50px; border-left-color: transparent; border-right-color: transparent; -webkit-animation: spin 1.5s infinite; -moz-animation: spin 1.5s infinite; animation: spin 1.5s infinite } @-webkit-keyframes spin { 0%, 100% { -webkit-transform: rotate(0deg) scale(1) } 50% { -webkit-transform: rotate(720deg) scale(0.6) } } @-moz-keyframes spin { 0%, 100% { -moz-transform: rotate(0deg) scale(1) } 50% { -moz-transform: rotate(720deg) scale(0.6) } } @-o-keyframes spin { 0%, 100% { -o-transform: rotate(0deg) scale(1) } 50% { -o-transform: rotate(720deg) scale(0.6) } } @keyframes spin { 0%, 100% { transform: rotate(0deg) scale(1) } 50% { transform: rotate(720deg) scale(0.6) } }
         </style>
       </head>
    
       <body>
         <div class="loading">
           <div class="spinner-wrapper">
             <span class="spinner-text">页面加载中,请稍候...</span>
             <span class="spinner"></span>
           </div>
         </div>
       </body>
     </html>
    模板 3
    <!-- https://zhang.ge/5086.html -->
         <?php
         if (
             strlen($_SERVER['REQUEST_URI']) > 384 ||
             strpos($_SERVER['REQUEST_URI'], "eval(") ||
             strpos($_SERVER['REQUEST_URI'], "base64")
         ) {
             @header("HTTP/1.1 414 Request-URI Too Long");
             @header("Status: 414 Request-URI Too Long");
             @header("Connection: Close");
             @exit;
         }
         //通过QUERY_STRING取得完整的传入数据,然后取得url=之后的所有值,兼容性更好
         $t_url = preg_replace('/^url=(.*)$/i', '$1', $_SERVER["QUERY_STRING"]);
    
         //数据处理
         if (!empty($t_url)) {
             //判断取值是否加密
             if ($t_url == base64_encode(base64_decode($t_url))) {
                 $t_url =  base64_decode($t_url);
             }
             //对取值进行网址校验和判断
             preg_match('/^(http|https|thunder|qqdl|ed2k|Flashget|qbrowser):\/\//i', $t_url, $matches);
             if ($matches) {
                 $url = $t_url;
                 $title = '页面加载中,请稍候...';
             } else {
                 preg_match('/\./i', $t_url, $matche);
                 if ($matche) {
                     $url = 'http://' . $t_url;
                     $title = '页面加载中,请稍候...';
                 } else {
                     $url = 'http://' . $_SERVER['HTTP_HOST'];
                     $title = '参数错误,正在返回首页...';
                 }
             }
         } else {
             $title = '参数缺失,正在返回首页...';
             $url = 'http://' . $_SERVER['HTTP_HOST'];
         }
         ?>
         <html>
    
         <head>
             <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
             <meta name="robots" content="noindex, nofollow" />
             <meta charset="UTF-8">
             <link rel="shortcut icon" href="https://www.baidu.com/favicon.ico">
             <noscript>
                 <meta http-equiv="refresh" content="1;url='<?php echo $url; ?>';"></noscript>
             <script>
                 function link_jump() {
                     //禁止其他网站使用我们的跳转页面
                     var MyHOST = new RegExp("<?php echo $_SERVER['HTTP_HOST']; ?>");
                     if (!MyHOST.test(document.referrer)) {
                         location.href = "http://" + MyHOST;
                     }
                     location.href = "<?php echo $url; ?>";
                 }
                 //延时0.5S跳转,可自行修改延时时间
                 setTimeout(link_jump, 500);
                 //延时50S关闭跳转页面,用于文件下载后不会关闭跳转页的问题
                 setTimeout(function() {
                     window.opener = null;
                     window.close();
                 }, 50000);
             </script>
             <title><?php echo $title; ?></title>
             <style type="text/css">a { background: #13a3a5; padding: 5px; margin: 10px; display: block; cursor: pointer; font-size: 1.5em; float: left; text-decoration: none; font-size: 18px; color: #fff } a, body { font-weight: 100 } body { -webkit-tap-highlight-color: transparent; background-color: #222428; font-size: 100%; font-family: Open Sans; height: 100% } .loader { top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); -mos-transform: translate(-50%, -50%); transform: translate(-50%, -50%); text-align: center; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: default; width: 80%; overflow: visible } .loader, .loader div { position: absolute; height: 36px } .loader div { width: 30px; margin: 0 10px; opacity: 0; animation: move 2s linear infinite; -o-animation: move 2s linear infinite; -moz-animation: move 2s linear infinite; -webkit-animation: move 2s linear infinite; transform: rotate(180deg); -o-transform: rotate(180deg); -moz-transform: rotate(180deg); -webkit-transform: rotate(180deg); color: #fff; font-size: 3em } .loader div:nth-child(8):before { background: #db2f00 } .loader div:nth-child(8):before, .loader div:nth-child(9):before { content: ''; position: absolute; bottom: -15px; left: 0; width: 30px; height: 30px; border-radius: 100% } .loader div:nth-child(9):before { background: #f2f2f2 } .loader div:nth-child(10):before { bottom: -15px; height: 30px; background: #13a3a5 } .loader div:after, .loader div:nth-child(10):before { content: ''; position: absolute; left: 0; width: 30px; border-radius: 100% } .loader div:after { bottom: -40px; height: 5px; background: #39312d } .loader div:nth-child(2) { animation-delay: .2s; -o-animation-delay: .2s; -moz-animation-delay: .2s; -webkit-animation-delay: .2s } .loader div:nth-child(3) { animation-delay: .4s; -o-animation-delay: .4s; -webkit-animation-delay: .4s } .loader div:nth-child(4) { animation-delay: .6s; -o-animation-delay: .6s; -moz-animation-delay: .6s; -webkit-animation-delay: .6s } .loader div:nth-child(5) { animation-delay: .8s; -o-animation-delay: .8s; -moz-animation-delay: .8s; -webkit-animation-delay: .8s } .loader div:nth-child(6) { animation-delay: 1s; -o-animation-delay: 1s; -moz-animation-delay: 1s; -webkit-animation-delay: 1s } .loader div:nth-child(7) { animation-delay: 1.2s; -o-animation-delay: 1.2s; -moz-animation-delay: 1.2s; -webkit-animation-delay: 1.2s } .loader div:nth-child(8) { animation-delay: 1.4s; -o-animation-delay: 1.4s; -moz-animation-delay: 1.4s; -webkit-animation-delay: 1.4s } .loader div:nth-child(9) { animation-delay: 1.6s; -o-animation-delay: 1.6s; -moz-animation-delay: 1.6s; -webkit-animation-delay: 1.6s } .loader div:nth-child(10) { animation-delay: 1.8s; -o-animation-delay: 1.8s; -moz-animation-delay: 1.8s; -webkit-animation-delay: 1.8s } @keyframes move { 0% { right: 0; opacity: 0 } 35% { right: 41% } 35%, 65% { -webkit-transform: rotate(0); transform: rotate(0); opacity: 1 } 65% { right: 59% } to { right: 100%; -webkit-transform: rotate(-180deg); transform: rotate(-180deg) } } @-webkit-keyframes move { 0%, to { opacity: 0 } 0% { right: 0 } 35% { right: 41% } 35%, 75% { -webkit-transform: rotate(0); transform: rotate(0); opacity: 1 } 75% { right: 59% } to { right: 100%; -webkit-transform: rotate(-180deg); transform: rotate(-180deg); opacity: 0 } }
         </style>
     </head>
    
     <body class="ie8" style="">
         <div class="loader">
         <div>L</div>
         <div>O</div>
         <div>A</div>
         <div>D</div>
         <div>I</div>
         <div>N</div>
         <div>G</div>
         <div></div>
         <div></div>
         <div></div>
         </div>
     </body>
     </html>
    模板 4
    <!-- https://zhang.ge/5086.html -->
         <?php
         if (
             strlen($_SERVER['REQUEST_URI']) > 384 ||
             strpos($_SERVER['REQUEST_URI'], "eval(") ||
             strpos($_SERVER['REQUEST_URI'], "base64")
         ) {
             @header("HTTP/1.1 414 Request-URI Too Long");
             @header("Status: 414 Request-URI Too Long");
             @header("Connection: Close");
             @exit;
         }
         //通过QUERY_STRING取得完整的传入数据,然后取得url=之后的所有值,兼容性更好
         $t_url = preg_replace('/^url=(.*)$/i', '$1', $_SERVER["QUERY_STRING"]);
    
         //数据处理
         if (!empty($t_url)) {
             //判断取值是否加密
             if ($t_url == base64_encode(base64_decode($t_url))) {
                 $t_url =  base64_decode($t_url);
             }
             //对取值进行网址校验和判断
             preg_match('/^(http|https|thunder|qqdl|ed2k|Flashget|qbrowser):\/\//i', $t_url, $matches);
             if ($matches) {
                 $url = $t_url;
                 $title = '页面加载中,请稍候...';
             } else {
                 preg_match('/\./i', $t_url, $matche);
                 if ($matche) {
                     $url = 'http://' . $t_url;
                     $title = '页面加载中,请稍候...';
                 } else {
                     $url = 'http://' . $_SERVER['HTTP_HOST'];
                     $title = '参数错误,正在返回首页...';
                 }
             }
         } else {
             $title = '参数缺失,正在返回首页...';
             $url = 'http://' . $_SERVER['HTTP_HOST'];
         }
         ?>
         <html>
    
         <head>
             <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
             <meta name="robots" content="noindex, nofollow" />
             <meta charset="UTF-8">
             <link rel="shortcut icon" href="https://www.baidu.com/favicon.ico">
             <noscript>
                 <meta http-equiv="refresh" content="1;url='<?php echo $url; ?>';"></noscript>
             <script>
                 function link_jump() {
                     //禁止其他网站使用我们的跳转页面
                     var MyHOST = new RegExp("<?php echo $_SERVER['HTTP_HOST']; ?>");
                     if (!MyHOST.test(document.referrer)) {
                         location.href = "http://" + MyHOST;
                     }
                     location.href = "<?php echo $url; ?>";
                 }
                 //延时0.5S跳转,可自行修改延时时间
                 setTimeout(link_jump, 500);
                 //延时50S关闭跳转页面,用于文件下载后不会关闭跳转页的问题
                 setTimeout(function() {
                     window.opener = null;
                     window.close();
                 }, 50000);
             </script>
             <title><?php echo $title; ?></title>
             <style type="text/css">* { margin: 0; padding: 0; border: 0 } body, html { min-height: 100% } body { background: radial-gradient(#eee, #444) } .loader { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; width: 175px; height: 100px } .loader span { display: block; background: #ccc; width: 7px; height: 10%; border-radius: 14px; margin-right: 5px; float: left; margin-top: 25% } .loader span:last-child { margin-right: 0 } .loader span:nth-child(1) { animation: load 2.5s 1.4s infinite linear } .loader span:nth-child(2) { animation: load 2.5s 1.2s infinite linear } .loader span:nth-child(3) { animation: load 2.5s 1s infinite linear } .loader span:nth-child(4) { animation: load 2.5s .8s infinite linear } .loader span:nth-child(5) { animation: load 2.5s .6s infinite linear } .loader span:nth-child(6) { animation: load 2.5s .4s infinite linear } .loader span:nth-child(7) { animation: load 2.5s .2s infinite linear } .loader span:nth-child(8) { animation: load 2.5s 0s infinite linear } .loader span:nth-child(9) { animation: load 2.5s .2s infinite linear } .loader span:nth-child(10) { animation: load 2.5s .4s infinite linear } .loader span:nth-child(11) { animation: load 2.5s .6s infinite linear } .loader span:nth-child(12) { animation: load 2.5s .8s infinite linear } .loader span:nth-child(13) { animation: load 2.5s 1s infinite linear } .loader span:nth-child(14) { animation: load 2.5s 1.2s infinite linear } .loader span:nth-child(15) { animation: load 2.5s 1.4s infinite linear } @keyframes load { 0% { background: #ccc; margin-top: 25%; height: 10% } 50% { background: #444; height: 100%; margin-top: 0 } 100% { background: #ccc; height: 10%; margin-top: 25% } }
         </style>
     </head>
    
     <body>
         <div class="loader">
         <span></span>
         <span></span>
         <span></span>
         <span></span>
         <span></span>
         <span></span>
         <span></span>
         <span></span>
         <span></span>
         <span></span>
         <span></span>
         <span></span>
         <span></span>
         <span></span>
         <span></span>
         </div>
     </body>
     </html>
    模板 5
    <!-- https://zhang.ge/5086.html -->
     <?php
     if (
         strlen($_SERVER['REQUEST_URI']) > 384 ||
         strpos($_SERVER['REQUEST_URI'], "eval(") ||
         strpos($_SERVER['REQUEST_URI'], "base64")
     ) {
         @header("HTTP/1.1 414 Request-URI Too Long");
         @header("Status: 414 Request-URI Too Long");
         @header("Connection: Close");
         @exit;
     }
     //通过QUERY_STRING取得完整的传入数据,然后取得url=之后的所有值,兼容性更好
     $t_url = preg_replace('/^url=(.*)$/i', '$1', $_SERVER["QUERY_STRING"]);
    
     //数据处理
     if (!empty($t_url)) {
         //判断取值是否加密
         if ($t_url == base64_encode(base64_decode($t_url))) {
             $t_url =  base64_decode($t_url);
         }
         //对取值进行网址校验和判断
         preg_match('/^(http|https|thunder|qqdl|ed2k|Flashget|qbrowser):\/\//i', $t_url, $matches);
         if ($matches) {
             $url = $t_url;
             $title = '页面加载中,请稍候...';
         } else {
             preg_match('/\./i', $t_url, $matche);
             if ($matche) {
                 $url = 'http://' . $t_url;
                 $title = '页面加载中,请稍候...';
             } else {
                 $url = 'http://' . $_SERVER['HTTP_HOST'];
                 $title = '参数错误,正在返回首页...';
             }
         }
     } else {
         $title = '参数缺失,正在返回首页...';
         $url = 'http://' . $_SERVER['HTTP_HOST'];
     }
     ?>
     <html>
    
     <head>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <meta name="robots" content="noindex, nofollow" />
         <meta charset="UTF-8">
         <link rel="shortcut icon" href="https://www.baidu.com/favicon.ico">
         <noscript>
             <meta http-equiv="refresh" content="1;url='<?php echo $url; ?>';"></noscript>
         <script>
             function link_jump() {
                 //禁止其他网站使用我们的跳转页面
                 var MyHOST = new RegExp("<?php echo $_SERVER['HTTP_HOST']; ?>");
                 if (!MyHOST.test(document.referrer)) {
                     location.href = "http://" + MyHOST;
                 }
                 location.href = "<?php echo $url; ?>";
             }
             //延时0.5S跳转,可自行修改延时时间
             setTimeout(link_jump, 500);
             //延时50S关闭跳转页面,用于文件下载后不会关闭跳转页的问题
             setTimeout(function() {
                 window.opener = null;
                 window.close();
             }, 50000);
         </script>
         <title><?php echo $title; ?></title>
         <style type="text/css">html { overflow: hidden } html, html body { height: 100%; min-height: 100% } html body { background: #222428; background-size: 163px; font: 14px/21px Monaco, sans-serif; color: #999; font-smoothing: antialiased; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; text-size-adjust: 100% } html body a, html body a:visited { text-decoration: none; color: #ff805f } html body h4 { margin: 0; color: #666 } .scene { width: 100%; height: 100%; -webkit-perspective: 600; perspective: 600; display: flex; align-items: center; justify-content: center } .scene svg { width: 15pc; height: 15pc } .dc-logo { position: fixed; right: 10px; bottom: 10px } .dc-logo:hover svg { -webkit-transform-origin: 50% 50%; transform-origin: 50% 50%; -webkit-animation: arrow-spin 2.5s 0s cubic-bezier(0.165, 0.84, 0.44, 1) infinite; animation: arrow-spin 2.5s 0s cubic-bezier(0.165, 0.84, 0.44, 1) infinite } .dc-logo:hover:hover:before { content: '\2764'; color: #00fffe; left: -70px } .dc-logo:hover:hover:after, .dc-logo:hover:hover:before { padding: 6px; font: 10px/1 Monaco, sans-serif; font-size: 10px; text-transform: uppercase; position: absolute; top: -30px; white-space: nowrap; z-index: 20px; box-shadow: 0 0 4px #222; background: rgba(0, 0, 0, .4) } .dc-logo:hover:hover:after { content: 'Digital Craft'; color: #6e6f71; right: 0; background-image: none } @keyframes arrow-spin { 50% { -webkit-transform: rotateY(360deg); transform: rotateY(360deg) } }
         </style>
     </head>
    
     <body>
         <div class="scene">
         <svg version="1.1" id="dc-spinner" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width: "38" height: "38" viewbox="0 0 38 38" preserveaspectratio="xMinYMin meet">
             <text x="14" y="21" font-family="Monaco" font-size="2px" style="letter-spacing:0.6" fill="grey">LOADING
             <animate attributename="opacity" values="0;1;0" dur="1.8s" repeatcount="indefinite" /></text>
             <path fill="#373a42" d="M20,35c-8.271,0-15-6.729-15-15S11.729,5,20,5s15,6.729,15,15S28.271,35,20,35z M20,5.203 C11.841,5.203,5.203,11.841,5.203,20c0,8.159,6.638,14.797,14.797,14.797S34.797,28.159,34.797,20 C34.797,11.841,28.159,5.203,20,5.203z"></path>
             <path fill="#373a42" d="M20,33.125c-7.237,0-13.125-5.888-13.125-13.125S12.763,6.875,20,6.875S33.125,12.763,33.125,20 S27.237,33.125,20,33.125z M20,7.078C12.875,7.078,7.078,12.875,7.078,20c0,7.125,5.797,12.922,12.922,12.922 S32.922,27.125,32.922,20C32.922,12.875,27.125,7.078,20,7.078z"></path>
             <path fill="#2AA198" stroke="#2AA198" stroke-width="0.6027" stroke-miterlimit="10" d="M5.203,20 c0-8.159,6.638-14.797,14.797-14.797V5C11.729,5,5,11.729,5,20s6.729,15,15,15v-0.203C11.841,34.797,5.203,28.159,5.203,20z">
             <animatetransform attributename="transform" type="rotate" from="0 20 20" to="360 20 20" calcmode="spline" keysplines="0.4, 0, 0.2, 1" keytimes="0;1" dur="2s" repeatcount="indefinite" /></path>
             <path fill="#859900" stroke="#859900" stroke-width="0.2027" stroke-miterlimit="10" d="M7.078,20 c0-7.125,5.797-12.922,12.922-12.922V6.875C12.763,6.875,6.875,12.763,6.875,20S12.763,33.125,20,33.125v-0.203 C12.875,32.922,7.078,27.125,7.078,20z">
             <animatetransform attributename="transform" type="rotate" from="0 20 20" to="360 20 20" dur="1.8s" repeatcount="indefinite" /></path>
         </svg>
         </div>
     </body>
     </html>
    模板 6
    <!-- https://zhang.ge/5086.html -->
     <?php
     if (
         strlen($_SERVER['REQUEST_URI']) > 384 ||
         strpos($_SERVER['REQUEST_URI'], "eval(") ||
         strpos($_SERVER['REQUEST_URI'], "base64")
     ) {
         @header("HTTP/1.1 414 Request-URI Too Long");
         @header("Status: 414 Request-URI Too Long");
         @header("Connection: Close");
         @exit;
     }
     //通过QUERY_STRING取得完整的传入数据,然后取得url=之后的所有值,兼容性更好
     $t_url = preg_replace('/^url=(.*)$/i', '$1', $_SERVER["QUERY_STRING"]);
    
     //数据处理
     if (!empty($t_url)) {
         //判断取值是否加密
         if ($t_url == base64_encode(base64_decode($t_url))) {
             $t_url =  base64_decode($t_url);
         }
         //对取值进行网址校验和判断
         preg_match('/^(http|https|thunder|qqdl|ed2k|Flashget|qbrowser):\/\//i', $t_url, $matches);
         if ($matches) {
             $url = $t_url;
             $title = '页面加载中,请稍候...';
         } else {
             preg_match('/\./i', $t_url, $matche);
             if ($matche) {
                 $url = 'http://' . $t_url;
                 $title = '页面加载中,请稍候...';
             } else {
                 $url = 'http://' . $_SERVER['HTTP_HOST'];
                 $title = '参数错误,正在返回首页...';
             }
         }
     } else {
         $title = '参数缺失,正在返回首页...';
         $url = 'http://' . $_SERVER['HTTP_HOST'];
     }
     ?>
     <html>
    
     <head>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <meta name="robots" content="noindex, nofollow" />
         <meta charset="UTF-8">
         <link rel="shortcut icon" href="https://www.baidu.com/favicon.ico">
         <noscript>
             <meta http-equiv="refresh" content="1;url='<?php echo $url; ?>';"></noscript>
         <script>
             function link_jump() {
                 //禁止其他网站使用我们的跳转页面
                 var MyHOST = new RegExp("<?php echo $_SERVER['HTTP_HOST']; ?>");
                 if (!MyHOST.test(document.referrer)) {
                     location.href = "http://" + MyHOST;
                 }
                 location.href = "<?php echo $url; ?>";
             }
             //延时0.5S跳转,可自行修改延时时间
             setTimeout(link_jump, 500);
             //延时50S关闭跳转页面,用于文件下载后不会关闭跳转页的问题
             setTimeout(function() {
                 window.opener = null;
                 window.close();
             }, 50000);
         </script>
         <title><?php echo $title; ?></title>
         <style type="text/css">body { margin: 0; height: 100vh; display: flex; align-items: center; justify-content: center; background: #222428 } .container { width: 8em; height: 1em; font-size: 35px; display: flex; justify-content: space-between } .container span { width: 1em; height: 1em; --duration: 1.5s } .girl { animation: slide var(--duration) ease-in-out infinite alternate } @keyframes slide { 0% { transform: translateX(0); filter: brightness(1) } to { transform: translatex(6.75em); filter: brightness(1.45) } } .boys { width: 6em; display: flex; justify-content: space-between } .boys span { animation: var(--duration) ease-in-out infinite alternate } .boys span:nth-child(1) { animation-name: jump-off-1 } .boys span:nth-child(2) { animation-name: jump-off-2 } .boys span:nth-child(3) { animation-name: jump-off-3 } .boys span:nth-child(4) { animation-name: jump-off-4 } @keyframes jump-off-1 { 0%, 15% { transform: rotate(0deg) } 35%, to { transform-origin: -50% center; transform: rotate(-180deg) } } @keyframes jump-off-2 { 0%, 30% { transform: rotate(0deg) } 50%, to { transform-origin: -50% center; transform: rotate(-180deg) } } @keyframes jump-off-3 { 0%, 45% { transform: rotate(0deg) } 65%, to { transform-origin: -50% center; transform: rotate(-180deg) } } @keyframes jump-off-4 { 0%, 60% { transform: rotate(0deg) } 80%, to { transform-origin: -50% center; transform: rotate(-180deg) } } .container span:before { content: ''; position: absolute; width: inherit; height: inherit; border-radius: 15%; box-shadow: 0 0 .1em rgba(0, 0, 0, .3) } .girl:before { background-color: hotpink } .boys span:before { background-color: #1e90ff; animation: var(--duration) ease-in-out infinite alternate } .boys span:nth-child(1):before { filter: brightness(1); animation-name: jump-down-1 } .boys span:nth-child(2):before { filter: brightness(1.15); animation-name: jump-down-2 } .boys span:nth-child(3):before { filter: brightness(1.3); animation-name: jump-down-3 } .boys span:nth-child(4):before { filter: brightness(1.45); animation-name: jump-down-4 } @keyframes jump-down-1 { 5% { transform: scale(1, 1) } 15% { transform-origin: center bottom; transform: scale(1.3, 0.7) } 20%, 25% { transform-origin: center bottom; transform: scale(0.8, 1.4) } 40% { transform-origin: center top; transform: scale(1.3, 0.7) } 55%, to { transform: scale(1, 1) } } @keyframes jump-down-2 { 20% { transform: scale(1, 1) } 30% { transform-origin: center bottom; transform: scale(1.3, 0.7) } 35%, 40% { transform-origin: center bottom; transform: scale(0.8, 1.4) } 55% { transform-origin: center top; transform: scale(1.3, 0.7) } 70%, to { transform: scale(1, 1) } } @keyframes jump-down-3 { 35% { transform: scale(1, 1) } 45% { transform-origin: center bottom; transform: scale(1.3, 0.7) } 50%, 55% { transform-origin: center bottom; transform: scale(0.8, 1.4) } 70% { transform-origin: center top; transform: scale(1.3, 0.7) } 85%, to { transform: scale(1, 1) } } @keyframes jump-down-4 { 50% { transform: scale(1, 1) } 60% { transform-origin: center bottom; transform: scale(1.3, 0.7) } 65%, 70% { transform-origin: center bottom; transform: scale(0.8, 1.4) } 85% { transform-origin: center top; transform: scale(1.3, 0.7) } to { transform: scale(1, 1) } }
         </style>
     </head>
    
     <body>
         <div class="container">
         <span class="girl"></span>
         <div class="boys">
             <span></span>
             <span></span>
             <span></span>
             <span></span>
         </div>
         </div>
     </body>
     </html>
  2. 新增 robots 规则。为了防止搜索引擎抓取这种跳转链接,我们可以在 robots.txt 里面新增禁止抓取/go 的规则:

    User-agent: *
    Disallow:
    Disallow: /wp-admin/
    Disallow: /go/
    Sitemap: https://www.baidu.com/sitemap.xml
  3. 设置伪静态。Nginx 伪静态规则:

    rewrite ^/go/(.*)$ /go.php?url=$1 last; #注意go.php的实际路径,默认为网站根目录

GrAvatar加载源 切换无效。

今天博客中的头像全部加载不出来,我才知道一直以来博客都是加载的 secure.gravatar.com 官方源的头像。
但是我在主题设置里面一直设置的是官方CN的SSL源。

在主题设置里面切换 CN、loli、v2ex都无效。

点进大佬的博客也发现全部加载的是 secure.gravatar.com的头像。
image

希望大佬能够修复。

使用 get_author_posts_url 函数可以得到 wordpress 后台的用户名登录凭据

WordPress版本:5.6
主题版本号:1.4
PHP版本:[选填] 7.4
问题阐述:在文章界面版权声明中使用 get_author_posts_url 函数获取文章作者链接,从中可以得到 wordpress 后台的用户名登录凭据。


<div><span class="font-weight-bold"><?php _e('版权声明:', PUOCK) ?></span><?php _e('本站原创文章,由', PUOCK) ?><a class="a-link"
href="<?php global $authordata;if($authordata){echo get_author_posts_url( $authordata->ID,
$authordata->user_nicename );} ?>"><?php the_author() ?></a><?php the_date('Y-m-d') ?><?php
_e('发表,', PUOCK) ?><?php _e('共计', PUOCK) ?><?php echo count_words('') ?><?php _e('字。', PUOCK) ?></div>

在主题的文章页面的版权声明中使用 get_author_posts_url 函数获取文章作者链接,从中可以得到 wordpress 后台用户名登录凭据。为了网站安全,建议还是更换为 the_author_meta( 'user_url ) 函数返回文章作者的站点链接。

一些建议

感谢分享那么优秀的主题,不过我觉得手机上浏览时感觉还是有一点单薄,希望手机上显示的文章卡片中能显示一点文章的摘要/发布日期/标签等信息而不是仅仅一张图一个标题,还有就是如果能在手机上显示一下小工具就更好了。
另外,我觉得还可以加入回到页面顶部的固定按钮,像图里这样
image
这两个按钮分别是隐藏边栏和回到顶部。
再次感谢作者的分享。

无刷新加载和分类显示模块增加分类标题

是否为已有功能:否
建议阐述:

大神,cms布局最新文章模块底部能否增加“点击加载更多”或页码,cms布局分两栏显示模块能否增加分类标题且支持点击到分类,页面无刷新加载在哪里开启?网站:www.kuqutan.com

几处小建议

  • 增加数学公式显示

引用MathJaxV3,放在footer.php开始处

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script>
MathJax = {
  tex: {
      inlineMath: [['<span class="katex-eq" data-katex-display="false">', '</span>'], ['\\(', '\\)']],
      inlineMath: [['$', '$'], ['\\(', '\\)']],
      displayMath: [['[Latex]', '[/Latex]'], ['$$', '$$'], ['\\[', '\\]']]
  }
};
</script>
  • 添加引用块显示

添加在主题根目录/assets/css/style.css

白昼模式

blockquote{padding-left: 1em;margin: 1em 0em 1em 0;font-weight: 400;border-left: 4px solid rgba(0, 0, 0, .12);background-color:#f8f8f9}

黑暗模式

.puock-dark blockquote{border-color: rgba(255, 255, 255, .2);background-color:#2f3840}
  • 一言侧边栏小工具

添加自定义HTML

html代码如下,代码出处一言

<p id="hitokoto"><a href="#" id="hitokoto_text">:D 获取中...</a></p>
<script>
  fetch('https://v1.hitokoto.cn')
    .then(response => response.json())
    .then(data => {
      const hitokoto = document.getElementById('hitokoto_text')
      hitokoto.href = 'https://hitokoto.cn/?uuid=' + data.uuid
      hitokoto.innerText = data.hitokoto
    })
    .catch(console.error)
</script>

手机版导航菜单点击无效

WordPress版本:5.7
主题版本号:最新版
PHP版本:[选填]
问题阐述:电脑版菜单点击没问题,手机版点击无效(是我加了图标的原因?不清楚)

建议添加文章目录以及开启 XML-RPC 服务

  1. 文章目录对于长篇幅的文章非常有必要,可以帮助访客快速了解文章的内容结构。建议在文章页面右侧将 公告以及文章搜索 换成文章目录,或者添加按钮切换到文章目录。如图所示。
2. 因为大多数人都会使用 markdown 进行写作,然后使用 XML-RPC 服务远程快速发布文章到 wordpress。所以建议开启 XML-RPC 服务 或者告知用户开启 XML-RPC 服务的方法,让用户自行决定。

建议首页、侧边组件支持指定分类

是否为已有功能:是
建议阐述:建议首页cms或其它形式时列出的文章可以指定分类。
侧栏的分类、文章也支持指定分类。
现在我自己已经修改了相关功能,希望官方也支持。谢谢!

侧边栏是否能支持关闭?

是否为已有功能:是/否
建议阐述:

目前侧边栏没有添加任何小工具,但是区域还是被占据,只能手动从代码上调整,后期是否能支持后台开启关闭?谢谢。

【BUG反馈】文章第一次加载的时候,局部插件的样式资源文件没有加载

博客地址:http://www.yundashi168.com/42.html

在博客列表页面http://www.yundashi168.com,点击这篇文章的时候,文章第一次加载的时候,局部插件的样式资源文件没有加载,导致文章目录显示有问题。【刷新浏览器之后,显示正常】
我这里是文章目录页面插件第一次显示有问题,需要刷新浏览器才能正常显示
浏览器简单调试看了下,点击文章第一次加载,插件的资源文件js,css等文件没有加载,只有刷新当前浏览器,才会加载相关样式资源文件。求帮忙解决问题。

BUG出现,必须从博客文章列表页面点击文章进入,才会出现

php8.0运行错误

WordPress版本:5.6
主题版本号:1.4
PHP版本:[选填] 8.0
问题阐述:

致命错误:/www/wwwroot/www.******.com/wp-content/themes/wordpress-theme-puock-1.4/inc/fun/post-tags中不再支持带有花括号的数组和字符串偏移访问语法。第4行的php
此站点遇到了致命错误,请查看您的站点管理邮件地址来获得指引

开启wp super cache缓存下文章页面浏览量统计显示异常。

图1、大佬你的博客,文章页。
Snipaste_2020-10-31_20-39-37
图2、登陆状态下,前台文章页面,主题设置不开启浏览量异步加载。
Snipaste_2020-10-31_20-40-17
图3、登陆状态下,开启浏览量异步加载。“次阅读次阅读”这几个字会在加载的一瞬间出现,然后消失,只剩下浏览量的图标和数字。
QQ截图20201031205004
图4、禁用wp super cache之后,非登陆状态下,不开启浏览量异步加载。
QQ截图20201031205303
图5、禁用wp super cache之后,登陆状态下,不开启浏览量异步加载。
QQ截图20201031205521
图6、禁用wp super cache之后,登陆状态下,开启浏览量异步加载。
QQ截图20201031205724
图6、禁用wp super cache之后,非登陆状态下,开启浏览量异步加载。
QQ截图20201031205950
图7、不管禁用wp super cache与否,在非登陆状态下,开启浏览量异步加载,F12查看都会有
Snipaste_2020-10-31_20-40-46
只要主题设置开启浏览量异步加载,不管登陆与否,不管是否开始wp super cache, “次阅读次阅读”这几个字会在加载的一瞬间出现,然后消失,只剩下浏览量的图标和数字。

同一天发布的文章,在归档页面只显示最新一篇的日期,

求大佬指点一下,是我哪里设置有问题还是怎么?

问题描述如下:

比如我在今天28号发布了两篇文章,那么在文章归档页面就不显示第一篇的日期。

文章2 (28日)
文章1 ()

QQ截图20201028213905
QQ截图20201028213934

如果我把第一篇文章改成27号就正常显示:

文章2 (28日)
文章1(27日)

QQ截图20201028213954
QQ截图20201028214019

帖子内容页面相关推荐无法关闭

WordPress版本:2.7
主题版本号:最新版1.5
PHP版本:[选填]
问题阐述:在模板设置里面取消了“显示正文底部相关推荐”,但是前台依旧显示相关推荐

流量统计代码只允许纯js文本

头部和页脚只支持纯js文本么
像google analytics都需要引用外部js,直接把GA提供的代码扔进去就会移除掉所有的html标签,只剩下纯js代码

我这是什么情况?

image
image

我的这个不显示分类目录名称和链接,我不知道为什么!还望指教!

小工具标签云

WordPress版本:5.7
主题版本号:1.5
PHP版本:[选填]
问题阐述:在小工具里面添加标签云后 不限制数量 会显示很多标签
image
image


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.