aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/index.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-22 20:33:28 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-22 20:33:28 +0000
commit8423cda014c6aee9fb3a3f7ebe78bc0465e7355f (patch)
treee1baa523308221d33908e4ea4014191ade8d5d66 /mod/pages/index.php
parentcec8a4f34681d4c2a43e0c07de0a68bc22f1b558 (diff)
downloadelgg-8423cda014c6aee9fb3a3f7ebe78bc0465e7355f.tar.gz
elgg-8423cda014c6aee9fb3a3f7ebe78bc0465e7355f.tar.bz2
finished the first pass on the pages plugin for using the new HTML/CSS
git-svn-id: http://code.elgg.org/elgg/trunk@7904 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/pages/index.php')
-rw-r--r--mod/pages/index.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/mod/pages/index.php b/mod/pages/index.php
index b257b14b4..c4e391206 100644
--- a/mod/pages/index.php
+++ b/mod/pages/index.php
@@ -18,7 +18,7 @@ group_gatekeeper();
$title = elgg_echo('pages:owner', array($owner->name));
-elgg_push_breadcrumb($title);
+elgg_push_breadcrumb($owner->name);
$content = elgg_list_entities(array(
'types' => 'object',
@@ -27,9 +27,17 @@ $content = elgg_list_entities(array(
'limit' => $limit,
'full_view' => false,
));
+if (!$content) {
+ $content = '<p>' . elgg_echo('pages:none') . '</p>';
+}
+
+$filter_context = '';
+if (elgg_get_page_owner_guid() == get_loggedin_userid()) {
+ $filter_context = 'mine';
+}
$params = array(
- 'filter_context' => 'mine',
+ 'filter_context' => $filter_context,
'content' => $content,
'title' => $title,
'sidebar' => elgg_view('pages/sidebar/navigation'),