Elgg
Version 1.9
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
output
longtext.php
Go to the documentation of this file.
1
<?php
14
$class
=
'elgg-output'
;
15
$additional_class
=
elgg_extract
(
'class'
,
$vars
,
''
);
16
if
(
$additional_class
) {
17
$vars
[
'class'
] =
"$class $additional_class"
;
18
}
else
{
19
$vars
[
'class'
] =
$class
;
20
}
21
22
$parse_urls
=
elgg_extract
(
'parse_urls'
,
$vars
,
true
);
23
unset(
$vars
[
'parse_urls'
]);
24
25
$text
=
$vars
[
'value'
];
26
unset(
$vars
[
'value'
]);
27
28
if
(
$parse_urls
) {
29
$text
=
parse_urls
(
$text
);
30
}
31
32
$text
=
filter_tags
(
$text
);
33
34
$text
=
elgg_autop
(
$text
);
35
36
$attributes
=
elgg_format_attributes
(
$vars
);
37
38
echo
"<div $attributes>$text</div>"
;
$vars
$vars
Definition:
longtext.php:27
parse_urls
parse_urls($text)
Takes a string and turns any URLs into formatted links.
Definition:
output.php:17
$class
$class
Definition:
longtext.php:14
filter_tags
filter_tags($var)
Filter tags from a given string based on registered hooks.
Definition:
input.php:94
elgg_extract
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition:
elgglib.php:1464
$text
$text
Definition:
longtext.php:25
elgg_autop
elgg_autop($string)
Create paragraphs from text with line spacing.
Definition:
output.php:56
$attributes
$attributes
Definition:
longtext.php:36
echo
elgg echo
Translates a string.
Definition:
languages.js:43
elgg_format_attributes
elgg_format_attributes(array $attrs=array())
Converts an associative array into a string of well-formed attributes.
Definition:
output.php:118
$parse_urls
$parse_urls
Definition:
longtext.php:22
$additional_class
$additional_class
Definition:
longtext.php:15
Generated on Fri Oct 4 2024 00:00:40 for Elgg by
1.8.11