From 1d236907156a291118c744e6f0bf253f70eb0422 Mon Sep 17 00:00:00 2001 From: dave Date: Wed, 31 Mar 2010 12:39:56 +0000 Subject: blog river view altered to pull out some content git-svn-id: http://code.elgg.org/elgg/trunk@5563 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/river/object/blog/create.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'mod/blog/views/default/river') diff --git a/mod/blog/views/default/river/object/blog/create.php b/mod/blog/views/default/river/object/blog/create.php index fef666814..d59d601f5 100644 --- a/mod/blog/views/default/river/object/blog/create.php +++ b/mod/blog/views/default/river/object/blog/create.php @@ -1,20 +1,22 @@ subject_guid); $object = get_entity($vars['item']->object_guid); $url = $object->getURL(); +$contents = strip_tags($object->description); //strip tags from the contents to stop large images etc blowing out the river view $url = "getURL()}\">{$performed_by->name}"; $title = sprintf(elgg_echo('blog:river:create'), $url); -$string .= "getURL() . "\">" . $object->title . " " . friendly_time($object->publish_time) . ""; - +$string .= $title . " getURL() . "\">" . $object->title . " " . friendly_time($object->publish_time) . ""; +$string .= "
"; + $string .= "
"; + if(strlen($contents) > 200) { + $string .= substr($contents, 0, strpos($contents, ' ', 200)) . "..."; + }else{ + $string .= $contents; + } + $string .= "
"; echo $string; \ No newline at end of file -- cgit v1.2.3