diff options
Diffstat (limited to 'views/default/river/wrapper.php')
-rw-r--r-- | views/default/river/wrapper.php | 57 |
1 files changed, 27 insertions, 30 deletions
diff --git a/views/default/river/wrapper.php b/views/default/river/wrapper.php index cba00ff5a..0b5bfad62 100644 --- a/views/default/river/wrapper.php +++ b/views/default/river/wrapper.php @@ -1,31 +1,28 @@ <?php +/** + * Elgg river item wrapper. + * Wraps all river items. + * + * @package Elgg + * @author Curverider + * @link http://elgg.com/ + */ - /** - * Elgg river item wrapper. - * Wraps all river items. - * - * @package Elgg - - * @author Curverider - - * @link http://elgg.com/ - */ - - $statement = $vars['statement']; - $time = $vars['time']; - $event = $vars['event']; - $entry = $vars['entry']; - - if ($statement->getObject() instanceof ElggEntity) { - - $obj = $statement->getObject(); - $subtype = $obj->getSubtype(); - if (empty($subtype)) $subtype = $obj->type; - if (empty($subtype)) $subtype = "general"; - } else if (is_array($statement->getObject())) { - $obj = $statement->getObject(); - $subtype = "relationship_" . $obj['relationship']; - } +$statement = $vars['statement']; +$time = $vars['time']; +$event = $vars['event']; +$entry = $vars['entry']; + +if ($statement->getObject() instanceof ElggEntity) { + + $obj = $statement->getObject(); + $subtype = $obj->getSubtype(); + if (empty($subtype)) $subtype = $obj->type; + if (empty($subtype)) $subtype = "general"; +} else if (is_array($statement->getObject())) { + $obj = $statement->getObject(); + $subtype = "relationship_" . $obj['relationship']; +} ?> <div class="river_item"> @@ -33,15 +30,15 @@ <div class="river_<?php echo $event; ?>"> <p class="river_<?php echo $subtype; ?>_<?php echo $event; ?>"> <?php - + echo $vars['entry']; - + ?> <span class="river_item_time"> (<?php - + echo friendly_time($time); - + ?>) </span> </p> |