* @copyright Curverider Ltd 2008-2010 * @link http://elgg.org/ */ //get the num of shares the user want to display $num = $vars['entity']->num_display; //if no number has been set, default to 4 if(!$num) $num = 4; //grab the users bookmarked items $bookmarks = elgg_get_entities('object', 'bookmarks',$vars['entity']->owner_guid, "", $num, 0, false); if($bookmarks){ foreach($bookmarks as $b){ //get the owner $owner = $b->getOwnerEntity(); //get the time $friendlytime = elgg_view_friendly_time($s->time_created); //get the bookmark title $info = "
"; //get the user details $info .= "{$s->description}