aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/wrapper.php
blob: 78692eaeffea489cde4f4191706ba22e72b2f9b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php

	/**
	 * Elgg river item wrapper.
	 * Wraps all river items.
	 * 
	 * @package Elgg
	 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
	 * @author Curverider
	 * @copyright Curverider Ltd 2008
	 * @link http://elgg.com/
	 */

	if (isset($vars['entity']) && $vars['entity'] instanceof ElggEntity) {
		
		$subtype = $vars['entity']->subtype;
		if (empty($subtype)) $subtype = $vars['entity']->type;
		if (empty($subtype)) $subtype = "general";
		
	}

?>

<div class="river_item">

	<div class="river_<?php echo $subtype; ?>">
		<div class="river_<?php echo $vars['log']->event; ?>">
			<p class="river_<?php echo $subtype; ?>_<?php echo $vars['log']->event; ?>">
				<?php
		
					echo $vars['entry'];
				
				?>
				<span class="river_item_time">
					(<?php
		
						echo friendly_time($vars['log']->time_created);
					
					?>)
				</span>
			</p>
		</div>
	</div>

</div>