edit.php 983 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * settings for the featured group widget
  4. */
  5. $widget = elgg_extract("entity", $vars);
  6. $noyes_options = array(
  7. "no" => elgg_echo("option:no"),
  8. "yes" => elgg_echo("option:yes")
  9. );
  10. $num_display = (int) $widget->num_display;
  11. if ($num_display < 1) {
  12. $num_display = 5;
  13. }
  14. echo "<div>";
  15. echo elgg_echo("widget:numbertodisplay");
  16. echo "&nbsp;" . elgg_view("input/dropdown", array("name" => "params[num_display]", "options" => range(1, 10), "value" => $num_display));
  17. echo "</div>";
  18. echo "<div>";
  19. echo elgg_echo("widgets:index_groups:show_members");
  20. echo "<br />";
  21. echo elgg_view("input/dropdown", array("name" => "params[show_members]", "options_values" => $noyes_options, "value" => $widget->show_members));
  22. echo "</div>";
  23. echo "<div>";
  24. echo elgg_echo("widgets:featured_groups:edit:show_random_group");
  25. echo "&nbsp;" . elgg_view("input/dropdown", array("name" => "params[show_random]", "options_values" => $noyes_options, "value" => $widget->show_random));
  26. echo "</div>";