From 1f3befaf97c2840dbd4ecadd8cc62bf838d32a45 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 26 Mar 2011 15:23:08 +0000 Subject: standardized thewire plugin git-svn-id: http://code.elgg.org/elgg/trunk@8841 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/thewire/pages/thewire/everyone.php | 60 +++++++++++++++--------------- mod/thewire/pages/thewire/friends.php | 46 +++++++++++------------ mod/thewire/pages/thewire/owner.php | 68 +++++++++++++++++----------------- mod/thewire/pages/thewire/reply.php | 56 ++++++++++++++-------------- mod/thewire/pages/thewire/thread.php | 56 ++++++++++++++-------------- 5 files changed, 143 insertions(+), 143 deletions(-) (limited to 'mod/thewire/pages') diff --git a/mod/thewire/pages/thewire/everyone.php b/mod/thewire/pages/thewire/everyone.php index 6ccff11fd..e3d38ace5 100644 --- a/mod/thewire/pages/thewire/everyone.php +++ b/mod/thewire/pages/thewire/everyone.php @@ -1,30 +1,30 @@ - 'object', - 'subtype' => 'thewire', - 'limit' => 15, -)); - -$body = elgg_view_layout('content', array( - 'filter_context' => 'all', - 'content' => $content, - 'title' => $title, - 'buttons' => false, - 'sidebar' => elgg_view('thewire/sidebar'), -)); - -echo elgg_view_page($title, $body); + 'object', + 'subtype' => 'thewire', + 'limit' => 15, +)); + +$body = elgg_view_layout('content', array( + 'filter_context' => 'all', + 'content' => $content, + 'title' => $title, + 'buttons' => false, + 'sidebar' => elgg_view('thewire/sidebar'), +)); + +echo elgg_view_page($title, $body); diff --git a/mod/thewire/pages/thewire/friends.php b/mod/thewire/pages/thewire/friends.php index 6e8642544..ab452aa55 100644 --- a/mod/thewire/pages/thewire/friends.php +++ b/mod/thewire/pages/thewire/friends.php @@ -1,23 +1,23 @@ -name, "thewire/owner/$owner->username"); -elgg_push_breadcrumb(elgg_echo('friends')); - -$content = list_user_friends_objects($owner->guid, 'thewire', 15, false); - -$body = elgg_view_layout('content', array( - 'filter_context' => 'friends', - 'content' => $content, - 'title' => $title, - 'buttons' => false, -)); - -echo elgg_view_page($title, $body); +name, "thewire/owner/$owner->username"); +elgg_push_breadcrumb(elgg_echo('friends')); + +$content = list_user_friends_objects($owner->guid, 'thewire', 15, false); + +$body = elgg_view_layout('content', array( + 'filter_context' => 'friends', + 'content' => $content, + 'title' => $title, + 'buttons' => false, +)); + +echo elgg_view_page($title, $body); diff --git a/mod/thewire/pages/thewire/owner.php b/mod/thewire/pages/thewire/owner.php index e52b445ab..d61307990 100644 --- a/mod/thewire/pages/thewire/owner.php +++ b/mod/thewire/pages/thewire/owner.php @@ -1,34 +1,34 @@ -name)); - -elgg_push_breadcrumb(elgg_echo('thewire'), "thewire/all"); -elgg_push_breadcrumb($owner->name); - -if (get_loggedin_userid() == $owner->guid) { - $content = elgg_view_form('thewire/add'); - $content .= elgg_view('input/urlshortener'); -} - -$content .= elgg_list_entities(array( - 'type' => 'object', - 'subtype' => 'thewire', - 'owner_guid' => $owner->guid, - 'limit' => 15, -)); - -$body = elgg_view_layout('content', array( - 'filter_context' => 'mine', - 'content' => $content, - 'title' => $title, - 'buttons' => false, - 'sidebar' => elgg_view('thewire/sidebar'), -)); - -echo elgg_view_page($title, $body); +name)); + +elgg_push_breadcrumb(elgg_echo('thewire'), "thewire/all"); +elgg_push_breadcrumb($owner->name); + +if (get_loggedin_userid() == $owner->guid) { + $content = elgg_view_form('thewire/add'); + $content .= elgg_view('input/urlshortener'); +} + +$content .= elgg_list_entities(array( + 'type' => 'object', + 'subtype' => 'thewire', + 'owner_guid' => $owner->guid, + 'limit' => 15, +)); + +$body = elgg_view_layout('content', array( + 'filter_context' => 'mine', + 'content' => $content, + 'title' => $title, + 'buttons' => false, + 'sidebar' => elgg_view('thewire/sidebar'), +)); + +echo elgg_view_page($title, $body); diff --git a/mod/thewire/pages/thewire/reply.php b/mod/thewire/pages/thewire/reply.php index c29f81669..826d513b6 100644 --- a/mod/thewire/pages/thewire/reply.php +++ b/mod/thewire/pages/thewire/reply.php @@ -1,28 +1,28 @@ - $post)); -$content .= elgg_view_form('thewire/add', array(), array('post' => $post)); -$content .= elgg_view('input/urlshortener'); - - -$body = elgg_view_layout('content', array( - 'filter' => false, - 'content' => $content, - 'title' => $title, - 'buttons' => false, -)); - -echo elgg_view_page($title, $body); + $post)); +$content .= elgg_view_form('thewire/add', array(), array('post' => $post)); +$content .= elgg_view('input/urlshortener'); + + +$body = elgg_view_layout('content', array( + 'filter' => false, + 'content' => $content, + 'title' => $title, + 'buttons' => false, +)); + +echo elgg_view_page($title, $body); diff --git a/mod/thewire/pages/thewire/thread.php b/mod/thewire/pages/thewire/thread.php index 8b6ee4bd0..5c32a8400 100644 --- a/mod/thewire/pages/thewire/thread.php +++ b/mod/thewire/pages/thewire/thread.php @@ -1,28 +1,28 @@ - "wire_thread", - "metadata_value" => $thread_id, - "type" => "object", - "subtype" => "thewire", - "limit" => 20, -)); - -$body = elgg_view_layout('content', array( - 'filter' => false, - 'content' => $content, - 'title' => $title, - 'buttons' => false, -)); - -echo elgg_view_page($title, $body); + "wire_thread", + "metadata_value" => $thread_id, + "type" => "object", + "subtype" => "thewire", + "limit" => 20, +)); + +$body = elgg_view_layout('content', array( + 'filter' => false, + 'content' => $content, + 'title' => $title, + 'buttons' => false, +)); + +echo elgg_view_page($title, $body); -- cgit v1.2.3