";
if ($state == "published") {
/*translation:Published resources*/
$body .= "
" . elgg_echo("koolielu:published_resources") . "
";
// Take first 5 elements from an array
if (sizeof($wids) > 5) {
$wids = array_slice($wids, 0, 5);
$show_more_link = true;
}
$body .= waramu_list_resources($wids, false);
if ($show_more_link)
$body .= $more_link;
} else if ($state == "pending") {
/*translation:Pending resources*/
$body .= "
" . elgg_echo("koolielu:pending_resources") . "
";
$ids = getUserPendingResources($owner->getGUID());
// Take first 5 eleemnts from an array
if (sizeof($ids) > 5) {
$ids = array_slice($ids, 0, 5);
$show_more_link = true;
}
$body .= waramu_list_resources($ids, false);
if ($show_more_link)
$body .= $more_link;
}
$body .= "
";
echo $body;
?>