diff options
Diffstat (limited to 'mod/blog')
-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 |