Elgg  Version 1.9
longtext.php
Go to the documentation of this file.
1 <?php
14 $class = 'elgg-output';
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) {
30 }
31 
33 
35 
37 
38 echo "<div $attributes>$text</div>";
$vars
Definition: longtext.php:27
parse_urls($text)
Takes a string and turns any URLs into formatted links.
Definition: output.php:17
$class
Definition: longtext.php:14
filter_tags($var)
Filter tags from a given string based on registered hooks.
Definition: input.php:94
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
Definition: longtext.php:25
elgg_autop($string)
Create paragraphs from text with line spacing.
Definition: output.php:56
$attributes
Definition: longtext.php:36
elgg echo
Translates a string.
Definition: languages.js:43
elgg_format_attributes(array $attrs=array())
Converts an associative array into a string of well-formed attributes.
Definition: output.php:118
$parse_urls
Definition: longtext.php:22
$additional_class
Definition: longtext.php:15