Skip to content

Commit

Permalink
activity display toggle so site admins can choose avatars or the smal…
Browse files Browse the repository at this point in the history
…l icons

git-svn-id: https://code.elgg.org/elgg/trunk@3461 36083f99-b078-4883-b0ff-0f9b5a30f544
  • Loading branch information
dave committed Sep 4, 2009
1 parent 358e114 commit b405f7f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 7 deletions.
4 changes: 4 additions & 0 deletions views/default/css.php
Expand Up @@ -1161,6 +1161,10 @@
font-size:90%;
color:#666666;
}
.river_item .river_item_useravatar {
float:left;
margin:0 5px 0 0;
}
/* IE6 fix */
* html .river_item p {
padding:3px 0 3px 20px;
Expand Down
41 changes: 34 additions & 7 deletions views/default/river/item/wrapper.php
Expand Up @@ -11,6 +11,12 @@
* @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"){

?>

Expand All @@ -21,20 +27,41 @@
<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{
?>
<div class="river_item">
<span class="river_item_useravatar">
<?php
echo elgg_view("profile/icon",array('entity' => get_entity($vars['item']->subject_guid), 'size' => 'tiny'));
?>
</span>
<p class="river_item_body">
<?php
echo $vars['body'];
?>
<span class="river_item_time">
(<?php
echo friendly_time($vars['item']->posted);
?>)
</span>
</p>
<div class="clearfloat"></div>
</div>
<?php
}
?>

0 comments on commit b405f7f

Please sign in to comment.