diff --git a/settings.php b/settings.php index 3eebec4..a47109f 100644 --- a/settings.php +++ b/settings.php @@ -608,7 +608,10 @@ function themeoptions_page(){ -

CDN

+ +

+ +

@@ -741,7 +744,7 @@ function themeoptions_page(){ -

+

@@ -1832,7 +1835,7 @@ function themeoptions_page(){ -

+

@@ -2113,7 +2116,7 @@ function themeoptions_page(){ -

+

@@ -2153,7 +2156,7 @@ function themeoptions_page(){ -

+

@@ -2259,7 +2262,7 @@ function themeoptions_page(){ -

+

@@ -2357,7 +2360,7 @@ function themeoptions_page(){ -

+

@@ -2422,7 +2425,7 @@ function themeoptions_page(){ -

+ @@ -2446,7 +2449,7 @@ function themeoptions_page(){ -

+ @@ -3012,7 +3015,26 @@ function themeoptions_page(){ -

+ +

+ +

+ + + + + +

+ + + +

@@ -3070,7 +3092,7 @@ window.pjaxLoaded = function(){ -

+

@@ -3466,7 +3488,7 @@ window.pjaxLoaded = function(){ -

+

diff --git a/settings.php.backup b/settings.php.backup new file mode 100644 index 0000000..a47109f --- /dev/null +++ b/settings.php.backup @@ -0,0 +1,6670 @@ + + + + + + + + + + +
+ + + + + +

+ + + + + + + + + + solstice23/argon-theme + + + +

+ +

+ +

Ctrl + F

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+ + " style="height:40px;width: 80px;cursor: pointer;"/> + + " style="height: 40px;width: 80px;vertical-align: bottom;background: #fff;cursor: pointer;" onclick="$('input[name=\'argon_theme_color\']').click()"/>

+ +

+ +

+ +
+ +
Argon ()
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ + + + + + + + + +
+ + + +
+ +

+ +
+ + + +

页面背景、卡片及页面上的其它元素会变为沉浸式主题色(气氛色)。类似 Material You。', 'argon');?>

+ +
+ +
+ +
+ +
+ +
+ + + +

+ + + +


+ +
+ + + +

+ +

+ + px + +

4px 2px - 15px

+ +
+ +
+ + + + + + + +
+ +

+ +

+ +
+ + + + + + + +
+ +

+ +

+ +
+ + + +
+ + + +
+ + + +
+ +
+ +
+ + + +
+ + + +
+ +
+ +
+ + + +
+ + + +
+ +
+ +
+ + + +
+ + + +
+ +


+ +
+ +
+ + + +
+ + + +
+ + + +
+ +
+ +
+ + + +
+ + + +
+ +
+ +
+ + + +
+ + + +
+ +
+ +
+ + + +
+ + + +
+ +



+ +
+ +
+ + + +
+ + + +
+ + + +
+ +
+ +
+ + + +
+ + + +
+ +
+ +
+ + + +
+ + + +
+

+ +
+ +
+ + + +
+ + + +
+ + + +
+ +
+ +
+ + + +
+ + + +
+ +
+ +
+ + + +
+ + + +
+ +

+ +

+ + + + + +

+ +

%theme_version% 来表示主题版本号。', 'argon');?>

+ +

+ + + +

/blog/ /

+ +

+ + + +

+ +

+ + + +



+ +

+ +

+ +

--hidden-- 可以隐藏标题', 'argon');?>

+ +

+ + + +

+ +
+ + + +

+ +

+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +

+ + + +

+ +
+ + + +

+ +

+ + + +





+ +
+ + + +
+ + + +
+ +


+ +
+ + + +


--bing--

+ +
+ + + + + + + +

+ +

+ +
+ + + + + + + + + + + + + + + +
+ + + +

+ +

+ + + +

+ +
+ + + +

+ +

+ + + +

+ +
+ + + +

+ +

+ +
+ +
+ +
+ +
+ + +
+

+
+ + +
+ +
+ + +
+

+
+ + +
+ +
+ + px +
+

+
+ + +
+ +
+ + % +
+

+
+
+ + +
+ + +
+ + + +
+
+ + +
+
+
+

+ +

+
+
+ + + +

+ + + +

+ +
+ + + +


--hitokoto--

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +

+ + + +

+ +
+ + + +

+ +
+ + + +

+ +

+ + + +

+ +

+ + + +

+ +
+ + + +

+ +
+ + + +

+ +

SEO

+ + + +


+ +
+ + + +

+ +

+ + + + + + + + + +

+ + + +
+ + + + + +

+ +
+ + + + + +
+ + + + + +

+ +

+ + + +

+ +
+ + + +

+ +

+ +

+
+ +

+
+ +

+
+ +

+
+ + + +

+
+
+
+ +

+ + +
+ +

+
+ +

+
+ +

+ +

+ + "/> + +

使用 ref 短代码可以在文中插入脚注。', 'argon');?>

+ +

+ + + +

+ +

+ + + +

+ +

+ + + +

+ +

+ + + +


%url% 来代替当前页面 URL,%link% 来代替当前页面链接,%title% 来代替当前文章标题,%author% 来代替当前文章作者。', 'argon');?>

+ +
+ +
+ +
+ +
+ + + +

+ +

+ + + +

:
+ +

+ +
+ +
+ + + +

+ +

+ + + + + + + + + + + + + + + +
+ + + +


%date_delta% %post_date_delta% %modify_date_delta%

+ +

+ +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +

+ + + +

+ +
+ + + +

+ +
+ + + +
+ + + +
+ + + +

+ +
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ +

+ +

Lazyload

+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

,

+ +

+ + + +

+ +
+ +

Pangu.js

+ + + +

+ +

+ +

+

+ +


+ + window.pjaxLoaded
: + +

+
+window.pjaxLoaded = function(){
+
+	//
+
+	//do something...
+
+}
+
+							
+ + window.pjaxLoaded window.pjaxLoaded();

+ +
+ + + +


+ +
+ + + +


+ +

+ + + +

+ +
+ + + +

+ +
+ + + +

+ +

+ + + +

+ +
+ +
+ + 最后一页,在每个页面顶部显示新的评论"。', 'argon');?> >>> + + $(".go-to-wp-comment-settings").addClass("wrong-options");'; + + };?> + + + + + +

+ +

+ + + +


+ +
+ + + +

+ +

+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +

+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +

+ + + +

+ +
+ + + +

+ +

+ + + +

+
+ •
+ •
+ • +

+ +
+ + / + + +

+ +
+ + / + + +

+ +
+ + / + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +

+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +
+ + + +
+ +

+ +
+ + + +

+ +

+ + +


+
+ +

+
+
+ +

+
+ % +

+
+
+ +

+
+ +

+
+
+ +

+
+ + +

+
+ +

+
+ +

+
+ + +

+ +
+
+ + + +
+ + +

+
+ +

+ +

+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +


gravatar.pho.ink/avatar/ , cdn.v2ex.com/gravatar/ , dn-qiniu-avatar.qbox.me/avatar/

+ +
+ + + +

+ +
+ + + +

+ +
+ + + + + +
+ + + +
+ +
+ +
+ + + +
+ + true, + + ), 'objects'); + + foreach ($all_post_types as $post_type) { + + if ($post_type -> name == 'attachment'){ + + continue; + + } + + echo '
'. $post_type -> label .'
'; + + } + + ?> + +
+ +
+ +

+ + +

+
+ + +

+ +
+ +

+
+ +

+
+ +
+ + +
+
+ + +
+
+ + +
+
+ + +
+

+

+ +
+
+ + + +
+ + $type_info): + $config = argon_get_email_template_config($type_key); + ?> +
+
+ +
+ +
+ + +
+ +
+ + +
+ +
+ +
+ $desc): ?> + {{}} + +
+

+
+ +
+ + +
+
+ +
+ + + + + +
+ +

+
+ +

+
+ +

+
+ +

+
+ +

+
+

+ +

+ + + +

+ +
+ + + +


+ +

分类
"; + + $categories = get_categories(array( + + 'hide_empty' => 0, + + 'hierarchical' => 0, + + 'taxonomy' => 'category' + + )); + + foreach($categories as $category) { + + echo "".$category -> name ." -> ". $category -> term_id .""; + + } + + echo "
Tag
"; + + $categories = get_categories(array( + + 'hide_empty' => 0, + + 'hierarchical' => 0, + + 'taxonomy' => 'post_tag' + + )); + + foreach($categories as $category) { + + echo "".$category -> name ." -> ". $category -> term_id .""; + + } + + echo ""; + + ?> + + + +

+ +
+ + + +

+ +
+ +

+ +
+ + 个人资料页面将 "管理界面配色方案" 设为 "Argon" 即可开启。', 'argon'), admin_url('profile.php'));?> + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + +

+ +
+ + + + + +

+ + + + + + + +

+ + + + + + + + + +
+ + + + + +
+ + + +
+ + 0) { + $remaining = max(0, 3600 - (time() - $enabled_time)); + } + ?> + +
+ +
+ + + + + + + + ' . floor($remaining / 60) . ':' . str_pad($remaining % 60, 2, '0', STR_PAD_LEFT) . ''); ?> + + + + + + + + + +
+ + + +
+ +

+ +
+ + + +

+ + + +
+ + + + + +

+ + + + + + + +
+ + () + +
+ + $error): ?> + +
+ +
100 ? '...' : ''; ?>
+ +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + + + +
+ + + +

+ +
+ +

+ + + + + + + +

+ +
+ +
+ +
+ + + +
+ +
+ +
+ +
+ + + + + + argon_normalize_social_url('twitter', isset($_POST['argon_email_social_twitter']) ? sanitize_text_field($_POST['argon_email_social_twitter']) : ''), + 'github' => argon_normalize_social_url('github', isset($_POST['argon_email_social_github']) ? sanitize_text_field($_POST['argon_email_social_github']) : ''), + 'weibo' => argon_normalize_social_url('weibo', isset($_POST['argon_email_social_weibo']) ? sanitize_text_field($_POST['argon_email_social_weibo']) : ''), + 'bilibili' => argon_normalize_social_url('bilibili', isset($_POST['argon_email_social_bilibili']) ? sanitize_text_field($_POST['argon_email_social_bilibili']) : '') + ); + update_option('argon_email_social_links', $social_links); + + // 保存邮件模板配置 + $email_types = array('comment_notify', 'reply_notify', 'user_register', 'password_reset', 'todo_urge', 'general'); + foreach ($email_types as $type) { + // 保存启用状态 + argon_update_option_checkbox('argon_email_template_' . $type . '_enabled'); + // 保存主题 + argon_update_option('argon_email_template_' . $type . '_subject'); + // 保存内容(允许 HTML) + argon_update_option_allow_tags('argon_email_template_' . $type . '_content'); + } + + argon_update_option('argon_hide_footer_author'); + + argon_update_option('argon_card_radius'); + + argon_update_option('argon_comment_avatar_vcenter'); + + argon_update_option('argon_pjax_disabled'); + + argon_update_option('argon_comment_allow_markdown'); + + argon_update_option('argon_comment_allow_editing'); + + argon_update_option('argon_comment_allow_privatemode'); + + argon_update_option('argon_comment_allow_mailnotice'); + + argon_update_option_checkbox('argon_comment_mailnotice_checkbox_checked'); + + argon_update_option('argon_comment_pagination_type'); + + argon_update_option('argon_who_can_visit_comment_edit_history'); + + argon_update_option('argon_home_show_shuoshuo'); + + argon_update_option('argon_enable_search_filters'); + + argon_update_option('argon_search_filters_type'); + + argon_update_option('argon_darkmode_autoswitch'); + + argon_update_option('argon_enable_amoled_dark'); + + argon_update_option('argon_outdated_info_time_type'); + + argon_update_option('argon_outdated_info_days'); + + argon_update_option('argon_outdated_info_tip_type'); + + argon_update_option('argon_outdated_info_tip_content'); + + argon_update_option_checkbox('argon_show_toolbar_mask'); + + argon_update_option('argon_enable_banner_title_typing_effect'); + + argon_update_option('argon_banner_typing_effect_interval'); + + argon_update_option('argon_page_layout'); + + argon_update_option('argon_article_list_layout'); + + argon_update_option('argon_article_list_layout_mobile'); + + argon_update_option('argon_enable_pangu'); + + argon_update_option('argon_assets_path'); + + argon_update_option('argon_custom_assets_path'); + + argon_update_option('argon_comment_ua'); + + argon_update_option('argon_wp_path'); + + argon_update_option('argon_dateformat'); + + argon_update_option('argon_font'); + + argon_update_option('argon_card_shadow'); + + argon_update_option('argon_enable_code_highlight'); + + argon_update_option('argon_code_highlight_hide_linenumber'); + + argon_update_option('argon_code_highlight_transparent_linenumber'); + + argon_update_option('argon_code_highlight_break_line'); + + argon_update_option('argon_code_theme'); + + argon_update_option('argon_comment_enable_qq_avatar'); + + argon_update_option('argon_enable_login_css'); + + argon_update_option('argon_hide_categories'); + + argon_update_option('argon_article_meta'); + + argon_update_option('argon_fold_long_comments'); + + argon_update_option('argon_fold_long_shuoshuo'); + + argon_update_option('argon_first_image_as_thumbnail_by_default'); + + argon_update_option('argon_enable_headroom'); + + argon_update_option('argon_comment_emotion_keyboard'); + + argon_update_option_allow_tags('argon_additional_content_after_post'); + + argon_update_option('argon_related_post'); + + argon_update_option('argon_related_post_sort_orderby'); + + argon_update_option('argon_related_post_sort_order'); + + argon_update_option('argon_related_post_limit'); + + argon_update_option('argon_article_header_style'); + + argon_update_option('argon_text_gravatar'); + + argon_update_option('argon_disable_googlefont'); + + argon_update_option('argon_disable_codeblock_style'); + + argon_update_option('argon_reference_list_title'); + + argon_update_option('argon_trim_words_count'); + + argon_update_option('argon_enable_comment_upvote'); + + argon_update_option('argon_article_list_waterflow'); + + argon_update_option('argon_banner_size'); + + argon_update_option('argon_toolbar_blur'); + + argon_update_option('argon_toolbar_style'); + + argon_update_option('argon_toolbar_shadow'); + + argon_update_option('argon_toolbar_border'); + + argon_update_option('argon_toolbar_compact'); + + argon_update_option('argon_toolbar_center'); + + argon_update_option('argon_toolbar_links_left'); + + argon_update_option('argon_toolbar_links_right'); + + argon_update_option('argon_archives_timeline_show_month'); + + argon_update_option('argon_archives_timeline_url'); + + argon_update_option('argon_enable_immersion_color'); + + argon_update_option('argon_enable_comment_pinning'); + + argon_update_option('argon_show_comment_parent_info'); + + + + //LazyLoad 相关 + + argon_update_option('argon_enable_lazyload'); + + argon_update_option('argon_lazyload_effect'); + + argon_update_option('argon_lazyload_threshold'); + + argon_update_option('argon_lazyload_loading_style'); + + + + //图片缩放预览相关 + + argon_update_option('argon_enable_fancybox'); + + argon_update_option('argon_enable_zoomify'); + + argon_update_option('argon_zoomify_duration'); + + argon_update_option('argon_zoomify_easing'); + + argon_update_option('argon_zoomify_scale'); + + + + //数学公式相关配置项 + + argon_update_option('argon_math_render'); + + argon_update_option('argon_mathjax_cdn_url'); + + argon_update_option('argon_mathjax_v2_cdn_url'); + + argon_update_option('argon_katex_cdn_url'); + + argon_update_option_checkbox('argon_mathjax3_use_local'); + + argon_update_option_checkbox('argon_mathjax2_use_local'); + + argon_update_option_checkbox('argon_katex_use_local'); + + + + //页头页尾脚本 + + argon_update_option_allow_tags('argon_custom_html_head'); + + argon_update_option_allow_tags('argon_custom_html_foot'); + + + + //公告 + + argon_update_option_allow_tags('argon_sidebar_announcement'); + + //AI 摘要 + argon_update_option_checkbox('argon_ai_summary_enable'); + argon_update_option('argon_ai_summary_provider'); + argon_update_option('argon_ai_summary_api_key'); + argon_update_option('argon_ai_summary_api_endpoint'); + argon_update_option('argon_ai_summary_model'); + argon_update_option('argon_ai_summary_prompt'); + argon_update_option('argon_ai_summary_exclude_ids'); + + //AI 垃圾评论识别 + argon_update_option_checkbox('argon_comment_spam_detection_enable'); + argon_update_option('argon_comment_spam_detection_prompt'); + argon_update_option('argon_comment_spam_detection_mode'); + argon_update_option('argon_comment_spam_detection_sample_rate'); + argon_update_option('argon_comment_spam_detection_auto_action'); + argon_update_option('argon_comment_spam_detection_whitelist'); + argon_update_option_checkbox('argon_comment_spam_detection_exclude_logged_in'); + + } + +} + +argon_update_themeoptions(); + +?>