版本号 3.2.4 -> 3.2.5(修 Prism 报错,项目地址改为自建 Git)
## 修 Prism is not defined
首页控制台报 `Uncaught ReferenceError: Prism is not defined`,来源是
wp-editormd 插件(不是本主题):它在 Prism 脚本加载之前就无条件执行了
`Prism.plugins.autoloader.languages_path = "..."`。
线上页面里的真实顺序:
第 668 行 该赋值语句
第 695 行 prism-core.min.js
第 696 行 prism-autoloader.min.js
在 `wp_head` 优先级 0 垫一个最小空壳 `window.Prism`(含 plugins.autoloader
这条访问链路),让那句赋值有地方可写。已核对 prism-core.min.js 源码:它开头
只读 `u.Prism.manual` 与 `u.Prism.disableWorkerMessageHandler`,结尾
`global.Prism = Prism` 整体覆盖 —— 空壳必定被真实对象替换,不承担持久职责,
只为吸收那条过早的赋值。已用 jsdom 验证:去掉空壳重现原始报错,加上后消失,
且之后 `Prism.highlightAll` 仍可正常调用。
## 项目地址统一到 code.yangyq.net
原作者署名、原主题地址、README、语言包、JS 里的控制台横幅全部换成自建仓库地址。
LICENSE 文件保持原样不动(MIT 要求保留原始版权声明)。
## CDN 分支改成拿不到就回退本地
原来的 `g_cdn` 分支指向 `cdn.jsdelivr.net/gh/vtrois/kratos`,本仓库在自建
Gitea 上,jsDelivr 只认 github/npm/wordpress,实测该地址 404。现改为仅在
`YANG_THEME_CDN_REPO` 常量存在时才走 CDN,否则一律用
`get_template_directory_uri()`。留一个 404 的地址比留空更危险:页面能开、
样式全丢,极难排查。
## 顺带
- `.gitattributes` 补 `*.mo binary`:原来是靠"含 NUL"启发式判定,不是契约
- `update.json` 的版本号跟进到 3.2.5
- `kratos.min.js` / `kratos.min.css` 用压缩器重新生成,不手工改产物
This commit is contained in:
@@ -24,3 +24,9 @@
|
||||
*.zip binary
|
||||
*.gz binary
|
||||
*.pdf binary
|
||||
|
||||
# 编译后的 gettext 语言包。
|
||||
# git 目前靠"前 8000 字节里有 NUL"自动判成二进制,所以暂时没坏;
|
||||
# 但这是启发式,不是契约 —— 显式标出来才不会被将来的 autocrlf 配置变动打穿。
|
||||
# (.po / .pot 是纯文本,不能标 binary,它们要参与 EOL 归一化。)
|
||||
*.mo binary
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* 404 模板
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
* @version 2020.04.12
|
||||
*/
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
该项目是原kratos的一个分支。
|
||||
原主题的地址是:
|
||||
https://github.com/vtrois/kratos
|
||||
本项目仓库地址:
|
||||
https://code.yangyq.net/laoyang/wordpress-kratos-yang
|
||||
因为我需要一些定制的功能,就fork出来一个新的分支,自己用。如果你对原有的主题开发也有不满意的地方,欢迎使用我的这个版本。当然,版权仍然是属于原主题。
|
||||
主题预览:<a href="https://yangyq.net" target="_blank">老杨说话的地方</a>。
|
||||
|
||||
该仓库已同步到多个git托管平台,包括<a href="https://github.com/dryangyq/wordpress-kratos-yang.git" target="_blank">Github</a>、<a href="https://gitee.com/dryangyq/wordpress-kratos-yang.git" target="_blank">Gitee</a>、
|
||||
<a href="https://gitlab.com/dryangyq/wordpress-kratos-yang.git" target="_blank">Gitlab</a>和<a href="https://code.aliyun.com/dryangyq/wordpress-kratos-yang.git" target="_blank">阿里云Code</a>。这些代码库都和<a href="https://git.yangyq.net/laoyang/wordpress-kratos-yang.git" target="_blank">源库</a>保持一致和同步,在任何平台上关注都可以。
|
||||
<a href="https://gitlab.com/dryangyq/wordpress-kratos-yang.git" target="_blank">Gitlab</a>和<a href="https://code.aliyun.com/dryangyq/wordpress-kratos-yang.git" target="_blank">阿里云Code</a>。这些代码库都和<a href="https://code.yangyq.net/laoyang/wordpress-kratos-yang.git" target="_blank">源库</a>保持一致和同步,在任何平台上关注都可以。
|
||||
|
||||
**Github因为网络原因,同步会出现失败情况,无法保证最新。**
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
>>> Kratos 样式表
|
||||
>>> Seaton Jiang <seaton@vtrois.com>
|
||||
>>> Yongquan Yang <yangyq.net>
|
||||
----------------------------------------------------------------
|
||||
|
||||
1. 全局
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* Kratos
|
||||
* Seaton Jiang <seaton@vtrois.com>
|
||||
* Yongquan Yang <yangyq.net>
|
||||
*/
|
||||
; (function () {
|
||||
'use strict'
|
||||
@@ -137,7 +137,7 @@
|
||||
}
|
||||
|
||||
var consoleConfig = function () {
|
||||
console.log('\n Kratos v' + KRATOS_VERSION + '\n\n https://github.com/vtrois/kratos \n\n')
|
||||
console.log('\n Kratos v' + KRATOS_VERSION + '\n\n https://code.yangyq.net/laoyang/wordpress-kratos-yang \n\n')
|
||||
}
|
||||
|
||||
$(function () {
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
function grin (t) { var o; if (t = " " + t + " ", !document.getElementById("comment") || "textarea" != document.getElementById("comment").type) return !1; if (o = document.getElementById("comment"), document.selection) o.focus(), sel = document.selection.createRange(), sel.text = t, o.focus(); else if (o.selectionStart || "0" == o.selectionStart) { var e = o.selectionStart, a = o.selectionEnd, n = a; o.value = o.value.substring(0, e) + t + o.value.substring(a, o.value.length), n += t.length, o.focus(), o.selectionStart = n, o.selectionEnd = n } else o.value += t, o.focus() } (function () { "use strict"; var t = "3.1.7", o = function () { $("#navbutton").on("click", function () { $(".navbar-toggler").toggleClass("nav-close") }) }, e = function () { $(function () { $('[data-toggle="tooltip"]').tooltip() }) }, a = function () { $(window).on("load", function () { var t = $(window); t.scrollTop() > 200 ? $(".gotop").addClass("active") : $(".gotop").removeClass("active"), t.scroll(function () { t.scrollTop() > 200 ? $(".gotop").addClass("active") : $(".gotop").removeClass("active") }) }), $(".gotop").on("click", function (t) { return t.preventDefault(), $("html, body").animate({ scrollTop: $("html").offset().top }, 500), !1 }) }, n = function () { $(".search").on("click", function (t) { $(".search-form").animate({ width: "200px" }, 200), $(".search-form input").css("display", "block"), $(document).one("click", function () { $(".search-form").animate({ width: "0" }, 100), $(".search-form input").hide() }), t.stopPropagation() }), $(".search-form").on("click", function (t) { t.stopPropagation() }) }, c = function () { $(".wechat").mouseout(function () { $(".wechat-pic")[0].style.display = "none" }), $(".wechat").mouseover(function () { $(".wechat-pic")[0].style.display = "block" }) }, s = function () { $("#addsmile").on("click", function (t) { return $(".smile").toggleClass("open"), $(document).one("click", function () { $(".smile").toggleClass("open") }), t.stopPropagation(), !1 }) }, i = function () { $.fn.postLike = function () { if ($(this).hasClass("done")) return layer.msg(kratos.repeat, function () { }), !1; $(this).addClass("done"), layer.msg(kratos.thanks); var t = $(this).data("id"), o = $(this).data("action"), e = { action: "love", um_id: t, um_action: o }; return $.post(kratos.site + "/wp-admin/admin-ajax.php", e, function (t) { }), !1 }, $(document).on("click", ".btn-thumbs", function () { $(this).postLike() }) }, l = function () { $("#donate").on("click", function () { layer.open({ type: 1, area: ["300px", "370px"], title: kratos.donate, resize: !1, scrollbar: !1, content: '<div class="donate-box"><div class="meta-pay text-center my-2"><strong>' + kratos.scan + '</strong></div><div class="qr-pay text-center"><img class="pay-img" id="alipay_qr" src="' + kratos.alipay + '"><img class="pay-img d-none" id="wechat_qr" src="' + kratos.wechat + '"></div><div class="choose-pay text-center mt-2"><input id="alipay" type="radio" name="pay-method" checked><label for="alipay" class="pay-button"><img src="' + kratos.directory + '/assets/img/payment/alipay.png"></label><input id="wechatpay" type="radio" name="pay-method"><label for="wechatpay" class="pay-button"><img src="' + kratos.directory + '/assets/img/payment/wechat.png"></label></div></div>' }), $(".choose-pay input[type='radio']").click(function () { var t = $(this).attr("id"); "alipay" == t && ($(".qr-pay #alipay_qr").removeClass("d-none"), $(".qr-pay #wechat_qr").addClass("d-none")), "wechatpay" == t && ($(".qr-pay #alipay_qr").addClass("d-none"), $(".qr-pay #wechat_qr").removeClass("d-none")) }) }) }, r = function () { $(document).on("click", ".acheader", function (t) { var o = $(this); o.closest(".accordion").find(".contents").slideToggle(300), o.closest(".accordion").hasClass("active") ? o.closest(".accordion").removeClass("active") : o.closest(".accordion").addClass("active"), t.preventDefault() }) }, d = function () { console.log("\n Kratos v" + t + "\n\n https://github.com/vtrois/kratos \n\n") }; $(function () { r(), o(), e(), a(), n(), c(), s(), i(), l(), d() }) })()
|
||||
function grin(t){var a,e,o,n;if(t=" "+t+" ",!document.getElementById("comment")||"textarea"!=document.getElementById("comment").type)return!1;a=document.getElementById("comment"),document.selection?(a.focus(),(sel=document.selection.createRange()).text=t,a.focus()):a.selectionStart||"0"==a.selectionStart?(e=a.selectionStart,n=o=a.selectionEnd,a.value=a.value.substring(0,e)+t+a.value.substring(o,a.value.length),n+=t.length,a.focus(),a.selectionStart=n,a.selectionEnd=n):(a.value+=t,a.focus())}$(function(){$(document).on("click",".acheader",function(t){var a=$(this);a.closest(".accordion").find(".contents").slideToggle(300),a.closest(".accordion").hasClass("active")?a.closest(".accordion").removeClass("active"):a.closest(".accordion").addClass("active"),t.preventDefault()}),$("#navbutton").on("click",function(){$(".navbar-toggler").toggleClass("nav-close")}),$(function(){$('[data-toggle="tooltip"]').tooltip()}),$(window).on("load",function(){var t=$(window);200<t.scrollTop()?$(".gotop").addClass("active"):$(".gotop").removeClass("active"),t.scroll(function(){200<t.scrollTop()?$(".gotop").addClass("active"):$(".gotop").removeClass("active")})}),$(".gotop").on("click",function(t){return t.preventDefault(),$("html, body").animate({scrollTop:$("html").offset().top},500),!1}),$(".search").on("click",function(t){$(".search-form").animate({width:"200px"},200),$(".search-form input").css("display","block"),$(document).one("click",function(){$(".search-form").animate({width:"0"},100),$(".search-form input").hide()}),t.stopPropagation()}),$(".search-form").on("click",function(t){t.stopPropagation()}),$(".wechat").mouseout(function(){$(".wechat-pic")[0].style.display="none"}),$(".wechat").mouseover(function(){$(".wechat-pic")[0].style.display="block"}),$("#addsmile").on("click",function(t){return $(".smile").toggleClass("open"),$(document).one("click",function(){$(".smile").toggleClass("open")}),t.stopPropagation(),!1}),$.fn.postLike=function(){var t,a;return $(this).hasClass("done")?layer.msg(kratos.repeat,function(){}):($(this).addClass("done"),layer.msg(kratos.thanks),t=$(this).data("id"),a=$(this).data("action"),$.post(kratos.site+"/wp-admin/admin-ajax.php",{action:"love",um_id:t,um_action:a},function(t){})),!1},$(document).on("click",".btn-thumbs",function(){$(this).postLike()}),$("#donate").on("click",function(){layer.open({type:1,area:["300px","370px"],title:kratos.donate,resize:!1,scrollbar:!1,content:'<div class="donate-box"><div class="meta-pay text-center my-2"><strong>'+kratos.scan+'</strong></div><div class="qr-pay text-center"><img class="pay-img" id="alipay_qr" src="'+kratos.alipay+'"><img class="pay-img d-none" id="wechat_qr" src="'+kratos.wechat+'"></div><div class="choose-pay text-center mt-2"><input id="alipay" type="radio" name="pay-method" checked><label for="alipay" class="pay-button"><img src="'+kratos.directory+'/assets/img/payment/alipay.png"></label><input id="wechatpay" type="radio" name="pay-method"><label for="wechatpay" class="pay-button"><img src="'+kratos.directory+'/assets/img/payment/wechat.png"></label></div></div>'}),$(".choose-pay input[type='radio']").click(function(){var t=$(this).attr("id");"alipay"==t&&($(".qr-pay #alipay_qr").removeClass("d-none"),$(".qr-pay #wechat_qr").addClass("d-none")),"wechatpay"==t&&($(".qr-pay #alipay_qr").addClass("d-none"),$(".qr-pay #wechat_qr").removeClass("d-none"))})}),console.log("\n Kratos v3.1.8\n\n https://code.yangyq.net/laoyang/wordpress-kratos-yang \n\n")});
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* 评论模板
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
* @version 2020.03.14
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* 主题页脚
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
* @version 2020.04.12
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* 模板函数
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
* @version 2020.03.17
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* 主题页眉
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
* @version 2020.06.21
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* 文章相关函数
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
* @version 2020.06.13
|
||||
*/
|
||||
|
||||
+60
-3
@@ -1,13 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* 核心函数
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
* @version 2020.08.04
|
||||
*/
|
||||
|
||||
if (kratos_option('g_cdn', false)) {
|
||||
$asset_path = 'https://cdn.jsdelivr.net/gh/vtrois/kratos@' . THEME_VERSION;
|
||||
// CDN 资源分支。
|
||||
//
|
||||
// ⚠️ 这里的地址必须是**能被 jsDelivr 拉取的 GitHub 仓库**(jsDelivr 只认
|
||||
// github / npm / wordpress 等白名单源,不支持自建 Gitea/GitLab)。
|
||||
// 本项目的主仓库在 https://code.yangyq.net/laoyang/wordpress-kratos-yang,
|
||||
// 它**不能**直出给 jsDelivr(实测 404)。
|
||||
// 因此:
|
||||
// · 线上 g_cdn 选项默认关闭,走 get_template_directory_uri() 本地资源;
|
||||
// · 若将来要启用 CDN,必须先把仓库镜像到 GitHub,再把下面的 owner/repo 换成镜像地址。
|
||||
// 留一个 404 的地址比留空更危险:页面能打开、样式却全丢,排查成本极高。
|
||||
if (kratos_option('g_cdn', false) && defined('YANG_THEME_CDN_REPO')) {
|
||||
$asset_path = 'https://cdn.jsdelivr.net/gh/' . YANG_THEME_CDN_REPO . '@' . THEME_VERSION;
|
||||
} else {
|
||||
$asset_path = get_template_directory_uri();
|
||||
}
|
||||
@@ -96,6 +106,53 @@ function theme_autoload()
|
||||
}
|
||||
add_action('wp_enqueue_scripts', 'theme_autoload');
|
||||
|
||||
/**
|
||||
* Prism 前置兜底(修 Uncaught ReferenceError: Prism is not defined)
|
||||
*
|
||||
* 病因在 wp-editormd 插件,不在本主题。实测线上页面顺序:
|
||||
* 668 行 Prism.plugins.autoloader.languages_path = "..."; ← 无条件赋值
|
||||
* 695 行 <script src="prism-core.min.js">
|
||||
* 696 行 <script src="prism-autoloader.min.js">
|
||||
* 赋值语句在 Prism 加载**之前**执行 ⇒ 抛 ReferenceError,且这条赋值实际上
|
||||
* 也完全没生效(真正的 languages_path 靠 footer.php 里那段带 if 防护的兜底设置)。
|
||||
*
|
||||
* 插件自己在页尾另一处写了 `if (window.Prism && ...)`,说明是它自己没改干净。
|
||||
*
|
||||
* 修法:在 <head> 极早位置(wp_head 优先级 0)先垫一个空壳 window.Prism,
|
||||
* 把 plugins.autoloader 这条访问链路铺好,让插件那句赋值有地方可写,不再抛错。
|
||||
*
|
||||
* 关于「会不会被真实 Prism 冲掉」——已核对 prism-core.min.js 源码:
|
||||
* 开头 `C={manual: u.Prism && u.Prism.manual, ...}` 只读取 manual /
|
||||
* disableWorkerMessageHandler 两个开关;结尾 `global.Prism = Prism` 整体覆盖。
|
||||
* 也就是说空壳对象**确实会被替换**,autoloader 也是随后由
|
||||
* prism-autoloader.min.js 重新挂到新对象上的。
|
||||
* 所以这里垫的对象只负责「让第 668 行不报错」,不承担持久职责 —— 正合适。
|
||||
* 为避免误导后来人,这里刻意只做最小空壳,不塞任何逻辑。
|
||||
*
|
||||
* 用 var 而非 window.Prism= 是为了在严格模式下也能安全创建全局;
|
||||
* 且仅在尚未存在时才创建,插件/主题自己先初始化时本段什么都不做。
|
||||
*/
|
||||
function yang_prism_early_shim()
|
||||
{
|
||||
if (is_admin()) {
|
||||
return;
|
||||
}
|
||||
// 注意:这里是给浏览器执行的 JS,不是 PHP 字符串拼接出错也无妨,
|
||||
// 但保持单行数组 + implode,避免 HEREDOC 里出现 <? 之类被误解析。
|
||||
$lines = array(
|
||||
"if (typeof window.Prism === 'undefined') {",
|
||||
"\twindow.Prism = {};",
|
||||
"\twindow.Prism.plugins = {};",
|
||||
"\twindow.Prism.plugins.autoloader = {};",
|
||||
"\twindow.Prism.plugins.autoloader.languages_path = '';",
|
||||
"}",
|
||||
);
|
||||
echo '<script id="yang-prism-shim">' . "\n"
|
||||
. implode("\n", $lines) . "\n"
|
||||
. '</script>' . "\n";
|
||||
}
|
||||
add_action('wp_head', 'yang_prism_early_shim', 0);
|
||||
|
||||
// Admin Bar
|
||||
if (! kratos_option('g_adminbar', true)) {
|
||||
add_filter('show_admin_bar', '__return_false');
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* 随后 delete_old_theme() 递归删除),写在主题目录里的任何自定义文件都会丢。
|
||||
* 放进选项表就与主题文件解耦,升级、重装、换主题目录名都不影响。
|
||||
*
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
*/
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* dogecloud 对象存储
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
* @version 2020.03.17
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* 主题选项
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
* @version 2020.09.21
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* 站点相关函数
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
* @version 2020.08.04
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* 文章短代码
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
* @version 2020.06.25
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* SMTP 配置
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
* @version 2020.02.15
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* 侧栏小工具
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
* @version 2020.08.03
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "3.1.7",
|
||||
"details_url": "https://github.com/vtrois/kratos/releases/tag/v3.1.7",
|
||||
"download_url": "https://mirrors.vtrois.com/kratos/v3.1.7.zip"
|
||||
"version": "3.2.5",
|
||||
"details_url": "https://yangyq.net/theme-update/readme.html",
|
||||
"download_url": "https://yangyq.net/theme-update/kratos_yang.zip"
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* 首页模板
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
* @version 2020.04.12
|
||||
*/
|
||||
|
||||
Binary file not shown.
+8
-8
@@ -177,8 +177,8 @@ msgid "版权声明"
|
||||
msgstr "Copyright notice"
|
||||
|
||||
#: inc/options-framework/includes/class-options-interface.php:248
|
||||
msgid "主题源码使用 <a href=\"https://github.com/vtrois/kratos/blob/master/LICENSE\" target=\"_blank\">MIT 协议</a> 进行许可,说明文档使用 <a href=\"https://creativecommons.org/licenses/by-nc-nd/4.0/\" target=\"_blank\">CC BY-NC-ND 4.0</a> 进行许可。"
|
||||
msgstr "Theme source code licensed by <a href=\"https://github.com/vtrois/kratos/blob/master/LICENSE\" target=\"_blank\">MIT protocol</a> ,Instruction documents are licensed using <a href=\"https://creativecommons.org/licenses/by-nc-nd/4.0/\" target=\"_blank\">CC by-nc-nd 4.0</a>."
|
||||
msgid "主题源码使用 <a href=\"https://code.yangyq.net/laoyang/wordpress-kratos-yang/src/branch/main/LICENSE\" target=\"_blank\">MIT 协议</a> 进行许可,说明文档使用 <a href=\"https://creativecommons.org/licenses/by-nc-nd/4.0/\" target=\"_blank\">CC BY-NC-ND 4.0</a> 进行许可。"
|
||||
msgstr "Theme source code licensed by <a href=\"https://code.yangyq.net/laoyang/wordpress-kratos-yang/src/branch/main/LICENSE\" target=\"_blank\">MIT protocol</a> ,Instruction documents are licensed using <a href=\"https://creativecommons.org/licenses/by-nc-nd/4.0/\" target=\"_blank\">CC by-nc-nd 4.0</a>."
|
||||
|
||||
#: inc/options-framework/includes/class-options-interface.php:249
|
||||
msgid "打赏支持"
|
||||
@@ -1096,17 +1096,17 @@ msgid "Kratos"
|
||||
msgstr "Kratos"
|
||||
|
||||
#. Theme URI of the plugin/theme
|
||||
msgid "https://github.com/vtrois/kratos"
|
||||
msgstr "https://github.com/vtrois/kratos"
|
||||
msgid "https://code.yangyq.net/laoyang/wordpress-kratos-yang"
|
||||
msgstr "https://code.yangyq.net/laoyang/wordpress-kratos-yang"
|
||||
|
||||
#. Description of the plugin/theme
|
||||
msgid "主题提供了多种针对自媒体博客需求的侧栏工具,删繁就简专注于用户的阅读体验,优化的邮件中心为你的网站留存加分添彩。"
|
||||
msgstr "Theme provides a variety of widgets to meet the needs of self-service media blogs. Focusing on a user-centric reading experience, an optimized email center adds extra points to your website retention."
|
||||
|
||||
#. Author of the plugin/theme
|
||||
msgid "Seaton Jiang"
|
||||
msgstr "Seaton Jiang"
|
||||
msgid "Yongquan Yang"
|
||||
msgstr "Yongquan Yang"
|
||||
|
||||
#. Author URI of the plugin/theme
|
||||
msgid "https://www.vtrois.com/"
|
||||
msgstr "https://www.vtrois.com/"
|
||||
msgid "https://yangyq.net"
|
||||
msgstr "https://yangyq.net"
|
||||
|
||||
@@ -181,7 +181,7 @@ msgstr ""
|
||||
|
||||
#: inc/options-framework/includes/class-options-interface.php:249
|
||||
msgid ""
|
||||
"主题源码使用 <a href=\"https://github.com/vtrois/kratos/blob/master/LICENSE"
|
||||
"主题源码使用 <a href=\"https://code.yangyq.net/laoyang/wordpress-kratos-yang/src/branch/main/LICENSE"
|
||||
"\" target=\"_blank\">MIT 协议</a> 进行许可,说明文档使用 <a href=\"https://"
|
||||
"creativecommons.org/licenses/by-nc-nd/4.0/\" target=\"_blank\">CC BY-NC-ND "
|
||||
"4.0</a> 进行许可。"
|
||||
@@ -1120,7 +1120,7 @@ msgid "下一篇 >"
|
||||
msgstr ""
|
||||
|
||||
#. Theme URI of the plugin/theme
|
||||
msgid "https://github.com/vtrois/kratos"
|
||||
msgid "https://code.yangyq.net/laoyang/wordpress-kratos-yang"
|
||||
msgstr ""
|
||||
|
||||
#. Description of the plugin/theme
|
||||
@@ -1130,9 +1130,9 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#. Author of the plugin/theme
|
||||
msgid "Seaton Jiang"
|
||||
msgid "Yongquan Yang"
|
||||
msgstr ""
|
||||
|
||||
#. Author URI of the plugin/theme
|
||||
msgid "https://www.vtrois.com/"
|
||||
msgid "https://yangyq.net"
|
||||
msgstr ""
|
||||
|
||||
Binary file not shown.
+8
-8
@@ -177,8 +177,8 @@ msgid "版权声明"
|
||||
msgstr "版權聲明"
|
||||
|
||||
#: inc/options-framework/includes/class-options-interface.php:248
|
||||
msgid "主题源码使用 <a href=\"https://github.com/vtrois/kratos/blob/master/LICENSE\" target=\"_blank\">MIT 协议</a> 进行许可,说明文档使用 <a href=\"https://creativecommons.org/licenses/by-nc-nd/4.0/\" target=\"_blank\">CC BY-NC-ND 4.0</a> 进行许可。"
|
||||
msgstr "主題原始碼使用 <a href=\"https://github.com/vtrois/kratos/blob/master/LICENSE\" target=\"_blank\">MIT 授權條款</a> 進行授權,說明文件使用 <a href=\"https://creativecommons.org/licenses/by-nc-nd/4.0/\" target=\"_blank\">CC BY-NC-ND 4.0</a> 進行授權。"
|
||||
msgid "主题源码使用 <a href=\"https://code.yangyq.net/laoyang/wordpress-kratos-yang/src/branch/main/LICENSE\" target=\"_blank\">MIT 协议</a> 进行许可,说明文档使用 <a href=\"https://creativecommons.org/licenses/by-nc-nd/4.0/\" target=\"_blank\">CC BY-NC-ND 4.0</a> 进行许可。"
|
||||
msgstr "主題原始碼使用 <a href=\"https://code.yangyq.net/laoyang/wordpress-kratos-yang/src/branch/main/LICENSE\" target=\"_blank\">MIT 授權條款</a> 進行授權,說明文件使用 <a href=\"https://creativecommons.org/licenses/by-nc-nd/4.0/\" target=\"_blank\">CC BY-NC-ND 4.0</a> 進行授權。"
|
||||
|
||||
#: inc/options-framework/includes/class-options-interface.php:249
|
||||
msgid "打赏支持"
|
||||
@@ -1096,17 +1096,17 @@ msgid "Kratos"
|
||||
msgstr "Kratos"
|
||||
|
||||
#. Theme URI of the plugin/theme
|
||||
msgid "https://github.com/vtrois/kratos"
|
||||
msgstr "https://github.com/vtrois/kratos"
|
||||
msgid "https://code.yangyq.net/laoyang/wordpress-kratos-yang"
|
||||
msgstr "https://code.yangyq.net/laoyang/wordpress-kratos-yang"
|
||||
|
||||
#. Description of the plugin/theme
|
||||
msgid "主题提供了多种针对自媒体博客需求的侧栏工具,删繁就简专注于用户的阅读体验,优化的邮件中心为你的网站留存加分添彩。"
|
||||
msgstr "主題提供了多種針對自媒體部落格需求的小工具,刪繁就簡專注於使用者的閱讀體驗,最佳化的郵件中心為您的網站留存加分添彩。"
|
||||
|
||||
#. Author of the plugin/theme
|
||||
msgid "Seaton Jiang"
|
||||
msgstr "Seaton Jiang"
|
||||
msgid "Yongquan Yang"
|
||||
msgstr "Yongquan Yang"
|
||||
|
||||
#. Author URI of the plugin/theme
|
||||
msgid "https://www.vtrois.com/"
|
||||
msgstr "https://www.vtrois.com/"
|
||||
msgid "https://yangyq.net"
|
||||
msgstr "https://yangyq.net"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* 页面模板
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
* @version 2020.03.14
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* 文章列表
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
* @version 2020.09.21
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* 表情图标
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
* @version 2020.04.12
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* 文章工具栏
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
* @version 2020.09.21
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* 文章内容
|
||||
* @author Seaton Jiang <seaton@vtrois.com>
|
||||
* @author Yongquan Yang <yangyq.net>
|
||||
* @license MIT License
|
||||
* @version 2020.06.08
|
||||
*/
|
||||
|
||||
@@ -1,16 +1,13 @@
|
||||
/*
|
||||
Theme Name: Kratos_Yang
|
||||
Text Domain: kratos_Yang
|
||||
Version: 3.2.4
|
||||
Version: 3.2.5
|
||||
Requires PHP: 7.0
|
||||
Description: 这是一个Kratos主题的分支版本,用来增加一些定制化功能。
|
||||
Tags: 博客, 双栏, 响应式, 自定义背景, 自定义颜色, 自定义图标, 自定义菜单, 特色图像, 收录优化, 邮件中心, 主题选项, 小工具, 文章置顶, 无障碍友好
|
||||
Original Author: Seaton Jiang
|
||||
Author: Yongquan Yang
|
||||
Original Author URI: https://www.vtrois.com/
|
||||
Author URI: https://yangyq.net
|
||||
Original Theme URI: https://github.com/vtrois/kratos
|
||||
Theme URI: https://github.com/yangyongquan85/kratos_yang
|
||||
Theme URI: https://code.yangyq.net/laoyang/wordpress-kratos-yang
|
||||
License: MIT License
|
||||
License URI: https://github.com/vtrois/kratos/blob/master/LICENSE
|
||||
License URI: https://code.yangyq.net/laoyang/wordpress-kratos-yang/src/branch/main/LICENSE
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user