12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- $widget = elgg_extract("entity", $vars);
- // number of files to display
- $num_display = sanitise_int($widget->num_display, false);
- if (empty($num_display)) {
- $num_display = 4;
- }
- // show only featured files
- $noyes_options = array(
- "no" => elgg_echo("option:no"),
- "yes" => elgg_echo("option:yes")
- );
- // listing options
- $listing_options = array(
- 1 => elgg_echo("file:list"),
- 2 => elgg_echo("file:gallery")
- );
- ?>
- <div>
- <?php
- echo elgg_echo("file:num_files");
- echo ": ";
- echo elgg_view("input/dropdown", array("name" => "params[num_display]", "options" => array(1,2,3,4,5,6,7,8,9,10,15,20), "value" => $num_display));
- ?>
- </div>
- <div>
- <?php
- echo elgg_echo("widget:file:edit:show_only_featured");
- echo ": ";
- echo elgg_view("input/dropdown", array("name" => "params[featured_only]", "options_values" => $noyes_options, "value" => $widget->featured_only));
- ?>
- </div>
- <div>
- <?php
- echo elgg_echo("file:gallery_list");
- echo ": ";
- echo elgg_view("input/dropdown", array("name" => "params[gallery_list]", "options_values" => $listing_options, "value" => $widget->gallery_list));
- ?>
- </div>
|