edit.php 479 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Elgg group widget edit view
  4. *
  5. * @package ElggGroups
  6. */
  7. // set default value
  8. if (!isset($vars['entity']->num_display)) {
  9. $vars['entity']->num_display = 4;
  10. }
  11. $params = array(
  12. 'name' => 'params[num_display]',
  13. 'value' => $vars['entity']->num_display,
  14. 'options' => array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20),
  15. );
  16. $dropdown = elgg_view('input/select', $params);
  17. ?>
  18. <div>
  19. <?php echo elgg_echo('groups:widget:num_display'); ?>:
  20. <?php echo $dropdown; ?>
  21. </div>