'blog'));
// fetch & display latest comments on all blog posts
$comments = get_annotations(0, "object", "blog", "generic_comment", "", 0, 4, 0, "desc");
echo elgg_view('annotation/latest_comments', array('comments' => $comments));
// only show archives for users or groups.
// This is a limitation of the URL schema.
if ($page_owner) {
$dates = blog_get_blog_months($user);
if ($dates) {
echo "
".elgg_echo('blog:archives')."
";
echo '';
foreach($dates as $date) {
$date = $date->yearmonth;
$timestamplow = mktime(0,0,0,substr($date,4,2),1,substr($date,0,4));
$timestamphigh = mktime(0,0,0,((int) substr($date,4,2)) + 1,1,substr($date,0,4));
if (!isset($page_owner)) $page_owner = page_owner_entity();
$link = $CONFIG->wwwroot . 'pg/blog/' . $page_owner->username . '/archive/' . $timestamplow . '/' . $timestamphigh;
//add_submenu_item(sprintf(elgg_echo('date:month:' . substr($date,4,2)), substr($date, 0, 4)), $link, 'filter');
$month = sprintf(elgg_echo('date:month:' . substr($date,4,2)), substr($date, 0, 4));
echo "- $month
- ";
}
echo '
';
}
}
// tag-cloud display
echo display_tagcloud(0, 50, 'tags');
?>