mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Added user birthday icon in profile
Добавляет иконку тортика в профиль. До этого иконка выводилась только в viewtopic, теперь же она добавляется в viewprofile Для универсальности написал отдельную функцию которая принимает в себя $user_birthday и $user_id.
This commit is contained in:
parent
ba643cf5c9
commit
e4e337942d
4 changed files with 21 additions and 5 deletions
|
@ -99,6 +99,7 @@ $template->assign_vars(array(
|
|||
'USER_POINTS' => $profiledata['user_points'],
|
||||
'GENDER' => ($bb_cfg['gender']) ? $lang['GENDER_SELECT'][$profiledata['user_gender']] : '',
|
||||
'BIRTHDAY' => ($bb_cfg['birthday_enabled'] && !empty($profiledata['user_birthday']) && $profiledata['user_birthday'] != '1900-01-01') ? $profiledata['user_birthday'] : '',
|
||||
'BIRTHDAY_ICON' => user_birthday_icon($profiledata['user_birthday'], $profiledata['user_id']),
|
||||
'AGE' => ($bb_cfg['birthday_enabled'] && !empty($profiledata['user_birthday']) && $profiledata['user_birthday'] != '1900-01-01') ? birthday_age($profiledata['user_birthday']) : '',
|
||||
|
||||
'L_VIEWING_PROFILE' => sprintf($lang['VIEWING_USER_PROFILE'], $profiledata['username']),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue