edit.php 855 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Elgg Poll post widget edit view
  4. *
  5. * @package Elggpoll
  6. * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
  7. * @author John Mellberg
  8. * @copyright John Mellberg 2009
  9. *
  10. * @uses $vars['entity'] Optionally, the poll post to view
  11. */
  12. ?>
  13. <p>
  14. <?php echo elgg_echo('polls:widget:label:displaynum'); ?>
  15. <select name="params[limit]">
  16. <option value="5" <?php if ((!$vars['entity']->limit) && ($vars['entity']->limit == 5)) echo " selected=\"yes\" "; ?>>5</option>
  17. <option value="10" <?php if ($vars['entity']->limit == 10) echo " selected=\"yes\" "; ?>>10</option>
  18. <option value="15" <?php if ($vars['entity']->limit == 15) echo " selected=\"yes\" "; ?>>15</option>
  19. <option value="20" <?php if ($vars['entity']->limit == 20) echo " selected=\"yes\" "; ?>>20</option>
  20. </select>
  21. </p>