Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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>";
parse_urls($text)
Takes a string and turns any URLs into formatted links.
Definition: output.php:17
$vars['class']
Definition: longtext.php:14
$class
Definition: longtext.php:14
filter_tags($var)
Filter tags from a given string based on registered hooks.
Definition: input.php:53
$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_format_attributes(array $attrs=array())
Converts an associative array into a string of well-formed HTML/XML attributes Returns a concatenated...
Definition: output.php:139
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1310
$parse_urls
Definition: longtext.php:22
$additional_class
Definition: longtext.php:15