From 56dce72f0d61160f9d66e1529f2012415bc4b0aa Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Wed, 29 Jun 2011 06:59:42 -0400 Subject: Fixes #3578 added a css class to thewire add form --- mod/thewire/pages/thewire/friends.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mod/thewire/pages/thewire/friends.php') diff --git a/mod/thewire/pages/thewire/friends.php b/mod/thewire/pages/thewire/friends.php index 0dfdcada9..265b73eab 100644 --- a/mod/thewire/pages/thewire/friends.php +++ b/mod/thewire/pages/thewire/friends.php @@ -11,7 +11,13 @@ elgg_push_breadcrumb(elgg_echo('thewire'), "thewire/all"); elgg_push_breadcrumb($owner->name, "thewire/owner/$owner->username"); elgg_push_breadcrumb(elgg_echo('friends')); -$content = list_user_friends_objects($owner->guid, 'thewire', 15, false); +if (get_loggedin_userid() == $owner->guid) { + $form_vars = array('class' => 'thewire-form'); + $content = elgg_view_form('thewire/add', $form_vars); + $content .= elgg_view('input/urlshortener'); +} + +$content .= list_user_friends_objects($owner->guid, 'thewire', 15, false); $body = elgg_view_layout('content', array( 'filter_context' => 'friends', -- cgit v1.2.3