Skip to content

Commit

Permalink
[ticket/13808] search_body_form_before
Browse files Browse the repository at this point in the history
Extensions may be designed to add secondary search options,
such as Google search in the search_body.html.
There are no events in the searchbody, so this should be merged.

PHPBB3-13808
  • Loading branch information
dragosvr92 committed May 9, 2015
1 parent b3b7f8e commit 345c25c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions phpBB/docs/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,14 @@ quickreply_editor_message_before
* Since: 3.1.0-a4
* Purpose: Add content before the quick reply textbox

search_body_form_before
===
* Locations:
+ styles/prosilver/template/search_body.html
+ styles/subsilver2/template/search_body.html
* Since: 3.1.5
* Purpose: Add content before the search form

search_results_header_after
===
* Locations:
Expand Down
1 change: 1 addition & 0 deletions phpBB/styles/prosilver/template/search_body.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<h2 class="solo">{L_SEARCH}</h2>

<!-- EVENT search_body_form_before -->
<form method="get" action="{S_SEARCH_ACTION}" data-focus="keywords">

<div class="panel">
Expand Down
1 change: 1 addition & 0 deletions phpBB/styles/subsilver2/template/search_body.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<div id="pagecontent">

<!-- EVENT search_body_form_before -->
<form method="get" action="{S_SEARCH_ACTION}">

<table class="tablebg" width="100%" cellspacing="1">
Expand Down

0 comments on commit 345c25c

Please sign in to comment.