From 6c657dcb0552fe014fcdd32f3a6998dbe9cd34f0 Mon Sep 17 00:00:00 2001 From: mlge Date: Wed, 2 Jan 2019 03:37:30 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=99=BB=E9=99=86?= =?UTF-8?q?=E7=95=8C=E9=9D=A2logo=E8=AE=BE=E7=BD=AE=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加设置选项 --- options.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/options.php b/options.php index 9028452..45f9d96 100644 --- a/options.php +++ b/options.php @@ -668,6 +668,13 @@ function optionsframework_options() { 'name' => __('前台登录', 'options_framework_theme'), 'type' => 'heading' ); + $options[] = array( + 'name' => __('登录logo', 'options_framework_theme'), + 'desc' => __('用于登录界面显示', 'options_framework_theme'), + 'id' => 'logo_img', + 'std' => $imagepath.'mashiro-logo-s.png', + 'type' => 'upload'); + $options[] = array( 'name' => __('指定登录地址', 'options_framework_theme'), 'desc' => __('强制不使用后台地址登陆,填写新建的登陆页面地址,比如 http://www.xxx.com/login【注意】填写前先测试下你新建的页面是可以正常打开的,以免造成无法进入后台等情况', 'options_framework_theme'), @@ -860,4 +867,4 @@ function optionsframework_options() { 'type' => 'upload'); return $options; -} \ No newline at end of file +} From 58b2f40d57e74dc2baf8508fffa6009a0f94a303 Mon Sep 17 00:00:00 2001 From: mlge Date: Wed, 2 Jan 2019 03:40:35 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=99=BB=E9=99=86?= =?UTF-8?q?=E7=95=8C=E9=9D=A2logo=E8=AE=BE=E7=BD=AE=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加读取登录logo设置 --- functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/functions.php b/functions.php index 7c357c5..f4306b3 100644 --- a/functions.php +++ b/functions.php @@ -759,6 +759,7 @@ function custom_html() { $(document).ready(function(){ $( \'

»Slide to Verificate

\' ).insertBefore( $( ".submit" ) ); $(\'form\').attr(\'onsubmit\',\'return verificationOK();\'); + $(\'a\').attr(\'style\',\'background-image: url('.akina_option('logo_img').'); width: 130px; height: 130px;\'); $(".forgetmenot").replaceWith(\'

Remember Me

\'); }); '; From 42a060c32f5a59f58d14e5b3912eb74f88253856 Mon Sep 17 00:00:00 2001 From: mlge Date: Wed, 2 Jan 2019 03:41:51 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=99=BB=E9=99=86?= =?UTF-8?q?=E7=95=8C=E9=9D=A2logo=E8=AE=BE=E7=BD=AE=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 登录外框居中调整; 顺带修复一处GBK编码到UTF8编码问题。 --- inc/login.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/login.css b/inc/login.css index 05140c1..40ac046 100644 --- a/inc/login.css +++ b/inc/login.css @@ -34,7 +34,7 @@ body { background:none !important; overflow:hidden;} left:50%; width:350px; padding:0px !important; - margin:-235px 0px 0px -175px !important; + margin:-290px 0px 0px -175px !important; background-position: center 48%; } @@ -234,7 +234,7 @@ input[type=checkbox]:checked:before { padding-left: 40px !important; } -/*֤*/ +/*验证*/ #slider { margin: 0 auto; /*width: 300px;*/ From ce5ff08cfa520c9dfe85550c1c1675d0590209e1 Mon Sep 17 00:00:00 2001 From: Mashiro Date: Wed, 2 Jan 2019 10:46:09 +0800 Subject: [PATCH 4/4] =?UTF-8?q?Revert=20"=20=E6=B7=BB=E5=8A=A0=E7=99=BB?= =?UTF-8?q?=E9=99=86=E7=95=8C=E9=9D=A2logo=E8=AE=BE=E7=BD=AE=E9=80=89?= =?UTF-8?q?=E9=A1=B9"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions.php | 1 - inc/login.css | 4 ++-- options.php | 9 +-------- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/functions.php b/functions.php index f4306b3..7c357c5 100644 --- a/functions.php +++ b/functions.php @@ -759,7 +759,6 @@ function custom_html() { $(document).ready(function(){ $( \'

»Slide to Verificate

\' ).insertBefore( $( ".submit" ) ); $(\'form\').attr(\'onsubmit\',\'return verificationOK();\'); - $(\'a\').attr(\'style\',\'background-image: url('.akina_option('logo_img').'); width: 130px; height: 130px;\'); $(".forgetmenot").replaceWith(\'

Remember Me

\'); }); '; diff --git a/inc/login.css b/inc/login.css index 40ac046..05140c1 100644 --- a/inc/login.css +++ b/inc/login.css @@ -34,7 +34,7 @@ body { background:none !important; overflow:hidden;} left:50%; width:350px; padding:0px !important; - margin:-290px 0px 0px -175px !important; + margin:-235px 0px 0px -175px !important; background-position: center 48%; } @@ -234,7 +234,7 @@ input[type=checkbox]:checked:before { padding-left: 40px !important; } -/*验证*/ +/*֤*/ #slider { margin: 0 auto; /*width: 300px;*/ diff --git a/options.php b/options.php index 45f9d96..9028452 100644 --- a/options.php +++ b/options.php @@ -668,13 +668,6 @@ function optionsframework_options() { 'name' => __('前台登录', 'options_framework_theme'), 'type' => 'heading' ); - $options[] = array( - 'name' => __('登录logo', 'options_framework_theme'), - 'desc' => __('用于登录界面显示', 'options_framework_theme'), - 'id' => 'logo_img', - 'std' => $imagepath.'mashiro-logo-s.png', - 'type' => 'upload'); - $options[] = array( 'name' => __('指定登录地址', 'options_framework_theme'), 'desc' => __('强制不使用后台地址登陆,填写新建的登陆页面地址,比如 http://www.xxx.com/login【注意】填写前先测试下你新建的页面是可以正常打开的,以免造成无法进入后台等情况', 'options_framework_theme'), @@ -867,4 +860,4 @@ function optionsframework_options() { 'type' => 'upload'); return $options; -} +} \ No newline at end of file