diff options
author | Sem <sembrestels@riseup.net> | 2011-11-19 22:37:34 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2011-11-19 22:37:34 +0100 |
commit | e7d8b73c0e65f188b835bbb0a7e98eb2fa0f3478 (patch) | |
tree | b25bd69a5f625f71584683017d095f3613f54625 /views/default/widgets/videolist/edit.php | |
parent | 4585e371857636c1dece9978fba65d978a3afc78 (diff) | |
download | elgg-e7d8b73c0e65f188b835bbb0a7e98eb2fa0f3478.tar.gz elgg-e7d8b73c0e65f188b835bbb0a7e98eb2fa0f3478.tar.bz2 |
Added videos widget.
Diffstat (limited to 'views/default/widgets/videolist/edit.php')
-rw-r--r-- | views/default/widgets/videolist/edit.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/views/default/widgets/videolist/edit.php b/views/default/widgets/videolist/edit.php new file mode 100644 index 000000000..a2865848e --- /dev/null +++ b/views/default/widgets/videolist/edit.php @@ -0,0 +1,24 @@ +<?php +/** + * Elgg video list widget edit + * + * @package ElggVideolist + */ + +// set default value +if (!isset($vars['entity']->videos_num)) { + $vars['entity']->videos_num = 4; +} + +$params = array( + 'name' => 'params[videos_num]', + 'value' => $vars['entity']->videos_num, + 'options' => array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), +); +$dropdown = elgg_view('input/dropdown', $params); + +?> +<div> + <?php echo elgg_echo('videolist:num_videos'); ?>: + <?php echo $dropdown; ?> +</div> |