group_count, false); if (empty($count)) { $count = 8; } $noyes_options = array( "no" => elgg_echo("option:no"), "yes" => elgg_echo("option:yes") ); // filter based on tag fields $tag_fields = array(); $profile_fields = elgg_get_config("group"); if (!empty($profile_fields)) { foreach ($profile_fields as $name => $type) { if ($type == "tags") { $lan_key = "groups:" . $name; $label = $name; if (elgg_echo($lan_key) != $lan_key) { $label = elgg_echo($lan_key); } $tag_fields[$name] = $label; } } } $sorting_options = array( "newest" => elgg_echo("groups:newest"), "popular" => elgg_echo("groups:popular"), "ordered" => elgg_echo("group_tools:groups:sorting:ordered") ); $sorting_value = $widget->sorting; if (empty($sorting_value) && ($widget->apply_sorting == "yes")) { $sorting_value = "ordered"; } ?>