aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/views/default/pages/groupprofile_pages.php
blob: 8069cdd8b7953c7ef4075a064733e3fdaf585ec4 (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
<?php
/**
 * Page icon override medium
 *
 * @package ElggPages
 */

//check to make sure this group forum has been activated
if ($vars['entity']->pages_enable != 'no') {
?>

<div id="group_pages_widget">
<h2><?php echo elgg_echo("pages:groupprofile"); ?></h2>
<?php

	$objects = elgg_list_entities(array('types' => 'object', 'subtypes' => 'page_top', 'container_guid' => elgg_get_page_owner_guid(), 'limit' => 5, 'full_view' => FALSE));

	if($objects)
		echo $objects;
	else
		echo "<div class=\"forum_latest\">" . elgg_echo("pages:nogroup") . "</div>";

?>
<br class="clearfloat" />
</div>

<?php
	}