aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2019-03-31 12:44:33 +0700
committerrxu <rxu@mail.ru>2019-03-31 12:46:46 +0700
commit13ddfa5e52fc78b442a29396af928381eb335f39 (patch)
tree320e1dca0cd5a11a7b320268c8e544447778b83e
parentf07ce4f7b5895b7d3ce272dcc99528468f3dcefb (diff)
downloadforums-13ddfa5e52fc78b442a29396af928381eb335f39.tar
forums-13ddfa5e52fc78b442a29396af928381eb335f39.tar.gz
forums-13ddfa5e52fc78b442a29396af928381eb335f39.tar.bz2
forums-13ddfa5e52fc78b442a29396af928381eb335f39.tar.xz
forums-13ddfa5e52fc78b442a29396af928381eb335f39.zip
[ticket/15915] Fix events order in events.md. Use Twig syntax for all events.
PHPBB3-15915
-rw-r--r--phpBB/docs/events.md18
-rw-r--r--phpBB/styles/prosilver/template/posting_attach_body.html16
2 files changed, 17 insertions, 17 deletions
diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md
index 8dd14f045c..d97831ebbe 100644
--- a/phpBB/docs/events.md
+++ b/phpBB/docs/events.md
@@ -1700,13 +1700,6 @@ posting_attach_body_attach_row_after
* Since: 3.2.6-RC1
* Purpose: Add content after attachment row in the file list
-posting_attach_body_attach_row_before
-===
-* Locations:
- + styles/prosilver/template/posting_attach_body.html
-* Since: 3.2.6-RC1
-* Purpose: Add content before attachment row in the file list
-
posting_attach_body_attach_row_append
===
* Locations:
@@ -1714,12 +1707,12 @@ posting_attach_body_attach_row_append
* Since: 3.2.6-RC1
* Purpose: Add content appending the attachment row in the file list
-posting_attach_body_attach_row_prepend
+posting_attach_body_attach_row_before
===
* Locations:
+ styles/prosilver/template/posting_attach_body.html
* Since: 3.2.6-RC1
-* Purpose: Add content prepending attachment row in the file list
+* Purpose: Add content before attachment row in the file list
posting_attach_body_attach_row_controls_append
===
@@ -1735,6 +1728,13 @@ posting_attach_body_attach_row_controls_prepend
* Since: 3.2.2-RC1
* Purpose: Add content before attachment control elements
+posting_attach_body_attach_row_prepend
+===
+* Locations:
+ + styles/prosilver/template/posting_attach_body.html
+* Since: 3.2.6-RC1
+* Purpose: Add content prepending attachment row in the file list
+
posting_attach_body_file_list_after
===
* Locations:
diff --git a/phpBB/styles/prosilver/template/posting_attach_body.html b/phpBB/styles/prosilver/template/posting_attach_body.html
index 72935eb7e9..b46e9c9175 100644
--- a/phpBB/styles/prosilver/template/posting_attach_body.html
+++ b/phpBB/styles/prosilver/template/posting_attach_body.html
@@ -21,7 +21,7 @@
<input type="button" class="button2" value="{L_PLUPLOAD_ADD_FILES}" id="add_files" />
</div>
- <!-- EVENT posting_attach_body_file_list_before -->
+ {% EVENT posting_attach_body_file_list_before %}
<div class="panel<!-- IF not .attach_row --> hidden<!-- ENDIF --> file-list-container" id="file-list-container">
<div class="inner">
<table class="table1 zebra-list fixed-width-table">
@@ -56,18 +56,18 @@
<span class="file-status"></span>
</td>
</tr>
- <!-- EVENT posting_attach_body_attach_row_before -->
+ {% EVENT posting_attach_body_attach_row_before %}
<!-- BEGIN attach_row -->
- <!-- EVENT posting_attach_body_attach_row_prepend -->
+ {% EVENT posting_attach_body_attach_row_prepend %}
<tr class="attach-row" data-attach-id="{attach_row.ATTACH_ID}">
<td class="attach-name">
<span class="file-name ellipsis-text"><a href="{attach_row.U_VIEW_ATTACHMENT}">{attach_row.FILENAME}</a></span>
- <!-- EVENT posting_attach_body_attach_row_controls_prepend -->
+ {% EVENT posting_attach_body_attach_row_controls_prepend %}
<span class="attach-controls">
<!-- IF S_INLINE_ATTACHMENT_OPTIONS --><input type="button" value="{L_PLACE_INLINE}" class="button2 file-inline-bbcode" />&nbsp; <!-- ENDIF -->
<input type="submit" name="delete_file[{attach_row.ASSOC_INDEX}]" value="{L_DELETE_FILE}" class="button2 file-delete" />
</span>
- <!-- EVENT posting_attach_body_attach_row_controls_append -->
+ {% EVENT posting_attach_body_attach_row_controls_append %}
<span class="clear"></span>
</td>
<td class="attach-comment">
@@ -81,13 +81,13 @@
<span class="file-status file-uploaded"></span>
</td>
</tr>
- <!-- EVENT posting_attach_body_attach_row_append -->
+ {% EVENT posting_attach_body_attach_row_append %}
<!-- END attach_row -->
- <!-- EVENT posting_attach_body_attach_row_after -->
+ {% EVENT posting_attach_body_attach_row_after %}
</tbody>
</table>
</div>
</div>
- <!-- EVENT posting_attach_body_file_list_after -->
+ {% EVENT posting_attach_body_file_list_after %}
</div>
</div>