edit.php 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. $widget = $vars["entity"];
  3. $count = (int) $widget->blog_count;
  4. if ($count < 1) {
  5. $count = 8;
  6. }
  7. $view_mode_options_values = array(
  8. "list" => elgg_echo("blog_tools:widgets:index_blog:view_mode:list"),
  9. "preview" => elgg_echo("blog_tools:widgets:index_blog:view_mode:preview"),
  10. "slider" => elgg_echo("blog_tools:widgets:index_blog:view_mode:slider"),
  11. "simple" => elgg_echo("blog_tools:widgets:index_blog:view_mode:simple")
  12. );
  13. $noyes_options = array(
  14. "no" => elgg_echo("option:no"),
  15. "yes" => elgg_echo("option:yes")
  16. );
  17. ?>
  18. <div><?php echo elgg_echo("blog:numbertodisplay"); ?></div>
  19. <?php echo elgg_view("input/text", array("name" => "params[blog_count]", "value" => $count, "size" => "4", "maxlength" => "4")); ?>
  20. <div><?php echo elgg_echo("blog_tools:widgets:index_blog:view_mode"); ?></div>
  21. <?php echo elgg_view("input/dropdown", array("name" => "params[view_mode]", "options_values" => $view_mode_options_values, "value" => $widget->view_mode)); ?>
  22. <div><?php echo elgg_echo('blog_tools:widget:featured') . ": "; ?></div>
  23. <?php echo elgg_view("input/dropdown", array("name" => "params[show_featured]", "options_values" => $noyes_options, "value" => $widget->show_featured));