aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2014-05-11 13:35:43 +0800
committerrxu <rxu@mail.ru>2014-05-11 15:57:21 +0800
commit2d989acd0c1723f3c2b958c67950950882d80453 (patch)
treee927b3869f2c929105360b40f9cea9cf28e76f97 /phpBB
parentd340d2fe253e2628a52a669353bf5e74c5c859a1 (diff)
downloadforums-2d989acd0c1723f3c2b958c67950950882d80453.tar
forums-2d989acd0c1723f3c2b958c67950950882d80453.tar.gz
forums-2d989acd0c1723f3c2b958c67950950882d80453.tar.bz2
forums-2d989acd0c1723f3c2b958c67950950882d80453.tar.xz
forums-2d989acd0c1723f3c2b958c67950950882d80453.zip
[ticket/12523] Add template events search_results_topic_(before/after)
Add template events search_results_topic_(before/after) to search_results.html. PHPBB3-12523
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/docs/events.md16
-rw-r--r--phpBB/styles/prosilver/template/search_results.html2
-rw-r--r--phpBB/styles/subsilver2/template/search_results.html2
3 files changed, 20 insertions, 0 deletions
diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md
index 66b558a665..4a6a1895dd 100644
--- a/phpBB/docs/events.md
+++ b/phpBB/docs/events.md
@@ -601,6 +601,22 @@ search_results_postprofile_before
* Since: 3.1.0-b3
* Purpose: Add content directly before the post author in search results (posts view mode)
+search_results_topic_after
+===
+* Locations:
+ + styles/prosilver/template/search_results.html
+ + styles/subsilver2/template/search_results.html
+* Since: 3.1.0-b4
+* Purpose: Add data after search result topics
+
+search_results_topic_before
+===
+* Locations:
+ + styles/prosilver/template/search_results.html
+ + styles/subsilver2/template/search_results.html
+* Since: 3.1.0-b4
+* Purpose: Add data before search result topics
+
simple_footer_after
===
* Locations:
diff --git a/phpBB/styles/prosilver/template/search_results.html b/phpBB/styles/prosilver/template/search_results.html
index fe0b0362ce..41af5a5183 100644
--- a/phpBB/styles/prosilver/template/search_results.html
+++ b/phpBB/styles/prosilver/template/search_results.html
@@ -58,6 +58,7 @@
<ul class="topiclist topics">
<!-- BEGIN searchresults -->
+ <!-- EVENT search_results_topic_before -->
<li class="row<!-- IF searchresults.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF -->">
<dl class="icon {searchresults.TOPIC_IMG_STYLE}">
<dt <!-- IF searchresults.TOPIC_ICON_IMG -->style="background-image: url({T_ICONS_PATH}{searchresults.TOPIC_ICON_IMG}); background-repeat: no-repeat;"<!-- ENDIF --> title="{searchresults.TOPIC_FOLDER_IMG_ALT}">
@@ -97,6 +98,7 @@
</dd>
</dl>
</li>
+ <!-- EVENT search_results_topic_after -->
<!-- END searchresults -->
</ul>
diff --git a/phpBB/styles/subsilver2/template/search_results.html b/phpBB/styles/subsilver2/template/search_results.html
index ff34055b29..319e37d710 100644
--- a/phpBB/styles/subsilver2/template/search_results.html
+++ b/phpBB/styles/subsilver2/template/search_results.html
@@ -26,6 +26,7 @@
<th nowrap="nowrap">&nbsp;{L_LAST_POST}&nbsp;</th>
</tr>
<!-- BEGIN searchresults -->
+ <!-- EVENT search_results_topic_before -->
<tr valign="middle">
<td class="row1" width="25" align="center">{searchresults.TOPIC_FOLDER_IMG}</td>
<td class="row1" width="25" align="center">
@@ -71,6 +72,7 @@
</p>
</td>
</tr>
+ <!-- EVENT search_results_topic_after -->
<!-- BEGINELSE -->
<tr valign="middle">
<td colspan="7" class="row3" align="center">{L_NO_SEARCH_RESULTS}</td>