edit.php 619 B

123456789101112131415161718192021222324
  1. <?php
  2. $widget = $vars["entity"];
  3. $num = (int) $widget->num_display;
  4. if ($num < 1) {
  5. $num = 4;
  6. }
  7. $noyes_options = array(
  8. "no" => elgg_echo("option:no"),
  9. "yes" => elgg_echo("option:yes")
  10. );
  11. echo "<div>";
  12. echo elgg_echo('blog:numbertodisplay') . ": ";
  13. echo elgg_view("input/dropdown", array("options" => range(1, 10), "value" => $num, "name" => "params[num_display]"));
  14. echo "</div>";
  15. echo "<div>";
  16. echo elgg_echo('blog_tools:widget:featured') . ": ";
  17. echo elgg_view("input/dropdown", array("options_values" => $noyes_options, "value" => $widget->show_featured, "name" => "params[show_featured]"));
  18. echo "</div>";