aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/annotation
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-17 12:03:17 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-17 12:03:17 +0000
commit31867d1a44f87c775014c9f9c0b8fd546d7c4ba9 (patch)
treed7edbdc4b6620dd2b7488ce5c9127086f78d5bc0 /views/default/river/annotation
parente0d1bf52ccde42d62d979b11791905f069bad8c4 (diff)
downloadelgg-31867d1a44f87c775014c9f9c0b8fd546d7c4ba9.tar.gz
elgg-31867d1a44f87c775014c9f9c0b8fd546d7c4ba9.tar.bz2
updated river views for content display and added new bookmarks river view code
git-svn-id: http://code.elgg.org/elgg/trunk@7657 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/river/annotation')
-rw-r--r--views/default/river/annotation/generic_comment/create.php24
1 files changed, 6 insertions, 18 deletions
diff --git a/views/default/river/annotation/generic_comment/create.php b/views/default/river/annotation/generic_comment/create.php
index 5198a98a8..aabb6a9c6 100644
--- a/views/default/river/annotation/generic_comment/create.php
+++ b/views/default/river/annotation/generic_comment/create.php
@@ -10,7 +10,11 @@ $title = $object->title;
if (!$title) {
$title = elgg_echo('untitled');
}
-$object_link = "<a href=\"{$object->getURL()}\">$title</a>";
+$params = array(
+ 'href' => $object->getURL(),
+ 'text' => $title,
+);
+$object_link = elgg_view('output/url', $params);
$type = $object->getType();
$subtype = $object->getSubtype();
@@ -20,23 +24,7 @@ echo elgg_echo('river:generic_comment', array($type_string, $object_link));
if ($comment) {
$excerpt = elgg_get_excerpt($comment->value);
- echo '<div class="elgg-river-excerpt">';
+ echo '<div class="elgg-river-content">';
echo $excerpt;
echo '</div>';
}
-
-/*
-$string = elgg_echo("river:posted:generic", array($url)) . " ";
-$string .= elgg_echo("{$subtype}:river:annotate") . " <a href=\"{$object->getURL()}\">" . $title . "</a>";
-$string .= "</span>";
-if (elgg_get_context() != 'riverdashboard') {
- $comment = elgg_get_excerpt($comment, 200);
- if ($comment) {
- $string .= "<div class='river_content_display'>";
- $string .= $comment;
- $string .= "</div>";
- }
-}
-echo $string;
- *
- */ \ No newline at end of file