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"; } ?>

"params[group_count]", "value" => $count, "size" => "4", "maxlength" => "4")); ?>
"params[show_members]", "options_values" => $noyes_options, "value" => $widget->show_members)); ?>
"params[featured]", "options_values" => $noyes_options, "value" => $widget->featured)); ?>
"params[filter_name]", "value" => $widget->filter_name, "options_values" => $tag_fields)); echo "
"; echo elgg_echo("widgets:index_groups:filter:value"); echo elgg_view("input/tags", array("name" => "params[filter_value]", "value" => $widget->filter_value)); ?>
"params[sorting]", "options_values" => $sorting_options, "value" => $sorting_value)); ?>