임관 권유 메시지를 템플릿으로 이동

This commit is contained in:
2018-06-24 04:12:19 +09:00
parent 5ca8a6ecfa
commit 8a56393159
6 changed files with 39 additions and 52 deletions
+11
View File
@@ -172,4 +172,15 @@ function getMapHtml(){
$templates = new \League\Plates\Engine(__dir__.'/templates');
return $templates->render('map');
}
function getInvitationList(array $nationList){
$templates = new \League\Plates\Engine(__dir__.'/templates');
foreach($nationList as &$nation){
$nation['textColor'] = newColor($nation['color']);
}
return $templates->render('invitationList', [
'nationList'=>$nationList
]);
}