From 8423cda014c6aee9fb3a3f7ebe78bc0465e7355f Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 22 Jan 2011 20:33:28 +0000 Subject: 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 --- mod/pages/index.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'mod/pages/index.php') 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 = '

' . elgg_echo('pages:none') . '

'; +} + +$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'), -- cgit v1.2.3