From 817e6519791ed9b21c5761a6cfc4cd588c2c7cec Mon Sep 17 00:00:00 2001
From: gogobody <138950128@qq.com>
Date: Wed, 24 Feb 2021 18:50:40 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8Esmms=E6=8F=92?=
=?UTF-8?q?=E4=BB=B6=E5=86=B2=E7=AA=81=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Plugin.php | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)
diff --git a/Plugin.php b/Plugin.php
index 9c2be2c..db34dcc 100644
--- a/Plugin.php
+++ b/Plugin.php
@@ -7,7 +7,7 @@
*
* @package SmmsForTypecho
* @author gogobody
- * @version 1.2
+ * @version 1.3
* @link https://github.com/gogobody/SmmsForTypecho
*/
//设置语言
@@ -50,8 +50,8 @@ public static function activate()
}
}
- Typecho_Plugin::factory('admin/header.php')->header_1001 = array('SmmsForTypecho_Plugin', 'admin_scripts_css');
- Typecho_Plugin::factory('admin/write-post.php')->bottom_1001 = array('SmmsForTypecho_Plugin', 'admin_writepost_scripts');
+ Typecho_Plugin::factory('admin/header.php')->header = array('SmmsForTypecho_Plugin', 'admin_scripts_css');
+ Typecho_Plugin::factory('admin/write-post.php')->bottom = array('SmmsForTypecho_Plugin', 'admin_writepost_scripts');
// Typecho_Plugin::factory('Widget_Archive')->beforeRender_1001 = array('SmmsForTypecho_Plugin','Widget_Archive_beforeRender');
//
@@ -151,17 +151,12 @@ public static function add_scripts_css(){
}
public static function admin_scripts_css($header){
if (Typecho_Widget::widget('Widget_User')->hasLogin()) {
- echo $header;
-
- echo '';
- echo '';
+// echo $header;
+ $header = $header.'';
+// echo '';
+// echo '';
}
return $header;
-// print_r($header);
-// $header = $header.''.
-// '';
-// return $header;
-
}
public static function admin_writepost_scripts($post){