mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Merge pull request #2089 from dewekk/fix-member-admin-form
회원가입 추가 항목에 국가, 언어, 시간대 기능 추가
This commit is contained in:
commit
ff3f1f4c38
2 changed files with 52 additions and 0 deletions
|
|
@ -894,6 +894,16 @@ class MemberModel extends Member
|
|||
case 'checkbox' :
|
||||
if($value && !is_array($value)) $value = array($value);
|
||||
break;
|
||||
case 'country' :
|
||||
$lang_type = Context::get('lang_type');
|
||||
$country_list = Rhymix\Framework\i18n::listCountries($lang_type === 'ko' ? Rhymix\Framework\i18n::SORT_NAME_KOREAN : Rhymix\Framework\i18n::SORT_NAME_ENGLISH);
|
||||
$country_name = $lang_type === 'ko' ? $country_list[$value]->name_korean : $country_list[$value]->name_english;
|
||||
$value = $country_name;
|
||||
break;
|
||||
case 'language' :
|
||||
$supported_lang = Rhymix\Framework\Lang::getSupportedList();
|
||||
$value = $supported_lang[$value]['name'];
|
||||
break;
|
||||
case 'text' :
|
||||
case 'homepage' :
|
||||
case 'email_address' :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue