edit.php 551 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Widget settings for latest photos
  4. *
  5. * @author Cash Costello
  6. * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2
  7. */
  8. // set default value
  9. if (!isset($vars['entity']->num_display)) {
  10. $vars['entity']->num_display = 8;
  11. }
  12. $params = array(
  13. 'name' => 'params[num_display]',
  14. 'value' => $vars['entity']->num_display,
  15. 'options' => array(4, 8, 12, 16, 20),
  16. );
  17. $dropdown = elgg_view('input/dropdown', $params);
  18. ?>
  19. <div>
  20. <?php echo elgg_echo('tidypics:widget:num_latest'); ?>:
  21. <?php echo $dropdown; ?>
  22. </div>