aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views/default/blog/sidebar.php
blob: 63ed85c0b8898f7ee6ee600b19006fea09de3ce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/**
 * Blog sidebar
 *
 * @package Blog
 */

// fetch & display latest comments
if ($vars['page'] == 'all') {
	echo elgg_view_latest_comments(0, 'object', 'blog');
} elseif ($vars['page'] == 'owner') {
	// @todo - what we want is the latest comments on this user's blog posts - elgg does not support this
	echo elgg_view_latest_comments(elgg_get_page_owner_guid(), 'object', 'blog');
}

echo elgg_view('blog/sidebar/archives', $vars);

echo elgg_view('blog/sidebar/tagcloud', $vars);