aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views/default/blog/view.php
blob: a90f1775f5e065ddd4a71f7f104b876c8e0ba09f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

/**
 * Elgg blog view page
 * @uses $vars['posts'] An array of posts to view
 */

// If there are any posts to view, view them
if (is_array($vars['posts']) && sizeof($vars['posts']) > 0) {
	foreach($vars['posts'] as $post) {
		echo elgg_view_entity($post);
	}
}else{
	echo elgg_echo('blog:none');
}