diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-16 20:41:31 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-16 20:41:31 +0000 |
commit | 70b08afa64465f4d3457ba6e1c4cc2df1dd2069b (patch) | |
tree | 251d2559ea516ae4e23395dab4b083d079b65d24 /views/default/river/item/wrapper.php | |
parent | c66831fa5138a277a9729174caf14c7eb323fb07 (diff) | |
download | elgg-70b08afa64465f4d3457ba6e1c4cc2df1dd2069b.tar.gz elgg-70b08afa64465f4d3457ba6e1c4cc2df1dd2069b.tar.bz2 |
More views cleanup.
git-svn-id: http://code.elgg.org/elgg/trunk@3556 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/river/item/wrapper.php')
-rw-r--r-- | views/default/river/item/wrapper.php | 55 |
1 files changed, 26 insertions, 29 deletions
diff --git a/views/default/river/item/wrapper.php b/views/default/river/item/wrapper.php index c8d18e9dd..27de4affd 100644 --- a/views/default/river/item/wrapper.php +++ b/views/default/river/item/wrapper.php @@ -1,51 +1,48 @@ <?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 +//get the site admins choice avatars or action icons +$avatar_icon = get_plugin_setting("avatar_icon","riverdashboard"); +if(!$avatar_icon) { + $avatar_icon = "icon"; +} - * @author Curverider - - * @link http://elgg.com/ - */ - - //get the site admins choice avatars or action icons - $avatar_icon = get_plugin_setting("avatar_icon","riverdashboard"); - if(!$avatar_icon) - $avatar_icon = "icon"; - - if($avatar_icon == "icon"){ - -?> +if($avatar_icon == "icon"){ + ?> <div class="river_item"> <div class="river_<?php echo $vars['item']->type; ?>"> <div class="river_<?php echo $vars['item']->subtype; ?>"> - <div class="river_<?php echo $vars['item']->action_type; ?>"> + <div class="river_<?php echo $vars['item']->action_type; ?>"> <div class="river_<?php echo $vars['item']->type; ?>_<?php if($vars['item']->subtype) echo $vars['item']->subtype . "_"; ?><?php echo $vars['item']->action_type; ?>"> <p> <?php - echo $vars['body']; + echo $vars['body']; ?> <span class="river_item_time"> (<?php - echo friendly_time($vars['item']->posted); + echo friendly_time($vars['item']->posted); ?>) </span> </p> </div> - </div> + </div> </div> </div> </div> - -<?php - }else{ -?> + + <?php +} else { + ?> <div class="river_item"> - <span class="river_item_useravatar"> + <span class="river_item_useravatar"> <?php echo elgg_view("profile/icon",array('entity' => get_entity($vars['item']->subject_guid), 'size' => 'tiny')); ?> @@ -62,6 +59,6 @@ </p> <div class="clearfloat"></div> </div> -<?php - } + <?php +} ?>
\ No newline at end of file |