aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views/default/object/blog-comments.php
blob: 991c423012acc2389879f49a383ef37f74292f74 (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
<?php

	/**
	 * Elgg blog aggregate comments view
	 * 
	 * @package ElggBlog
	 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
	 * @author Ben Werdmuller <ben@curverider.co.uk>
	 * @copyright Curverider Ltd 2008
	 * @link http://elgg.com/
	 * 
	 * @uses $vars['comments'] Array of comments
	 */

		if (isset($vars['comments']) && is_array($vars['comments']) && sizeof($vars['comments']) > 0) {
			
			echo "<h3>". elgg_echo("comments") ."</h3><ol>";
			foreach($vars['comments'] as $comment) {
				
				echo elgg_view("object/blog-comment",array('entity' => $comment));
				
			}
			echo "</ol>";
			
		}

?>