aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/blog/lib/blog.php15
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' => '',
);
}