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));
--- /dev/null
+<?php\r
+/**\r
+ * Elgg profile feeds page\r
+ */\r
+\r
+//$twitter_username = $vars['entity']->twitter;\r
+$page_owner = page_owner();\r
+$feeds = elgg_get_entities(array('types' => 'object', 'subtypes' => 'aggregator_feed_url', 'owner_guids' => $page_owner));\r
+\r
+// if the twitter username is empty, then do not show\r
+?>\r
+<div id="profile_content">\r
+<?php\r
+if($feeds){\r
+ echo elgg_view('aggregator/profile',array('feeds'=>$feeds));\r
+}else{\r
+ echo "This user has not added any feeds.";\r
+}\r
+?>\r
+</div>
\ No newline at end of file
case 'commentwall':
$commentwall = 'class="selected"';
break;
-
+ case 'feeds':
+ $feeds = 'class="selected"';
+ break;
+
case 'activity':
default:
$activity = 'class="selected"';
<li <?php echo $friends; ?>><a href="<?php echo $url . 'friends'; ?>">Friends</a></li>
<li <?php echo $commentwall; ?>><a href="<?php echo $url . 'commentwall'; ?>">Comment Wall</a></li>
<?php
+ //check to see if the aggregator plugin is enabled
+ if(is_plugin_enabled('aggregator')){
+ ?>
+ <li <?php echo $feeds; ?>><a href="<?php echo $url . 'feeds'; ?>">Feeds</a></li>
+ <?php
+ }
//check to see if the twitter username is set
if($vars['entity']->twitter){
?>