From f4c8dce8e8d4f08600780ed5aa719dafe05746fe Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 6 Mar 2011 03:47:35 +0000 Subject: Fixes #3024 thewire view for the profile page is finished git-svn-id: http://code.elgg.org/elgg/trunk@8611 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/thewire/profile_status.php | 28 +++++++++++++++------- 1 file changed, 20 insertions(+), 8 deletions(-) (limited to 'mod/thewire/views/default/thewire/profile_status.php') diff --git a/mod/thewire/views/default/thewire/profile_status.php b/mod/thewire/views/default/thewire/profile_status.php index 33b05f479..cdf1e9409 100644 --- a/mod/thewire/views/default/thewire/profile_status.php +++ b/mod/thewire/views/default/thewire/profile_status.php @@ -1,10 +1,11 @@ guid; -$url_to_wire = elgg_get_site_url() . "pg/thewire/owner/" . $vars['entity']->username; //grab the user's latest from the wire $params = array( @@ -18,14 +19,25 @@ $latest_wire = elgg_get_entities($params); if ($latest_wire && count($latest_wire) > 0) { $latest_wire = $latest_wire[0]; $content = thewire_filter($latest_wire->description); - $time = "

(" . elgg_view_friendly_time($latest_wire->time_created) . ")

"; + $time = "

(" . elgg_view_friendly_time($latest_wire->time_created) . ")

"; - echo "
"; - echo $content; + $button = ''; if ($owner == elgg_get_logged_in_user_guid()) { - $text = elgg_echo('thewire:update'); - echo "$text"; + $url_to_wire = "pg/thewire/owner/" . $vars['entity']->username; + $button = elgg_view('output/url', array( + 'text' => elgg_echo('thewire:update'), + 'href' => $url_to_wire, + 'class' => 'elgg-button elgg-button-action right', + )); } - echo $time; - echo "
"; + + $body = $content . $time; + $content = elgg_view_image_block('', $body, array('image_alt' => $button)); + + echo <<< HTML +
+ $content +
+HTML; + } -- cgit v1.2.3