From 9d2a1831b574d517592c0345fdf5aa173fcd42d7 Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 23 Mar 2010 21:38:14 +0000 Subject: Added filtering by archive date. git-svn-id: http://code.elgg.org/elgg/trunk@5490 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/blog/sidebar_menu.php | 46 ++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 13 deletions(-) (limited to 'mod/blog/views/default') diff --git a/mod/blog/views/default/blog/sidebar_menu.php b/mod/blog/views/default/blog/sidebar_menu.php index d4f67ec98..bd348c7e6 100644 --- a/mod/blog/views/default/blog/sidebar_menu.php +++ b/mod/blog/views/default/blog/sidebar_menu.php @@ -23,23 +23,43 @@ All blogs: Owned blogs; Archives - - - */ $loggedin_user = get_loggedin_user(); $page_owner = page_owner_entity(); - // include a view for plugins to extend - echo elgg_view("blogs/sidebar", array("object_type" => 'blog')); +// include a view for plugins to extend +echo elgg_view("blogs/sidebar", array("object_type" => '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)); + +if ($dates = get_entity_dates('object', 'blog', page_owner())) { + echo elgg_view_title(elgg_echo('blog:archives')); + + echo ''; +} + - // 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)); +// temporarily force tag-cloud display +$tags = display_tagcloud(0, 100, 'tags'); +echo <<<___END +

Tagcloud

+ +All site tags +___END; - // temporarily force tag-cloud display - echo "

Tagcloud

"; - echo ""; - echo "All site tags"; -?> +?> \ No newline at end of file -- cgit v1.2.3