diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-06-12 21:56:35 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-06-12 21:56:35 -0400 |
commit | fd4f7ef53452f8ccd1c53b82e6b2cc0c86788e3f (patch) | |
tree | 3e783b134f18033550336791391bf27f6c4736b2 /mod/thewire/pages | |
parent | 35059d588ac7bfc4a1881740468361e2416011de (diff) | |
download | elgg-fd4f7ef53452f8ccd1c53b82e6b2cc0c86788e3f.tar.gz elgg-fd4f7ef53452f8ccd1c53b82e6b2cc0c86788e3f.tar.bz2 |
Fixes #4567 adds a wire post view
Diffstat (limited to 'mod/thewire/pages')
-rw-r--r-- | mod/thewire/pages/thewire/view.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mod/thewire/pages/thewire/view.php b/mod/thewire/pages/thewire/view.php new file mode 100644 index 000000000..f45f94bfe --- /dev/null +++ b/mod/thewire/pages/thewire/view.php @@ -0,0 +1,30 @@ +<?php +/** + * View individual wire post + */ + +$post = get_entity(get_input('guid')); +if (!$post) { + // @todo need special handling for not getting access to entity (check for existence, access) + forward(); +} +$owner = $post->getOwnerEntity(); +if (!$owner) { + forward(); +} + +$title = elgg_echo('thewire:by', array($owner->name)); + +elgg_push_breadcrumb(elgg_echo('thewire'), 'thewire/all'); +elgg_push_breadcrumb($owner->name, 'thewire/owner/' . $owner->username); +elgg_push_breadcrumb($title); + +$content = elgg_view_entity($post); + +$body = elgg_view_layout('content', array( + 'filter' => false, + 'content' => $content, + 'title' => $title, +)); + +echo elgg_view_page($title, $body); |