[ticket/14005] Allow extensions control post buttons displaying

PHPBB3-14005
This commit is contained in:
rxu 2015-07-12 20:41:28 +07:00
parent 05f1476fc9
commit 9ab4b30739

View file

@ -210,9 +210,10 @@
<h3 <!-- IF postrow.S_FIRST_ROW -->class="first"<!-- ENDIF -->><!-- IF postrow.POST_ICON_IMG --><img src="{T_ICONS_PATH}{postrow.POST_ICON_IMG}" width="{postrow.POST_ICON_IMG_WIDTH}" height="{postrow.POST_ICON_IMG_HEIGHT}" alt="" /> <!-- ENDIF --><a href="#p{postrow.POST_ID}">{postrow.POST_SUBJECT}</a></h3> <h3 <!-- IF postrow.S_FIRST_ROW -->class="first"<!-- ENDIF -->><!-- IF postrow.POST_ICON_IMG --><img src="{T_ICONS_PATH}{postrow.POST_ICON_IMG}" width="{postrow.POST_ICON_IMG_WIDTH}" height="{postrow.POST_ICON_IMG_HEIGHT}" alt="" /> <!-- ENDIF --><a href="#p{postrow.POST_ID}">{postrow.POST_SUBJECT}</a></h3>
<!-- DEFINE $SHOW_POST_BUTTONS = (postrow.U_EDIT or postrow.U_DELETE or postrow.U_REPORT or postrow.U_WARN or postrow.U_INFO or postrow.U_QUOTE) -->
<!-- EVENT viewtopic_body_post_buttons_list_before --> <!-- EVENT viewtopic_body_post_buttons_list_before -->
<!-- IF not S_IS_BOT --> <!-- IF not S_IS_BOT -->
<!-- IF postrow.U_EDIT or postrow.U_DELETE or postrow.U_REPORT or postrow.U_WARN or postrow.U_INFO or postrow.U_QUOTE --> <!-- IF $SHOW_POST_BUTTONS -->
<ul class="post-buttons"> <ul class="post-buttons">
<!-- EVENT viewtopic_body_post_buttons_before --> <!-- EVENT viewtopic_body_post_buttons_before -->
<!-- IF postrow.U_EDIT --> <!-- IF postrow.U_EDIT -->