aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views/default/blog/sidebar_menu.php
blob: 8ecec9a536b27198c41e80ea7e30087f6df5395e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
 * Blog sidebar menu.
 *
 * @package Blog
 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
 * @author Curverider Ltd
 * @copyright Curverider Ltd 2008-2010
 * @link http://elgg.org/
 */

// a few cases to consider:
// 1. looking at all posts
// 2. looking at a user's post
// 3. looking at your posts

/*
Logged in or not doesn't matter unless you're looking at your blog.
	Does it matter then on the side bar?

All blogs:
	Archives

Owned blogs;
	Archives



*/

$loggedin_user = get_loggedin_user();
$page_owner = page_owner_entity();

?>

<?php
	// include a view for plugins to extend
	echo elgg_view("blogs/sidebar", array("object_type" => 'blog'));
?>
<?php // temporarily force tag-cloud display
	echo "<h3>Tagcloud</h3>";
	echo "<div class='tagcloud sidebar'>".display_tagcloud(0, 100, 'tags')."</div>";
	echo "<a href=\"{$vars['url']}mod/tagcloud/tagcloud.php\">All site tags</a>";
?>