From 295ba8407171bf4cc8f06414a82d4d8291464f79 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 21 Sep 2019 02:27:05 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=90=EB=8F=99=20=ED=96=89=EB=8F=99=20?= =?UTF-8?q?=EC=84=B8=EB=B6=80=EB=A5=BC=20=ED=88=B4=ED=8C=81=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/j_server_basic_info.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/hwe/j_server_basic_info.php b/hwe/j_server_basic_info.php index d3004585..f730c1f7 100644 --- a/hwe/j_server_basic_info.php +++ b/hwe/j_server_basic_info.php @@ -16,6 +16,8 @@ if(!class_exists('\\sammo\\DB')){ ]); } +$templates = new \League\Plates\Engine(__dir__.'/templates'); + $db = DB::db(); $gameStor = KVStorage::getStorage($db, 'game_env'); @@ -51,7 +53,10 @@ if(file_exists(__dir__.'/.htaccess')){ } } $auto_info = join(', ', array_values($auto_info)); - $otherTextInfo[] = "자동행동({$auto_info})"; + $otherTextInfo[] = $templates->render('tooltip', [ + 'text'=>'자동행동', + 'info'=>$auto_info, + ]); } if(!$otherTextInfo){ @@ -112,6 +117,7 @@ if($admin['join_mode'] == 'onlyRandom'){ if($admin['autorun_user']['limit_minutes']??false){ + $auto_info = []; foreach($admin['autorun_user']['options'] as $auto_option => $value){ assert($value); @@ -124,7 +130,10 @@ if($admin['autorun_user']['limit_minutes']??false){ } } $auto_info = join(', ', array_values($auto_info)); - $otherTextInfo[] = "자동행동({$auto_info})"; + $otherTextInfo[] = $templates->render('tooltip', [ + 'text'=>'자동행동', + 'info'=>$auto_info, + ]); } if(!$otherTextInfo){