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