-
@@ -275,7 +272,7 @@ function optionsframework_page() { ?>
@@ -412,7 +409,7 @@ function optionsframework_adminbar() {
$wp_admin_bar->add_menu( array(
'parent' => 'appearance',
'id' => 'of_theme_options',
- 'title' => __( SAKURA_OPTIONS, 'options_framework_theme' ),
+ 'title' => __('Sakura Options', 'sakura'),
'href' => admin_url( 'themes.php?page=options-framework' )
));
}
@@ -494,4 +491,4 @@ if ( ! function_exists( 'akina_option' ) ) {
return $default;
}
-}
\ No newline at end of file
+}
diff --git a/inc/swicher.php b/inc/swicher.php
index f2ec4d0..7f0ca16 100644
--- a/inc/swicher.php
+++ b/inc/swicher.php
@@ -13,8 +13,8 @@ mashiro_option.site_name = "";
mashiro_option.author_name = "";
mashiro_option.template_url = "";
mashiro_option.site_url = "";
-mashiro_option.qq_api_url = "https://api.2heng.xin/qqinfo/";
-mashiro_option.qq_avatar_api_url = "https://api.2heng.xin/qqinfo/";
+mashiro_option.qq_api_url = "";
+// mashiro_option.qq_avatar_api_url = "https://api.2heng.xin/qqinfo/";
mashiro_option.live_search = ;
@@ -71,13 +71,7 @@ mashiro_option.jsdelivr_css_src = "https://cdn.jsdelivr.net/gh/mashirozx/Sakura@
mashiro_option.float_player_on = true;
-
-mashiro_option.cover_api = "";
+mashiro_option.cover_api = "";
/*End of Initial Variables*/
diff --git a/inc/theme_plus.php b/inc/theme_plus.php
index c554094..d90a8ee 100644
--- a/inc/theme_plus.php
+++ b/inc/theme_plus.php
@@ -43,11 +43,7 @@ function get_avatar_profile_url(){
* 随机图
*/
function get_random_bg_url(){
- if ( empty( akina_option('default_feature_image' )) ) {
- return get_template_directory_uri().'/feature/index.php?'.rand(1,1000);
- } else {
- return akina_option('default_feature_image').'?'.rand(1,1000);
- }
+ return rest_url('sakura/v1/image/feature').'?'.rand(1,1000);
}
@@ -118,7 +114,10 @@ if(akina_option('classify_display')){
*/
function comment_add_at( $comment_text, $comment = '') {
if( $comment->comment_parent > 0) {
- $comment_text = ' ' . $comment_text;
+ if(substr($comment_text, 0, 3) === "
")
+ $comment_text = str_replace(substr($comment_text, 0, 3), '
', $comment_text);
+ else
+ $comment_text = ' ' . $comment_text;
}
return $comment_text;
}
diff --git a/index.php b/index.php
index fe01946..30b036e 100644
--- a/index.php
+++ b/index.php
@@ -64,7 +64,7 @@ get_header();
-
+