edit.php 453 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * Tidypics Plugin
  4. *
  5. * Groups page Latest Photos widget for Widget Manager plugin
  6. *
  7. */
  8. $count = sanitise_int($vars["entity"]->tp_latest_photos_count, false);
  9. if(empty($count)){
  10. $count = 12;
  11. }
  12. ?>
  13. <div>
  14. <?php echo elgg_echo("tidypics:widget:num_latest"); ?><br />
  15. <?php echo elgg_view("input/text", array("name" => "params[tp_latest_photos_count]", "value" => $count, "size" => "4", "maxlength" => "4")); ?>
  16. </div>