edit.php 460 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Online users widget edit view
  4. */
  5. $num_display = sanitize_int($vars['entity']->num_display, false);
  6. // set default value for display number
  7. if (!$num_display) {
  8. $num_display = 8;
  9. }
  10. $params = array(
  11. 'name' => 'params[num_display]',
  12. 'value' => $num_display,
  13. 'options' => array(5, 8, 10, 12, 15, 20),
  14. );
  15. $dropdown = elgg_view('input/select', $params);
  16. ?>
  17. <p>
  18. <?php echo elgg_echo('widget:numbertodisplay'); ?>:
  19. <?php echo $dropdown; ?>
  20. </p>