<?php
/**
* feed_item for file
*
* @param file
* @param network
* @param group
*/
global $theme;
add_css(get_path('module', 'message') . '/feed-item.css');
add_css(get_path('theme', $theme) . '/network_updates.css');
?>
<li class="feed-item" data-id="<?php print $file->fid ?>">
<a title="<?php print $file->name ?>" href="<?php print url('network/' . $network->nid . '/file/' . $file->fid) ?>">
<img class="feed-photo" width="60" height="60" alt="<?php print $file->name ?>" src="<?php print url(file_icon($file->mime)); ?>">
</a>
<div class="feed-body">
<div class="feed-content">
<a class="filename" href="<?php print url('network/' . $network->nid . '/file/' . $file->fid) ?>"><?php print $file->name ?></a>
<?php print $file->description ?>
</div>
<div class="feed-item-meta">
<ul class="feed-actions">
<li>
<?php print l(t('Download'), 'network/' . $network->nid . '/file/' . $file->fid . '/download/' . $file->name) ?>
</li>
</ul>
<span class="nus-timestamp"><?php print t('Uploaded by !user %ago ago', array('!user' => l($file->user->name, 'network/' . $network->nid . '/profile/' . $file->uid), '%ago' => format_interval(time() - $file->created, 1))) ?></span>
</div>
</div>
</li>