aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/start.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-24 16:59:55 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-24 16:59:55 +0000
commit1028a8b6ce4dfffaf62d931cd0c037c751daef7a (patch)
tree781bb68783f197549667ca67c035b1f4e5a7a10f /mod/blog/start.php
parent51c843e64febb9a390b9abd83f8d3dd7acf39403 (diff)
downloadelgg-1028a8b6ce4dfffaf62d931cd0c037c751daef7a.tar.gz
elgg-1028a8b6ce4dfffaf62d931cd0c037c751daef7a.tar.bz2
Moved blog edit sidebar revisions to the top of the sidebar.
git-svn-id: http://code.elgg.org/elgg/trunk@6179 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/start.php')
-rw-r--r--mod/blog/start.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/blog/start.php b/mod/blog/start.php
index bce434fbc..6ac8a5dc7 100644
--- a/mod/blog/start.php
+++ b/mod/blog/start.php
@@ -61,7 +61,7 @@ function blog_init() {
// ecml
register_plugin_hook('get_views', 'ecml', 'blog_ecml_views_hook');
-
+
// Register profile menu hook
register_plugin_hook('profile_menu', 'profile', 'blog_profile_menu');
}
@@ -152,10 +152,10 @@ function blog_page_handler($page) {
$content_info = blog_get_page_content_read();
}
+ $sidebar = isset($content_info['sidebar']) ? $content_info['sidebar'] : '';
+
$sidebar .= elgg_view('blog/sidebar_menu');
- if (isset($content_info['sidebar'])) {
- $sidebar .= $content_info['sidebar'];
- }
+
$content = elgg_view('navigation/breadcrumbs') . $content_info['content'];
$body = elgg_view_layout('one_column_with_sidebar', $content, $sidebar);
@@ -214,12 +214,12 @@ function blog_ecml_views_hook($hook, $entity_type, $return_value, $params) {
function blog_profile_menu($hook, $entity_type, $return_value, $params) {
global $CONFIG;
-
+
$return_value[] = array(
'text' => elgg_echo('blog'),
'href' => "{$CONFIG->url}pg/blog/{$params['owner']->username}/read",
);
-
+
return $return_value;
}