$metadata_name) { $group = get_entity($guid); if (!empty($group) && elgg_instanceof($group, "group")) { $configured_projects[] = $group; } } } if (!empty($configured_projects)) { if (elgg_is_xhr()) { echo ""; } else { elgg_require_js("group_tools/group_news"); } $blog_count = sanitise_int($widget->blog_count); if ($blog_count < 1) { $blog_count = 5; } $group_icon_size = $widget->group_icon_size; if ($group_icon_size !== "small") { $group_icon_size = "medium"; } echo "
"; $configured_projects = array_values($configured_projects); echo " "; } else { echo elgg_echo("widgets:group_news:no_projects"); }