From 3189c82d87d7780d7289b080f7557518acc5d2c1 Mon Sep 17 00:00:00 2001 From: abc2237512422 Date: Mon, 11 Nov 2019 00:27:45 +0800 Subject: [PATCH] 0.59 --- README.md | 3 +++ functions.php | 11 +++++++++++ info.json | 4 ++-- sidebar.php | 8 ++++++++ style.css | 23 ++++++++++++++++++++++- 5 files changed, 46 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 805efae8..5bcbbac0 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,9 @@ Argon - 一个轻盈、简洁、美观的 WordPress 主题 # 更新日志 +## 20191111 v0.59 ++ 增加博客公告功能 + ## 20191107 v0.582 + 修复未开启 Mathjax 选项时 Pjax 错误的问题 diff --git a/functions.php b/functions.php index 7f86d2d2..48a7f935 100644 --- a/functions.php +++ b/functions.php @@ -1062,6 +1062,14 @@ function themeoptions_page(){

需带上 http(s) 开头

+

博客公告

+ + + + +

显示在左侧栏顶部,留空则不显示,支持 HTML 标签

+ +

文章 Meta 信息

@@ -1379,6 +1387,9 @@ function themeoptions_page(){ //页头页尾脚本 update_option('argon_custom_html_head', stripslashes($_POST['argon_custom_html_head'])); update_option('argon_custom_html_foot', stripslashes($_POST['argon_custom_html_foot'])); + + //公告 + update_option('argon_sidebar_announcement', stripslashes($_POST['argon_sidebar_announcement'])); } /*主题菜单*/ register_nav_menus( array( diff --git a/info.json b/info.json index 3674eae6..3b59207a 100644 --- a/info.json +++ b/info.json @@ -1,5 +1,5 @@ { - "version" : "0.582", + "version" : "0.59", "details_url" : "https://github.com/abc2237512422/argon-theme/releases", - "download_url" : "https://github.com/abc2237512422/argon-theme/releases/download/v0.582/argon.zip" + "download_url" : "https://github.com/abc2237512422/argon-theme/releases/download/v0.59/argon.zip" } diff --git a/sidebar.php b/sidebar.php index 6e763138..8992039a 100644 --- a/sidebar.php +++ b/sidebar.php @@ -1,5 +1,13 @@