diff --git a/argontheme.js b/argontheme.js index e5b1a1b..34a8bda 100644 --- a/argontheme.js +++ b/argontheme.js @@ -1441,9 +1441,9 @@ if (argonConfig.waterflow_columns != "1") { } } } - if (commentLink != "" && !(/https?:\/\//).test(commentLink)) { + if (commentLink != "" && commentLink.indexOf('.') == -1) { isError = true; - errorMsg += __("网站格式错误 (不是 http(s):// 开头)") + ""; + errorMsg += __("网站格式错误") + ""; } if (!$("#post_comment").hasClass("no-need-captcha")) { // 检查是否使用Geetest验证码 @@ -1541,7 +1541,7 @@ if (argonConfig.waterflow_columns != "1") { comment: commentContent, author: commentName, email: commentEmail, - url: commentLink, + url: (commentLink != "" && !(/^https?:\/\//).test(commentLink) && !(/^\/\//).test(commentLink)) ? ("http://" + commentLink) : commentLink, comment_post_ID: postID, comment_parent: replyID, "wp-comment-cookies-consent": "yes", @@ -2000,9 +2000,9 @@ if (argonConfig.waterflow_columns != "1") { } } } - if (commentLink != "" && !(/https?:\/\//).test(commentLink)) { + if (commentLink != "" && commentLink.indexOf('.') == -1) { isError = true; - errorMsg += __("网站格式错误 (不是 http(s):// 开头") + ""; + errorMsg += __("网站格式错误") + ""; } // 如果基本表单验证失败,显示错误信息并返回 @@ -3667,6 +3667,7 @@ if (argonConfig.disable_pjax != true && argonConfig.disable_pjax != 'true') { try { foldLongComments(); } catch (err) { ArgonDebug.error('foldLongComments failed:', err); } try { foldLongShuoshuo(); } catch (err) { ArgonDebug.error('foldLongShuoshuo failed:', err); } try { handleHashNavigation(); } catch (err) { ArgonDebug.error('handleHashNavigation failed:', err); } + try { initArticleSkeletons(); } catch (err) { ArgonDebug.error('initArticleSkeletons failed:', err); } $("html").trigger("resize"); @@ -5123,34 +5124,23 @@ setInterval(function(){ // 7.1 骨架屏加载动画 (Skeleton Screen) function initArticleSkeletons() { if (typeof jQuery === 'undefined') return; - var $articles = jQuery('.article-list article.post:not(.skeleton-processed)'); - if ($articles.length === 0) return; + var $skeletons = jQuery('.article-skeleton:not(.skeleton-fading)'); + if ($skeletons.length === 0) return; - $articles.each(function () { - var $this = jQuery(this); - $this.addClass('skeleton-processed skeleton-loading'); - - // 构造骨架屏 DOM - var skeletonHtml = - '
+ +
+ ++ $data): + $count = count($data['population']); + $best = $data['population'][$data['current_best_index']]; + ?> +-
+
+
+
+
+
+ +: + ++ +
++ +
++ +
+ ++ +
+