diff options
Diffstat (limited to 'mod/thewire/pages/everyone.php')
-rw-r--r-- | mod/thewire/pages/everyone.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mod/thewire/pages/everyone.php b/mod/thewire/pages/everyone.php new file mode 100644 index 000000000..75abd282d --- /dev/null +++ b/mod/thewire/pages/everyone.php @@ -0,0 +1,29 @@ +<?php
+/**
+ * All wire posts
+ *
+ */
+
+elgg_push_breadcrumb(elgg_echo('thewire'));
+
+$title = elgg_echo('thewire:everyone');
+
+if (elgg_is_logged_in()) {
+ $content .= elgg_view_form('thewire/add');
+ $content .= elgg_view('input/urlshortener');
+}
+
+$content .= elgg_list_entities(array(
+ 'type' => 'object',
+ 'subtype' => 'thewire',
+ 'limit' => 15,
+));
+
+$body = elgg_view_layout('content', array(
+ 'filter_context' => 'all',
+ 'content' => $content,
+ 'title' => $title,
+ 'buttons' => false,
+));
+
+echo elgg_view_page($title, $body);
|