{% INCLUDE 'ucp_header.html' %} {% INCLUDE 'ucp_pm_message_header.html' %} {% if S_DISPLAY_HISTORY and (U_VIEW_PREVIOUS_HISTORY or U_VIEW_NEXT_HISTORY) %}
{% if U_VIEW_PREVIOUS_HISTORY %} {{ lang('VIEW_PREVIOUS_HISTORY') }} {% endif %} {% if U_VIEW_NEXT_HISTORY %} {{ lang('VIEW_NEXT_HISTORY') }} {% endif %}
{% endif %}
{% if S_ONLINE %}{{ lang('ONLINE') }}{% endif %}
{% EVENT ucp_pm_viewmessage_avatar_before %} {% if AUTHOR_AVATAR %}{{ AUTHOR_AVATAR }}{% endif %} {% EVENT ucp_pm_viewmessage_avatar_after %}
{% EVENT ucp_pm_viewmessage_author_full_before %} {{ MESSAGE_AUTHOR_FULL }} {% EVENT ucp_pm_viewmessage_author_full_after %}
{% EVENT ucp_pm_viewmessage_rank_before %} {% if RANK_TITLE or RANK_IMG %}
{{ RANK_TITLE }}{% if RANK_TITLE and RANK_IMG %}
{% endif %}{{ RANK_IMG }}
{% endif %} {% EVENT ucp_pm_viewmessage_rank_after %}
{{ lang('POSTS') }}{{ lang('COLON') }} {% if U_AUTHOR_POSTS != '' %}{{ AUTHOR_POSTS }}{% else %}{{ AUTHOR_POSTS }}{% endif %}
{% if AUTHOR_JOINED %}
{{ lang('JOINED') }}{{ lang('COLON') }} {{ AUTHOR_JOINED }}
{% endif %} {% EVENT ucp_pm_viewmessage_custom_fields_before %} {% for custom_fields in loops.custom_fields %} {% if not custom_fields.S_PROFILE_CONTACT %}
{{ custom_fields.PROFILE_FIELD_NAME }}{{ lang('COLON') }} {{ custom_fields.PROFILE_FIELD_VALUE }}
{% endif %} {% endfor %} {% EVENT ucp_pm_viewmessage_custom_fields_after %} {% EVENT ucp_pm_viewmessage_contact_fields_before %} {% if loops.contact|length %}
{{ lang('CONTACT') }}{{ lang('COLON') }}
{% endif %} {% EVENT ucp_pm_viewmessage_contact_fields_after %}

{{ SUBJECT }}

{% DEFINE SHOW_PM_POST_BUTTONS = (U_EDIT or U_DELETE or U_REPORT or U_QUOTE) %} {% EVENT ucp_pm_viewmessage_post_buttons_list_before %} {% if definition.SHOW_PM_POST_BUTTONS %} {% endif %} {% EVENT ucp_pm_viewmessage_post_buttons_list_after %}

{{ lang('SENT_AT') }}{{ lang('COLON') }} {{ SENT_DATE }}
{{ lang('PM_FROM') }}{{ lang('COLON') }} {{ MESSAGE_AUTHOR_FULL }} {% if S_TO_RECIPIENT %}
{{ lang('TO') }}{{ lang('COLON') }} {% for to_recipient in loops.to_recipient %}{% if to_recipient.NAME_FULL %}{{ to_recipient.NAME_FULL }}{% else %}{{ to_recipient.NAME }}{% endif %} {% endfor %}{% endif %} {% if S_BCC_RECIPIENT %}
{{ lang('BCC') }}{{ lang('COLON') }} {% for bcc_recipient in loops.bcc_recipient %}{% if bcc_recipient.NAME_FULL %}{{ bcc_recipient.NAME_FULL }}{% else %}{{ bcc_recipient.NAME }}{% endif %} {% endfor %}{% endif %}

{{ MESSAGE }}
{% if S_HAS_ATTACHMENTS %}
{{ lang('ATTACHMENTS') }}
{% for attachment in loops.attachment %}
{{ attachment.DISPLAY_ATTACHMENT }}
{% endfor %}
{% endif %} {% if S_DISPLAY_NOTICE %}
{{ lang('DOWNLOAD_NOTICE') }}
{% endif %} {% if EDITED_MESSAGE or EDIT_REASON %}
{{ EDITED_MESSAGE }} {% if EDIT_REASON %}
{{ lang('REASON') }}{{ lang('COLON') }} {{ EDIT_REASON }}{% endif %}
{% endif %} {% if SIGNATURE %}
{{ SIGNATURE }}
{% endif %}
{% EVENT ucp_pm_viewmessage_options_before %} {% if S_VIEW_MESSAGE %}
{% if S_MARK_OPTIONS %} {% endif %} {% if U_PREVIOUS_PM %} {{ lang('VIEW_PREVIOUS_PM') }} {% endif %} {% if U_NEXT_PM %} {{ lang('VIEW_NEXT_PM') }} {% endif %} {% if not S_UNREAD and not S_SPECIAL_FOLDER %} {% endif %}
{% endif %} {% INCLUDE 'ucp_pm_message_footer.html' %} {% if S_DISPLAY_HISTORY %}{% INCLUDE 'ucp_pm_history.html' %}{% endif %} {% INCLUDE 'ucp_footer.html' %}