blob: 64f8f1074a5d45243c61fe8bf6963e78b53ce32f (
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
|
<?php
/**
* Elgg profile index
*
* @package ElggProfile
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Curverider Ltd <info@elgg.com>
* @copyright Curverider Ltd 2008-2009
* @link http://elgg.com/
*/
$label_text = elgg_echo('profile:label');
$type_text = elgg_echo('profile:type');
$label_control = elgg_view('input/text', array('internalname' => 'label'));
$type_control = elgg_view('input/pulldown', array('internalname' => 'type', 'options_values' => array(
'text' => elgg_echo('text'),
'longtext' => elgg_echo('longtext'),
'tags' => elgg_echo('tags'),
'url' => elgg_echo('url'),
'email' => elgg_echo('email')
)));
$submit_control = elgg_view('input/submit', array('internalname' => elgg_echo('save'), 'value' => elgg_echo('save')));
$formbody = <<< END
<p>$label_text: $label_control
$type_text: $type_control
$submit_control</p>
END;
echo "<div class=\"contentWrapper\">";
echo elgg_view('input/form', array('body' => $formbody, 'action' => $vars['url'] . 'actions/profile/editdefault'));
echo "</div>";
?>
|