{L_ADD_ATTACHMENT_EXPLAIN}

{% if MAX_ATTACHMENT_FILESIZE is not empty %}

{{ MAX_ATTACHMENT_FILESIZE }}

{% endif %}
{% EVENT posting_attach_body_file_list_before %}
{% EVENT posting_attach_body_attach_row_before %} {% EVENT posting_attach_body_attach_row_prepend %} {% EVENT posting_attach_body_attach_row_append %} {% EVENT posting_attach_body_attach_row_after %}
{L_PLUPLOAD_FILENAME} {L_FILE_COMMENT} {L_PLUPLOAD_SIZE} {L_PLUPLOAD_STATUS}
{% if S_BBCODE_ALLOWED %} {% endif %}
{# 判断是否为图片附件 #} {% set filename_lower = attach_row.FILENAME|lower %} {% set is_image = filename_lower ends with '.jpg' or filename_lower ends with '.jpeg' or filename_lower ends with '.png' or filename_lower ends with '.gif' or filename_lower ends with '.webp' or filename_lower ends with '.bmp' %} {% if is_image %} {attach_row.FILENAME} {# 图片附件:为 .attach-controls 添加 margin-top:25px #} {% if S_BBCODE_ALLOWED and S_INLINE_ATTACHMENT_OPTIONS %} {% endif %} {% else %} {attach_row.FILENAME} {% if S_BBCODE_ALLOWED and S_INLINE_ATTACHMENT_OPTIONS %} {% endif %} {% endif %} {% EVENT posting_attach_body_attach_row_controls_prepend %} {# 上面已经直接输出了 attach-controls,因此这里不再重复 #} {% EVENT posting_attach_body_attach_row_controls_append %} {attach_row.S_HIDDEN} {attach_row.FILESIZE}
{% EVENT posting_attach_body_file_list_after %}