aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire/pages/thewire/user.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-18 01:31:22 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-18 01:31:22 +0000
commit01435072dc7d9b46bc30a3216501684a72e716a1 (patch)
tree7099a30d696c47302afea2f482e3142f9afec81a /mod/thewire/pages/thewire/user.php
parent231ca23ea10335a03b185d60a07ae3c92e9dfd63 (diff)
downloadelgg-01435072dc7d9b46bc30a3216501684a72e716a1.tar.gz
elgg-01435072dc7d9b46bc30a3216501684a72e716a1.tar.bz2
Refs #3158 namespaced pages for bookmarks and thewire
git-svn-id: http://code.elgg.org/elgg/trunk@8759 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/thewire/pages/thewire/user.php')
-rw-r--r--mod/thewire/pages/thewire/user.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/mod/thewire/pages/thewire/user.php b/mod/thewire/pages/thewire/user.php
new file mode 100644
index 000000000..5645b23ba
--- /dev/null
+++ b/mod/thewire/pages/thewire/user.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * User's wire posts
+ *
+ */
+
+$owner = elgg_get_page_owner_entity();
+
+$title = elgg_echo('thewire:user', array($owner->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,
+));
+
+echo elgg_view_page($title, $body);