Elgg
Version 1.10
views
default
input
plaintext.php
Go to the documentation of this file.
1
<?php
15
if
(isset(
$vars
[
'class'
])) {
16
$vars
[
'class'
] =
"elgg-input-plaintext {$vars['class']}"
;
17
}
else
{
18
$vars
[
'class'
] =
"elgg-input-plaintext"
;
19
}
20
21
$defaults
= array(
22
'value'
=>
''
,
23
'rows'
=>
'10'
,
24
'cols'
=>
'50'
,
25
'disabled'
=>
false
,
26
);
27
28
$vars
= array_merge(
$defaults
,
$vars
);
29
30
$value
=
$vars
[
'value'
];
31
unset(
$vars
[
'value'
]);
32
33
?>
34
35
<textarea <?php echo
elgg_format_attributes
(
$vars
); ?>>
36
<?php echo htmlspecialchars(
$value
, ENT_QUOTES,
'UTF-8'
,
false
); ?>
37
</textarea>
elgg_format_attributes
elgg_format_attributes(array $attrs=array())
Converts an associative array into a string of well-formed attributes.
Definition:
output.php:139
$vars
$vars
Definition:
plaintext.php:28
$value
$value
Definition:
plaintext.php:30
$defaults
$defaults
Definition:
plaintext.php:21
Generated on Sat Sep 13 2025 00:00:29 for Elgg by
1.9.1