Skip to content

Commit

Permalink
修复与smms插件冲突的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
gogobody committed Feb 24, 2021
1 parent 73c5ae5 commit 817e651
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @package SmmsForTypecho
* @author gogobody
* @version 1.2
* @version 1.3
* @link https://github.com/gogobody/SmmsForTypecho
*/
//设置语言
Expand Down Expand Up @@ -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');
//
Expand Down Expand Up @@ -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 '<link rel="stylesheet" href="'. SMMS_URL . 'css/input.min.css'.'" type="text/css"/>';
echo '<link rel="stylesheet" href="'. SMMS_URL . 'css/modal.css'.'" type="text/css"/>';
// echo $header;
$header = $header.'<link rel="stylesheet" href="'. SMMS_URL . 'css/input.min.css'.'" type="text/css"/><link rel="stylesheet" href="'. SMMS_URL . 'css/modal.css'.'" type="text/css"/>';
// echo '<link rel="stylesheet" href="'. SMMS_URL . 'css/input.min.css'.'" type="text/css"/>';
// echo '<link rel="stylesheet" href="'. SMMS_URL . 'css/modal.css'.'" type="text/css"/>';
}
return $header;
// print_r($header);
// $header = $header.'<link rel="stylesheet" href="'. SMMS_URL . 'css/input.min.css'.'" type="text/css"/>'.
// '<link rel="stylesheet" href="'. SMMS_URL . 'css/modal.css'.'" type="text/css"/>';
// return $header;

}

public static function admin_writepost_scripts($post){
Expand Down

0 comments on commit 817e651

Please sign in to comment.