Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

Commit

Permalink
Merge pull request #10 from gogobody/dev
Browse files Browse the repository at this point in the history
bugs fix
  • Loading branch information
gogobody authored Jun 1, 2021
2 parents e411785 + f1eb305 commit 58adfad
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 10 deletions.
10 changes: 5 additions & 5 deletions assets/js/onecircle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1206,11 +1206,11 @@ var oneMap = { // use js only!
oneMap.init(AMap)
}).catch(function (e) {
console.error(e); //加载错误提示
$.message({
type: "error",
title: "提示",
message: "获取amapJsKey失败"
})
// $.message({
// type: "error",
// title: "提示",
// message: "获取amapJsKey失败"
// })
});
} else {
console.log(json)
Expand Down
81 changes: 80 additions & 1 deletion assets/js/onecircle.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion includes/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<!-- 鼠标点击特效 -->
<?php $this->need('blog/config/cursor.effect.php'); ?>

<?php Typecho_Plugin::factory('SmmsPlugin')->footer($this); ?>
<?php Typecho_Plugin::factory('SmmsForTypecho')->footer($this); ?>
<?php
$userId = -1; //save userid
if ($this->user->hasLogin()){
Expand Down
7 changes: 6 additions & 1 deletion includes/header.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $all = Typecho_Plugin::export();?>
<?php if (!array_key_exists('SmmsForTypecho', $all['activated']) or !array_key_exists('OneCircle', $all['activated'])) : ?>
<?php die("请下载并开启 SmmsPlugin 插件 和 onecircle 配套插件,查看:<a href='https://www.yuque.com/docs/share/05f40cac-980f-4e53-8b92-ed9728b8dc50?#%E3%80%8AOneCircle%20%E4%B8%BB%E9%A2%98%E8%AF%B4%E6%98%8E%E3%80%8B'>使用说明</a>"); ?>
<?php endif; ?>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
Expand Down Expand Up @@ -84,7 +88,8 @@
background-image: url("<?php echo $this->options->bgImg ? $this->options->bgImg :''?>");
}
</style>
<?php Typecho_Plugin::factory('SmmsPlugin')->header($this);?>

<?php Typecho_Plugin::factory('SmmsForTypecho')->header($this);?>

</head>
<body class="bright" ontouchstart="">
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* OneCircle theme,也许是 typecho 第一个社交圈子主题
* @package OneCircle
* @author gogobody <a href="https://www.ijkxs.com">即刻学术</a>
* @version 3.05
* @version 3.06
* @link check https://github.com/gogobody/onecircle
*/

Expand Down
2 changes: 1 addition & 1 deletion libs/admin/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/* 获取模板版本号 */
function OnecircleVersion()
{
return "3.05";
return "3.06";
}

/* 获取懒加载图片 */
Expand Down

0 comments on commit 58adfad

Please sign in to comment.