From 8b83d3826376ccd989ac1669f025af4fabd15364 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 5 Apr 2010 13:23:37 +0000 Subject: feeds options added to the profile git-svn-id: http://code.elgg.org/elgg/trunk@5617 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/profile_lib.php | 3 +++ .../views/default/profile/profile_contents/feeds.php | 20 ++++++++++++++++++++ .../views/default/profile/profile_navigation.php | 11 ++++++++++- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 mod/profile/views/default/profile/profile_contents/feeds.php (limited to 'mod/profile') diff --git a/mod/profile/profile_lib.php b/mod/profile/profile_lib.php index 993985279..b38286e1e 100644 --- a/mod/profile/profile_lib.php +++ b/mod/profile/profile_lib.php @@ -29,6 +29,9 @@ function profile_get_user_profile_html($user, $section = 'activity') { case 'twitter': $body .= elgg_view('profile/profile_contents/twitter', $view_options); break; + case 'feeds': + $body .= elgg_view('profile/profile_contents/feeds', $view_options); + break; case 'commentwall': $comments = $user->getAnnotations('commentwall', 200, 0, 'desc'); $body .= elgg_view('profile/profile_contents/commentwall', array("entity" => $user, "comments" => $comments)); diff --git a/mod/profile/views/default/profile/profile_contents/feeds.php b/mod/profile/views/default/profile/profile_contents/feeds.php new file mode 100644 index 000000000..bff9ea1ea --- /dev/null +++ b/mod/profile/views/default/profile/profile_contents/feeds.php @@ -0,0 +1,20 @@ +twitter; +$page_owner = page_owner(); +$feeds = elgg_get_entities(array('types' => 'object', 'subtypes' => 'aggregator_feed_url', 'owner_guids' => $page_owner)); + +// if the twitter username is empty, then do not show +?> +
+$feeds)); +}else{ + echo "This user has not added any feeds."; +} +?> +
\ No newline at end of file diff --git a/mod/profile/views/default/profile/profile_navigation.php b/mod/profile/views/default/profile/profile_navigation.php index 1c2c782c7..a08cd847d 100755 --- a/mod/profile/views/default/profile/profile_navigation.php +++ b/mod/profile/views/default/profile/profile_navigation.php @@ -30,7 +30,10 @@ switch($section){ case 'commentwall': $commentwall = 'class="selected"'; break; - + case 'feeds': + $feeds = 'class="selected"'; + break; + case 'activity': default: $activity = 'class="selected"'; @@ -45,6 +48,12 @@ switch($section){
  • >Friends
  • >Comment Wall
  • +
  • >Feeds
  • + twitter){ ?> -- cgit v1.2.3