aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/lib
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-06 00:22:38 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-06 00:22:38 +0000
commit835c5685e386216e016212f589cdef047b027ac4 (patch)
treef1730d2264c2405ced985a930cc87899f6e61348 /mod/blog/lib
parent2a43428c44761fae91f4acf046faccae5cb32644 (diff)
downloadelgg-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/lib')
-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' => '',
);
}