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

This commit is contained in:
Hide_D committed 2018-06-24 04:12:19 +09:00
1 parent 5ca8a6ecfa
commit 8a56393159
6 files changed
+39 -52

No files matched your search

+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
]);
}