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 = "

address}\">{$b->title}

"; //get the user details $info .= "

{$friendlytime} "; //get the bookmark description if($s->description) $info .= "".elgg_echo('bookmarks:more')."

{$s->description}

"; else $info .= "

"; //display echo "
"; echo "
" . $info . "
"; } $user_inbox = $vars['url'] . "pg/bookmarks/" . page_owner_entity()->username; if (get_entities('object', 'bookmarks', $vars['entity']->container_guid, '', '', '', true) > $num) echo "
".elgg_echo('bookmarks:read')."
"; } else { echo "
" . elgg_echo("bookmarks:widget:description") . "
"; }