Elgg
Version 1.9
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
forms
profile
fields
add.php
Go to the documentation of this file.
1
<?php
6
$label_text
=
elgg_echo
(
'profile:label'
);
7
$type_text
=
elgg_echo
(
'profile:type'
);
8
9
$label_control
=
elgg_view
(
'input/text'
, array(
'name'
=>
'label'
));
10
$type_control
=
elgg_view
(
'input/select'
, array(
'name'
=>
'type'
,
'options_values'
=> array(
11
'text'
=>
elgg_echo
(
'profile:field:text'
),
12
'longtext'
=>
elgg_echo
(
'profile:field:longtext'
),
13
'tags'
=>
elgg_echo
(
'profile:field:tags'
),
14
'url'
=>
elgg_echo
(
'profile:field:url'
),
15
'email'
=>
elgg_echo
(
'profile:field:email'
),
16
'location'
=>
elgg_echo
(
'profile:field:location'
),
17
'date'
=>
elgg_echo
(
'profile:field:date'
),
18
)));
19
20
$submit_control
=
elgg_view
(
'input/submit'
, array(
'name'
=>
elgg_echo
(
'add'
),
'value'
=>
elgg_echo
(
'add'
)));
21
22
$formbody
= <<< END
23
<
div
>
$label_text
:
$label_control
</
div
>
24
<
div
class
=
"elgg-foot"
>
$type_text
:
$type_control
25
$submit_control
</div>
26
END;
27
28
echo
elgg_autop
(
elgg_echo
(
'profile:explainchangefields'
));
29
echo
$formbody
;
$type_text
$type_text
Definition:
add.php:7
$type_control
$type_control
Definition:
add.php:10
div
fieldset div
Definition:
admin.php:462
$formbody
$formbody
Definition:
add.php:22
elgg_echo
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition:
languages.php:21
elgg_autop
elgg_autop($string)
Create paragraphs from text with line spacing.
Definition:
output.php:56
echo
elgg echo
Translates a string.
Definition:
languages.js:43
$label_text
$label_text
Add a new field to the set of custom profile fields.
Definition:
add.php:6
$label_control
$label_control
Definition:
add.php:9
elgg_view
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition:
views.php:354
$submit_control
$submit_control
Definition:
add.php:20
Generated on Sat Dec 21 2024 00:00:34 for Elgg by
1.8.11