aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views/default/object/blog.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-24 13:52:42 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-24 13:52:42 +0000
commitf6045914d7488c43cd7761ddaded55b3791ae950 (patch)
tree858af954355662be850e921b8b9695bf5c3866d8 /mod/blog/views/default/object/blog.php
parentc7e2ad1a41eec3a4edc201fb62aa74fe0a0afa66 (diff)
downloadelgg-f6045914d7488c43cd7761ddaded55b3791ae950.tar.gz
elgg-f6045914d7488c43cd7761ddaded55b3791ae950.tar.bz2
supporting id for comments for in page links
git-svn-id: http://code.elgg.org/elgg/trunk@7719 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/views/default/object/blog.php')
-rw-r--r--mod/blog/views/default/object/blog.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php
index 199a7c822..639031113 100644
--- a/mod/blog/views/default/object/blog.php
+++ b/mod/blog/views/default/object/blog.php
@@ -37,7 +37,10 @@ if ($blog->comments_on != 'Off') {
//only display if there are commments
if ($comments_count != 0) {
$text = elgg_echo("comments") . " ($comments_count)";
- $comments_link = "<a href=\"{$blog->getURL()}#annotations\">$text</a>";
+ $comments_link = elgg_view('output/url', array(
+ 'href' => $blog->getURL() . '#blog-comments',
+ 'text' => $text,
+ ));
} else {
$comments_link = '';
}
@@ -47,7 +50,7 @@ if ($blog->comments_on != 'Off') {
// access is always shown.
$metadata = '<ul class="elgg-list-metadata">';
-$metadata .= '<li>' . elgg_view('output/access', array('entity' => $vars['entity'])) . '</li>';
+$metadata .= '<li>' . elgg_view('output/access', array('entity' => $blog)) . '</li>';
if (isloggedin() && $blog->getOwnerGUID() != get_loggedin_userid()) {
$likes = elgg_view_likes($blog);
@@ -90,10 +93,6 @@ $subtitle = "$author_text $date $categories $comments_link";
if ($full) {
- $params = array(
- 'title' => $blog->title,
- 'buttons' => '',
- );
$header = elgg_view_title($blog->title);
$params = array(