diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-26 20:36:29 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-26 20:36:29 +0000 |
commit | b3553bc861924fbb949f97c2fe31703c07da4e65 (patch) | |
tree | 26dfff9244f4e26544787f77e51b65b0b2fcf8b7 /mod | |
parent | a6ce9348d676886311a654a305edcd6dfd7100ab (diff) | |
download | elgg-b3553bc861924fbb949f97c2fe31703c07da4e65.tar.gz elgg-b3553bc861924fbb949f97c2fe31703c07da4e65.tar.bz2 |
Added river item views to blog.
git-svn-id: http://code.elgg.org/elgg/trunk@5523 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r-- | mod/blog/views/default/river/object/blog/create.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mod/blog/views/default/river/object/blog/create.php b/mod/blog/views/default/river/object/blog/create.php new file mode 100644 index 000000000..fef666814 --- /dev/null +++ b/mod/blog/views/default/river/object/blog/create.php @@ -0,0 +1,20 @@ +<?php +/** + * Blog river view. + * + * @package Blog + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Curverider Ltd + * @copyright Curverider Ltd 2008-2010 + * @link http://elgg.org/ + */ + +$performed_by = get_entity($vars['item']->subject_guid); +$object = get_entity($vars['item']->object_guid); +$url = $object->getURL(); + +$url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>"; +$title = sprintf(elgg_echo('blog:river:create'), $url); +$string .= "<a href=\"" . $object->getURL() . "\">" . $object->title . "</a> <span class='entity_subtext'>" . friendly_time($object->publish_time) . "</span>"; + +echo $string;
\ No newline at end of file |