$area3 .= elgg_view("bookmarks/bookmarklet");
}
// include statistics
-$area3 .= elgg_view("bookmarks/stats");
+$count = elgg_get_entities(array('type' => 'object', 'subtype' => 'bookmarks', 'count' => true));
+$area3 .= elgg_view("bookmarks/stats", array('count' => $count));
// Format page
$body = elgg_view_layout('one_column_with_sidebar', $area1.$area2, $area3);
'bookmarks:shared' => "Bookmarked",
'bookmarks:visit' => "Visit resource",
'bookmarks:recent' => "Recent bookmarks",
-
+ 'bookmarks:stats' => "Bookmark stats",
+ 'bookmarks:resources' => "resources bookmarked",
'bookmarks:river:created' => '%s bookmarked',
'bookmarks:river:annotate' => 'posted a comment on this bookmarked item',
'bookmarks:river:item' => 'an item',
* All site bookmark stats
**/
-$count_bookmarks = elgg_get_entities("object", "bookmarks",0,"",10,0,true,0,null,0,0);
-$count_bookmark_comments = count_annotations(0, "object", "bookmarks","generic_comment");
-
-echo "<h3>Bookmark stats</h3>";
-echo "<p>".$count_bookmarks . " resources bookmarked.</p>";
+echo "<h3>".elgg_echo('bookmarks:stats')."</h3>";
+echo "<p>". $vars['count'] . " " . elgg_echo('bookmarks:resources') .".</p>";
\ No newline at end of file