aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/item
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-09-04 09:35:52 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-09-04 09:35:52 +0000
commitb405f7f30fb3cee2d00b20972a7da910a7947e04 (patch)
treecfe0535fbfbd1b58fbb1d566cda8358c7c792234 /views/default/river/item
parent358e1148c816f8a689e9e068c3296c0f077c478a (diff)
downloadelgg-b405f7f30fb3cee2d00b20972a7da910a7947e04.tar.gz
elgg-b405f7f30fb3cee2d00b20972a7da910a7947e04.tar.bz2
activity display toggle so site admins can choose avatars or the small icons
git-svn-id: https://code.elgg.org/elgg/trunk@3461 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/river/item')
-rw-r--r--views/default/river/item/wrapper.php41
1 files changed, 34 insertions, 7 deletions
diff --git a/views/default/river/item/wrapper.php b/views/default/river/item/wrapper.php
index 2b146c3c5..c8d18e9dd 100644
--- a/views/default/river/item/wrapper.php
+++ b/views/default/river/item/wrapper.php
@@ -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"){
?>
@@ -21,15 +27,11 @@
<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>
@@ -37,4 +39,29 @@
</div>
</div>
</div>
- </div> \ No newline at end of file
+ </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
+ }
+?> \ No newline at end of file