From 2b4e35b632324a941b1a75a2e0626516ed7383a8 Mon Sep 17 00:00:00 2001
From: abc2237512422
Date: Thu, 6 Feb 2020 03:25:04 +0800
Subject: [PATCH] 0.820
---
functions.php | 25 +++++++++++++++++++++++++
header.php | 33 +++++++++++++++++++++++++++++++++
info.json | 4 ++--
style.css | 2 +-
4 files changed, 61 insertions(+), 3 deletions(-)
diff --git a/functions.php b/functions.php
index 6ed3cdda..d3109419 100644
--- a/functions.php
+++ b/functions.php
@@ -1229,6 +1229,28 @@ function themeoptions_page(){
+ 页面背景 |
+
+ |
+
+
+ 页面背景的地址,需带上 http(s)。留空则不设置页面背景。如果设置了背景,推荐修改以下选项来增强页面整体观感。
+ |
+
+
+ |
+
+
+ 0 ~ 1 的小数,越小透明度越高,默认为 1 不透明
+ |
+
+
+ |
+
+
+ 留空则不修改 Banner 样式。填 0 可以将 Banner 设为透明。填入正整数可以将 Banner 设为毛玻璃(高斯模糊)特效,模糊半径为填入的数。推荐填入 0。该选项仅在设置页面背景后才会生效。
+ |
+
左侧栏 |
|
@@ -1724,6 +1746,9 @@ function themeoptions_page(){
update_option('argon_seo_description', stripslashes($_POST['argon_seo_description']));
update_option('argon_seo_keywords', $_POST['argon_seo_keywords']);
update_option('argon_enable_mobile_scale', $_POST['argon_enable_mobile_scale']);
+ update_option('argon_page_background_url', $_POST['argon_page_background_url']);
+ update_option('argon_page_background_opacity', $_POST['argon_page_background_opacity']);
+ update_option('argon_page_background_banner_style', $_POST['argon_page_background_banner_style']);
//LazyLoad 相关
update_option('argon_enable_lazyload', $_POST['argon_enable_lazyload']);
diff --git a/header.php b/header.php
index 6a9306fb..419a5c5c 100644
--- a/header.php
+++ b/header.php
@@ -236,6 +236,39 @@ public function end_el( &$output, $object, $depth = 0, $args = array(), $current
+
+
+
+