Elgg
Version 1.9
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
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>
$value
$value
Definition:
plaintext.php:30
echo
elgg echo
Translates a string.
Definition:
languages.js:43
$defaults
$defaults
Definition:
plaintext.php:21
$vars
$vars
Definition:
plaintext.php:28
Generated on Sat Dec 21 2024 00:00:36 for Elgg by
1.8.11