blob: ba614126371b0d094cad233ad915b4c715d59e65 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
<?php
/**
* Videolist edit form body
*
* @package ElggVideolist
*/
$variables = elgg_get_config('videolist');
if(empty($vars['guid'])){
unset($variables['title']);
}
foreach ($variables as $name => $type) {
?>
<div>
<label><?php echo elgg_echo("videolist:$name") ?></label>
<?php
if ($type != 'longtext') {
echo '<br />';
}
?>
<?php echo elgg_view("input/$type", array(
'name' => $name,
'value' => $vars[$name],
));
?>
</div>
<?php
}
$cats = elgg_view('categories', $vars);
if (!empty($cats)) {
echo $cats;
}
echo '<div class="elgg-foot">';
if ($vars['guid']) {
echo elgg_view('input/hidden', array(
'name' => 'video_guid',
'value' => $vars['guid'],
));
}
echo elgg_view('input/hidden', array(
'name' => 'container_guid',
'value' => $vars['container_guid'],
));
echo elgg_view('input/submit', array('value' => elgg_echo('save')));
echo '</div>';
|