diff --git a/inc/decorate.php b/inc/decorate.php index 87b09b0..b423156 100644 --- a/inc/decorate.php +++ b/inc/decorate.php @@ -26,7 +26,7 @@ if ( akina_option('theme_skin') ) { ?> background-color: } -.scrollbar { +.scrollbar,.butterBar-message { background: } diff --git a/inc/theme_plus.php b/inc/theme_plus.php index d0c8c85..4747b94 100644 --- a/inc/theme_plus.php +++ b/inc/theme_plus.php @@ -71,7 +71,7 @@ function poi_time_since( $older_date, $comment_date = false, $text = false ) { array( 1, __( ' 秒前', 'akina' ) ) ); - $newer_date = time() - (8*60*60); + $newer_date = time() - (akina_option('time_zone_fix')*60*60); $since = abs( $newer_date - $older_date ); if($text){ $output = ''; diff --git a/options.php b/options.php index f767983..c66fb8b 100644 --- a/options.php +++ b/options.php @@ -851,6 +851,13 @@ function optionsframework_options() { 'id' => 'logo_img', 'std' => $imagepath.'mashiro-logo-s.png', 'type' => 'upload'); + + $options[] = array( + 'name' => __('时区调整', 'options_framework_theme'), + 'desc' => __('如果评论出现时差问题在这里调整,填入一个整数,计算方法:实际时间=显示错误的时间-你输入的整数(单位:小时)', 'options_framework_theme'), + 'id' => 'time_zone_fix', + 'std' => '0', + 'type' => 'text'); return $options; } \ No newline at end of file