From f07ce4f7b5895b7d3ce272dcc99528468f3dcefb Mon Sep 17 00:00:00 2001 From: rxu Date: Thu, 20 Dec 2018 01:21:07 +0700 Subject: [PATCH 1/2] [ticket/15915] Add template events to posting_attach_body.html PHPBB3-15915 --- phpBB/docs/events.md | 42 +++++++++++++++++++ .../template/posting_attach_body.html | 6 +++ 2 files changed, 48 insertions(+) diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md index 02dad993f8..8dd14f045c 100644 --- a/phpBB/docs/events.md +++ b/phpBB/docs/events.md @@ -1693,6 +1693,34 @@ overall_header_stylesheets_after * Purpose: Add asset calls after stylesheets within the `` tag. Note that INCLUDECSS will not work with this event. +posting_attach_body_attach_row_after +=== +* Locations: + + styles/prosilver/template/posting_attach_body.html +* 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: + + styles/prosilver/template/posting_attach_body.html +* Since: 3.2.6-RC1 +* Purpose: Add content appending the attachment row in the file list + +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_attach_row_controls_append === * Locations: @@ -1707,6 +1735,20 @@ posting_attach_body_attach_row_controls_prepend * Since: 3.2.2-RC1 * Purpose: Add content before attachment control elements +posting_attach_body_file_list_after +=== +* Locations: + + styles/prosilver/template/posting_attach_body.html +* Since: 3.2.6-RC1 +* Purpose: Add content after attachments list + +posting_attach_body_file_list_before +=== +* Locations: + + styles/prosilver/template/posting_attach_body.html +* Since: 3.2.6-RC1 +* Purpose: Add content before attachments list + posting_editor_add_panel_tab === * Locations: diff --git a/phpBB/styles/prosilver/template/posting_attach_body.html b/phpBB/styles/prosilver/template/posting_attach_body.html index 444713d6e0..72935eb7e9 100644 --- a/phpBB/styles/prosilver/template/posting_attach_body.html +++ b/phpBB/styles/prosilver/template/posting_attach_body.html @@ -21,6 +21,7 @@ +
@@ -55,7 +56,9 @@ + + + +
{attach_row.FILENAME} @@ -78,10 +81,13 @@
+ From 13ddfa5e52fc78b442a29396af928381eb335f39 Mon Sep 17 00:00:00 2001 From: rxu Date: Sun, 31 Mar 2019 12:44:33 +0700 Subject: [PATCH 2/2] [ticket/15915] Fix events order in events.md. Use Twig syntax for all events. PHPBB3-15915 --- phpBB/docs/events.md | 18 +++++++++--------- .../template/posting_attach_body.html | 16 ++++++++-------- 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 @@ - + {% EVENT posting_attach_body_file_list_before %}
@@ -56,18 +56,18 @@ - + {% 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 %}
{attach_row.FILENAME} - + {% EVENT posting_attach_body_attach_row_controls_prepend %}   - + {% EVENT posting_attach_body_attach_row_controls_append %} @@ -81,13 +81,13 @@
- + {% EVENT posting_attach_body_file_list_after %}