[ticket/12177] Add ucp_friend_list_before/after

Add events before and after list of friends in UCP template

PHPBB3-12177
This commit is contained in:
lucifer4o 2014-02-13 13:10:00 +02:00 committed by Stanislav Atanasov
parent 13e7bd76a5
commit 89007db505
3 changed files with 20 additions and 0 deletions

View file

@ -398,6 +398,22 @@ ucp_prefs_view_select_menu_append
* Purpose: Add options to the bottom of the drop-down lists block of the Edit
Display Options screen
ucp_friend_list_before
===
* Locations:
+ styles/prosilver/template/ucp_zebra_friends.html
+ styles/subsilver2/template/ucp_zebra_friends.html
* Since: 3.1.0-a3
* Purpose: Add optional elements before list of friends in UCP
ucp_friend_list_after
===
* Locations:
+ styles/prosilver/template/ucp_zebra_friends.html
+ styles/subsilver2/template/ucp_zebra_friends.html
* Since: 3.1.0-a3
* Purpose: Add optional elements after list of friends in UCP
viewtopic_print_head_append
===
* Locations:

View file

@ -11,6 +11,7 @@
<fieldset class="fields2">
<!-- IF ERROR --><p class="error">{ERROR}</p><!-- ENDIF -->
<!-- EVENT ucp_friend_list_before -->
<dl>
<dt><label <!-- IF S_USERNAME_OPTIONS -->for="usernames"<!-- ENDIF -->>{L_YOUR_FRIENDS}{L_COLON}</label><br /><span>{L_YOUR_FRIENDS_EXPLAIN}</span></dt>
<dd>
@ -21,6 +22,7 @@
<!-- ENDIF -->
</dd>
</dl>
<!-- EVENT ucp_friend_list_after -->
<dl>
<dt><label for="add">{L_ADD_FRIENDS}{L_COLON}</label><br /><span>{L_ADD_FRIENDS_EXPLAIN}</span></dt>
<dd><textarea name="add" id="add" rows="3" cols="30" class="inputbox">{USERNAMES}</textarea></dd>

View file

@ -4,6 +4,7 @@
<tr>
<th colspan="2" valign="middle">{L_TITLE}</th>
</tr>
<!-- EVENT ucp_friend_list_before -->
<tr>
<td class="row3" colspan="2"><span class="gensmall">{L_FRIENDS_EXPLAIN}</span></td>
</tr>
@ -16,6 +17,7 @@
<td class="row1" width="40%"><b class="genmed">{L_YOUR_FRIENDS}{L_COLON}</b><br /><span class="gensmall">{L_YOUR_FRIENDS_EXPLAIN}</span></td>
<td class="row2" align="center"><!-- IF S_USERNAME_OPTIONS --><select name="usernames[]" multiple="multiple" size="5">{S_USERNAME_OPTIONS}</select><!-- ELSE --><b class="genmed">{L_NO_FRIENDS}</b><!-- ENDIF --></td>
</tr>
<!-- EVENT ucp_friend_list_after -->
<tr>
<td class="row1"><b class="genmed">{L_ADD_FRIENDS}{L_COLON}</b><br /><span class="gensmall">{L_ADD_FRIENDS_EXPLAIN} [ <a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a> ]</span></td>
<td class="row2" align="center"><textarea name="add" rows="5" cols="30">{USERNAMES}</textarea><br /></td>