diff options
| author | rxu <rxu@mail.ru> | 2015-08-05 02:57:02 +0700 | 
|---|---|---|
| committer | rxu <rxu@mail.ru> | 2015-11-12 20:53:35 +0700 | 
| commit | 9ef06d67e608f017e92dbf79cf9658594cab8d2a (patch) | |
| tree | c9c2f88aa72cca15e1b00567162e3d716403f2bb | |
| parent | 224efba459f073e0e954a047f0dd2e70cdba0c75 (diff) | |
| download | forums-9ef06d67e608f017e92dbf79cf9658594cab8d2a.tar forums-9ef06d67e608f017e92dbf79cf9658594cab8d2a.tar.gz forums-9ef06d67e608f017e92dbf79cf9658594cab8d2a.tar.bz2 forums-9ef06d67e608f017e92dbf79cf9658594cab8d2a.tar.xz forums-9ef06d67e608f017e92dbf79cf9658594cab8d2a.zip  | |
[ticket/14066] Add template events to search_body.html
PHPBB3-14066
| -rw-r--r-- | phpBB/docs/events.md | 104 | ||||
| -rw-r--r-- | phpBB/styles/prosilver/template/search_body.html | 13 | ||||
| -rw-r--r-- | phpBB/styles/subsilver2/template/search_body.html | 20 | 
3 files changed, 134 insertions, 3 deletions
diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md index 385d3bf0e9..92f929fa0a 100644 --- a/phpBB/docs/events.md +++ b/phpBB/docs/events.md @@ -1550,6 +1550,14 @@ quickreply_editor_subject_before  * Since: 3.1.7-RC1  * Purpose: Add content before the quick reply subject textbox +search_body_form_after +=== +* Locations: +    + styles/prosilver/template/search_body.html +    + styles/subsilver2/template/search_body.html +* Since: 3.1.7-RC1 +* Purpose: Add content after the search form +  search_body_form_before  ===  * Locations: @@ -1558,6 +1566,102 @@ search_body_form_before  * Since: 3.1.5-RC1  * Purpose: Add content before the search form +search_body_recent_search_after +=== +* Locations: +    + styles/prosilver/template/search_body.html +    + styles/subsilver2/template/search_body.html +* Since: 3.1.7-RC1 +* Purpose: Add content after the recent search queries list + +search_body_recent_search_before +=== +* Locations: +    + styles/prosilver/template/search_body.html +    + styles/subsilver2/template/search_body.html +* Since: 3.1.7-RC1 +* Purpose: Add content before the recent search queries list + +search_body_search_display_options_append +=== +* Locations: +    + styles/prosilver/template/search_body.html +    + styles/subsilver2/template/search_body.html +* Since: 3.1.7-RC1 +* Purpose: Put content at the bottom of the search query display options fields set + +search_body_search_display_options_prepend +=== +* Locations: +    + styles/prosilver/template/search_body.html +    + styles/subsilver2/template/search_body.html +* Since: 3.1.7-RC1 +* Purpose: Put content at the top of the search query display options fields set + +search_body_search_query_after +=== +* Locations: +    + styles/prosilver/template/search_body.html +    + styles/subsilver2/template/search_body.html +* Since: 3.1.7-RC1 +* Purpose: Add content after the search query fields set + +search_body_search_query_append +=== +* Locations: +    + styles/prosilver/template/search_body.html +    + styles/subsilver2/template/search_body.html +* Since: 3.1.7-RC1 +* Purpose: Put content at the bottom of the search query fields set + +search_body_search_query_before +=== +* Locations: +    + styles/prosilver/template/search_body.html +    + styles/subsilver2/template/search_body.html +* Since: 3.1.7-RC1 +* Purpose: Add content before the search query fields set + +search_body_search_query_prepend +=== +* Locations: +    + styles/prosilver/template/search_body.html +    + styles/subsilver2/template/search_body.html +* Since: 3.1.7-RC1 +* Purpose: Put content at the top of the search query fields set + +search_body_search_options_after +=== +* Locations: +    + styles/prosilver/template/search_body.html +    + styles/subsilver2/template/search_body.html +* Since: 3.1.7-RC1 +* Purpose: Add content after the search query options fields set + +search_body_search_options_append +=== +* Locations: +    + styles/prosilver/template/search_body.html +    + styles/subsilver2/template/search_body.html +* Since: 3.1.7-RC1 +* Purpose: Put content at the bottom of the search query options fields set + +search_body_search_options_before +=== +* Locations: +    + styles/prosilver/template/search_body.html +    + styles/subsilver2/template/search_body.html +* Since: 3.1.7-RC1 +* Purpose: Add content before the search query options fields set + +search_body_search_options_prepend +=== +* Locations: +    + styles/prosilver/template/search_body.html +    + styles/subsilver2/template/search_body.html +* Since: 3.1.7-RC1 +* Purpose: Put content at the top of the search query options fields set +  search_results_header_after  ===  * Locations: diff --git a/phpBB/styles/prosilver/template/search_body.html b/phpBB/styles/prosilver/template/search_body.html index 8d56a103d2..618e2680ba 100644 --- a/phpBB/styles/prosilver/template/search_body.html +++ b/phpBB/styles/prosilver/template/search_body.html @@ -9,7 +9,9 @@  	<div class="inner">  	<h3>{L_SEARCH_QUERY}</h3> +	<!-- EVENT search_body_search_query_before -->  	<fieldset> +	<!-- EVENT search_body_search_query_prepend -->  	<dl>  		<dt><label for="keywords">{L_SEARCH_KEYWORDS}{L_COLON}</label><br /><span>{L_SEARCH_KEYWORDS_EXPLAIN}</span></dt>  		<dd><input type="search" class="inputbox" name="keywords" id="keywords" size="40" title="{L_SEARCH_KEYWORDS}" /></dd> @@ -20,7 +22,9 @@  		<dt><label for="author">{L_SEARCH_AUTHOR}{L_COLON}</label><br /><span>{L_SEARCH_AUTHOR_EXPLAIN}</span></dt>  		<dd><input type="search" class="inputbox" name="author" id="author" size="40" title="{L_SEARCH_AUTHOR}" /></dd>  	</dl> +	<!-- EVENT search_body_search_query_append -->  	</fieldset> +	<!-- EVENT search_body_search_query_after -->  	</div>  </div> @@ -30,7 +34,9 @@  	<h3>{L_SEARCH_OPTIONS}</h3> +	<!-- EVENT search_body_search_options_before -->  	<fieldset> +	<!-- EVENT search_body_search_options_prepend -->  	<dl>  		<dt><label for="search_forum">{L_SEARCH_FORUMS}{L_COLON}</label><br /><span>{L_SEARCH_FORUMS_EXPLAIN}</span></dt>  		<dd><select name="fid[]" id="search_forum" multiple="multiple" size="8" title="{L_SEARCH_FORUMS}">{S_FORUM_OPTIONS}</select></dd> @@ -49,9 +55,11 @@  		<dd><label for="sf3"><input type="radio" name="sf" id="sf3" value="titleonly" /> {L_SEARCH_TITLE_ONLY}</label></dd>  		<dd><label for="sf4"><input type="radio" name="sf" id="sf4" value="firstpost" /> {L_SEARCH_FIRST_POST}</label></dd>  	</dl> +	<!-- EVENT search_body_search_options_append -->  	<hr class="dashed" /> +	<!-- EVENT search_body_search_display_options_prepend -->  	<dl>  		<dt><label for="show_results1">{L_DISPLAY_RESULTS}{L_COLON}</label></dt>  		<dd> @@ -74,7 +82,9 @@  		<dt><label>{L_RETURN_FIRST}{L_COLON}</label></dt>  		<dd><select name="ch" title="{L_RETURN_FIRST}">{S_CHARACTER_OPTIONS}</select> {L_POST_CHARACTERS}</dd>  	</dl> +	<!-- EVENT search_body_search_display_options_append -->  	</fieldset> +	<!-- EVENT search_body_search_options_after -->  	</div>  </div> @@ -91,7 +101,9 @@  </div>  </form> +<!-- EVENT search_body_form_after --> +<!-- EVENT search_body_recent_search_before -->  <!-- IF .recentsearch -->  <div class="forumbg forumbg-table">  	<div class="inner"> @@ -119,5 +131,6 @@  	</div>  </div>  <!-- ENDIF --> +<!-- EVENT search_body_recent_search_after -->  <!-- INCLUDE overall_footer.html --> diff --git a/phpBB/styles/subsilver2/template/search_body.html b/phpBB/styles/subsilver2/template/search_body.html index d3aa758b43..84ea73ea30 100644 --- a/phpBB/styles/subsilver2/template/search_body.html +++ b/phpBB/styles/subsilver2/template/search_body.html @@ -6,9 +6,12 @@  	<form method="get" action="{S_SEARCH_ACTION}">  	<table class="tablebg" width="100%" cellspacing="1"> +	<!-- DEFINE $COLSPAN = 4 --> +	<!-- EVENT search_body_search_query_before -->  	<tr> -		<th colspan="4">{L_SEARCH_QUERY}</th> +		<th colspan="{$COLSPAN}">{L_SEARCH_QUERY}</th>  	</tr> +	<!-- EVENT search_body_search_query_prepend -->  	<tr>  		<td class="row1" colspan="2" width="50%"><b class="genmed">{L_SEARCH_KEYWORDS}{L_COLON} </b><br /><span class="gensmall">{L_SEARCH_KEYWORDS_EXPLAIN}</span></td>  		<td class="row2" colspan="2" valign="top"><input type="text" style="width: 300px" class="post" name="keywords" size="30" /><br /><input type="radio" class="radio" name="terms" value="all" checked="checked" /> <span class="genmed">{L_SEARCH_ALL_TERMS}</span><br /><input type="radio" class="radio" name="terms" value="any" /> <span class="genmed">{L_SEARCH_ANY_TERMS}</span></td> @@ -21,15 +24,21 @@  		<td class="row1" colspan="2"><b class="genmed">{L_SEARCH_FORUMS}{L_COLON} </b><br /><span class="gensmall">{L_SEARCH_FORUMS_EXPLAIN}</span></td>  		<td class="row2" colspan="2"><select name="fid[]" multiple="multiple" size="5">{S_FORUM_OPTIONS}</select></td>  	</tr> +	<!-- EVENT search_body_search_query_append --> +	<!-- EVENT search_body_search_query_after --> +	<!-- EVENT search_body_search_options_before -->  	<tr> -		<th colspan="4">{L_SEARCH_OPTIONS}</th> +		<th colspan="{$COLSPAN}">{L_SEARCH_OPTIONS}</th>  	</tr> +	<!-- EVENT search_body_search_options_prepend -->  	<tr>  		<td class="row1" width="25%" nowrap="nowrap"><b class="genmed">{L_SEARCH_SUBFORUMS}{L_COLON} </b></td>  		<td class="row2" width="25%" nowrap="nowrap"><input type="radio" class="radio" name="sc" value="1" checked="checked" /> <span class="genmed">{L_YES}</span>  <input type="radio" class="radio" name="sc" value="0" /> <span class="genmed">{L_NO}</span></td>  		<td class="row1" width="25%" nowrap="nowrap"><b class="genmed">{L_SEARCH_WITHIN}{L_COLON} </b></td>  		<td class="row2" width="25%" nowrap="nowrap"><input type="radio" class="radio" name="sf" value="all" checked="checked" /> <span class="genmed">{L_SEARCH_TITLE_MSG}</span><br /><input type="radio" class="radio" name="sf" value="msgonly" /> <span class="genmed">{L_SEARCH_MSG_ONLY}</span> <br /><input type="radio" class="radio" name="sf" value="titleonly" /> <span class="genmed">{L_SEARCH_TITLE_ONLY}</span> <br /><input type="radio" class="radio" name="sf" value="firstpost" /> <span class="genmed">{L_SEARCH_FIRST_POST}</span></td>  	</tr> +	<!-- EVENT search_body_search_options_append --> +	<!-- EVENT search_body_search_display_options_prepend -->  	<tr>  		<td class="row1"><b class="genmed">{L_RESULT_SORT}{L_COLON} </b></td>  		<td class="row2" nowrap="nowrap">{S_SELECT_SORT_KEY}<br /><input type="radio" class="radio" name="sd" value="a" /> <span class="genmed">{L_SORT_ASCENDING}</span><br /><input type="radio" class="radio" name="sd" value="d" checked="checked" /> <span class="genmed">{L_SORT_DESCENDING}</span></td> @@ -42,15 +51,19 @@  		<td class="row1" nowrap="nowrap"><b class="genmed">{L_RETURN_FIRST}{L_COLON} </b></td>  		<td class="row2" nowrap="nowrap"><select name="ch">{S_CHARACTER_OPTIONS}</select> <span class="genmed">{L_POST_CHARACTERS}</span></td>  	</tr> +	<!-- EVENT search_body_search_display_options_append --> +	<!-- EVENT search_body_search_options_after -->  	<tr> -		<td class="cat" colspan="4" align="center">{S_HIDDEN_FIELDS}<input class="btnmain" name="submit" type="submit" value="{L_SEARCH}" />  <input class="btnlite" type="reset" value="{L_RESET}" /></td> +		<td class="cat" colspan="{$COLSPAN}" align="center">{S_HIDDEN_FIELDS}<input class="btnmain" name="submit" type="submit" value="{L_SEARCH}" />  <input class="btnlite" type="reset" value="{L_RESET}" /></td>  	</tr>  	</table>  	</form> +	<!-- EVENT search_body_form_after -->  	<br clear="all" /> +	<!-- EVENT search_body_recent_search_before -->  	<!-- IF .recentsearch -->  	<table class="tablebg" width="100%" cellspacing="1">  	<tr> @@ -67,6 +80,7 @@  	<br clear="all" />  	<!-- ENDIF --> +	<!-- EVENT search_body_recent_search_after -->  	</div>  | 
