Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

новые теги not_user_name и аналогичные #20

Closed
tcse opened this issue Jan 10, 2016 · 2 comments · Fixed by #41
Closed

новые теги not_user_name и аналогичные #20

tcse opened this issue Jan 10, 2016 · 2 comments · Fixed by #41
Assignees

Comments

@tcse
Copy link
Contributor

tcse commented Jan 10, 2016

Было бы просто шикарно, если появятся новые теги для еще более красивого оформления шаблона email сообщения.

раз есть тег user_name

то тег not_use_name мог бы выводить свое содержимое в том случае, если данное поле не заполнено.

@pafnuty pafnuty added this to the v1.3 milestone Jan 10, 2016
@pafnuty pafnuty self-assigned this Jan 10, 2016
@pafnuty
Copy link
Member

pafnuty commented Jan 10, 2016

Да, как то вылетело из головы это. Сделаем.

@pafnuty pafnuty modified the milestone: v1.3 Sep 26, 2016
@pafnuty
Copy link
Member

pafnuty commented Oct 11, 2016

Будет так:

[user_email]{user_email}[/user_email]
[not_user_email] user_email is empty [/not_user_email]
[user_name]{user_name}[/user_name]
[not_user_name] user_name is empty [/not_user_name]
[user_news_num]{user_news_num}[/user_news_num]
[not_user_news_num] user_news_num is empty [/not_user_news_num]
[user_comm_num]{user_comm_num}[/user_comm_num]
[not_user_comm_num] user_comm_num is empty [/not_user_comm_num]
[user_group]{user_group}[/user_group]
[not_user_group] user_group is empty [/not_user_group]
[user_lastdate]{user_lastdate}[/user_lastdate]
[not_user_lastdate] user_lastdate is empty [/not_user_lastdate]
[user_reg_date]{user_reg_date}[/user_reg_date]
[not_user_reg_date] user_reg_date is empty [/not_user_reg_date]
[user_banned]{user_banned}[/user_banned]
[not_user_banned] user_banned is empty [/not_user_banned]
[user_allow_mail]{user_allow_mail}[/user_allow_mail]
[not_user_allow_mail] user_allow_mail is empty [/not_user_allow_mail]
[user_info]{user_info}[/user_info]
[not_user_info] user_info is empty [/not_user_info]
[user_signature]{user_signature}[/user_signature]
[not_user_signature] user_signature is empty [/not_user_signature]
[user_foto]{user_foto}[/user_foto]
[not_user_foto] user_foto is empty [/not_user_foto]
[user_fullname]{user_fullname}[/user_fullname]
[not_user_fullname] user_fullname is empty [/not_user_fullname]
[user_land]{user_land}[/user_land]
[not_user_land] user_land is empty [/not_user_land]
[user_favorites]{user_favorites}[/user_favorites]
[not_user_favorites] user_favorites is empty [/not_user_favorites]
[user_pm_all]{user_pm_all}[/user_pm_all]
[not_user_pm_all] user_pm_all is empty [/not_user_pm_all]
[user_pm_unread]{user_pm_unread}[/user_pm_unread]
[not_user_pm_unread] user_pm_unread is empty [/not_user_pm_unread]
[user_time_limit]{user_time_limit}[/user_time_limit]
[not_user_time_limit] user_time_limit is empty [/not_user_time_limit]
[user_logged_ip]{user_logged_ip}[/user_logged_ip]
[not_user_logged_ip] user_logged_ip is empty [/not_user_logged_ip]
[user_timezone]{user_timezone}[/user_timezone]
[not_user_timezone] user_timezone is empty [/not_user_timezone]

плюс допполя:

[user_xfield_xxx]{user_xfield_xxx}[/user_xfield_xxx]
[not_user_xfield_xxx] user_xfield_xxx is empty [/not_user_xfield_xxx]

pafnuty added a commit that referenced this issue Oct 11, 2016
- Небольшие улучшения кода
- Добавлены почти все поля из профиля пользователя в шаблон email (fixed #20)
- Добавлен вывод допполей из профиля пользователя в шаблон email (fixed #22)
- о всем тегам шаблонам email-сообщения добавлены противоположные теги `[not_xxx]` выводящие текст между ними, когда соответствующий тег `{xxx}` пуст.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants