diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-06 00:22:38 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-06 00:22:38 +0000 |
commit | 835c5685e386216e016212f589cdef047b027ac4 (patch) | |
tree | f1730d2264c2405ced985a930cc87899f6e61348 /mod/blog | |
parent | 2a43428c44761fae91f4acf046faccae5cb32644 (diff) | |
download | elgg-835c5685e386216e016212f589cdef047b027ac4.tar.gz elgg-835c5685e386216e016212f589cdef047b027ac4.tar.bz2 |
Fixed minor display issues with blog breadcrumbs and also the archives page
git-svn-id: http://code.elgg.org/elgg/trunk@7543 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog')
-rw-r--r-- | mod/blog/lib/blog.php | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/mod/blog/lib/blog.php b/mod/blog/lib/blog.php index b1c7c280f..331871fc8 100644 --- a/mod/blog/lib/blog.php +++ b/mod/blog/lib/blog.php @@ -27,7 +27,7 @@ function blog_get_page_content_read($guid = NULL) { return $return; } - elgg_push_breadcrumb($blog->title, $blog->getURL()); + elgg_push_breadcrumb($blog->title); $return['content'] = elgg_view_entity($blog, TRUE); //check to see if comment are on if ($blog->comments_on != 'Off') { @@ -60,6 +60,12 @@ function blog_get_page_content_list($owner_guid = NULL) { if ($owner_guid) { $options['owner_guid'] = $owner_guid; + // do not want to highlight the current page so pop what was already added + elgg_pop_breadcrumb(); + $crumbs_title = elgg_echo('blog:owned_blogs', array(get_user($owner_guid)->name)); + elgg_push_breadcrumb($crumbs_title); + + if ($owner_guid == $loggedin_userid) { $return['filter_context'] = 'mine'; } else{ @@ -155,7 +161,7 @@ function blog_get_page_content_archive($owner_guid, $lower = 0, $upper = 0) { $now = time(); elgg_push_breadcrumb(elgg_echo('blog:archives')); - $content = elgg_view('page_elements/content_header_member', array('type' => 'blog')); + //$content = elgg_view('page_elements/content_header_member', array('type' => 'blog')); if ($lower) { $lower = (int)$lower; @@ -211,10 +217,13 @@ function blog_get_page_content_archive($owner_guid, $lower = 0, $upper = 0) { $content .= $list; } + $title = elgg_echo('date:month:' . date('n', $lower), array(date('Y', $lower))); + return array( 'content' => $content, + 'title' => $title, + 'buttons' => '', 'filter' => '', - 'header' => '', ); } |