aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-24 22:39:02 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-24 22:39:02 +0000
commit988a684b57d6294e1418bc53bffd157675c11673 (patch)
tree47b34d93bf50fd992e9a7b9cd6c62064e52a1684
parentc0bc34a6ce4c08e652ef86712dd6b9c1781eade5 (diff)
downloadelgg-988a684b57d6294e1418bc53bffd157675c11673.tar.gz
elgg-988a684b57d6294e1418bc53bffd157675c11673.tar.bz2
Added anchor names for comments.
git-svn-id: http://code.elgg.org/elgg/trunk@5499 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/search/views/default/search/comments/entity.php4
-rw-r--r--views/default/annotation/generic_comment.php3
2 files changed, 4 insertions, 3 deletions
diff --git a/mod/search/views/default/search/comments/entity.php b/mod/search/views/default/search/comments/entity.php
index 3bfd01033..0d253c567 100644
--- a/mod/search/views/default/search/comments/entity.php
+++ b/mod/search/views/default/search/comments/entity.php
@@ -38,7 +38,7 @@ if ($entity->getVolatileData('search_unavailable_entity')) {
}
$title = sprintf(elgg_echo('search:comment_on'), $title);
- $url = $entity->getURL() . '#annotation-' . $entity->getVolatileData('search_match_annotation_id');
+ $url = $entity->getURL() . '#comment_' . $entity->getVolatileData('search_match_annotation_id');
$title = "<a href=\"$url\">$title</a>";
}
@@ -56,4 +56,4 @@ echo <<<___END
</div>
___END;
-?> \ No newline at end of file
+?>
diff --git a/views/default/annotation/generic_comment.php b/views/default/annotation/generic_comment.php
index ebcae0f97..02a6abb71 100644
--- a/views/default/annotation/generic_comment.php
+++ b/views/default/annotation/generic_comment.php
@@ -6,6 +6,7 @@
$owner = get_user($vars['annotation']->owner_guid);
?>
+<a name="comment_<?php echo $vars['annotation']->id; ?>"></a>
<div class="generic_comment clearfloat">
<div class="generic_comment_icon">
<?php
@@ -15,7 +16,7 @@ $owner = get_user($vars['annotation']->owner_guid);
));
?>
</div>
-
+
<div class="generic_comment_details">
<?php
// if the user looking at the comment can edit, show the delete link