Elgg  Version 4.3
Variables
url.php File Reference

Go to the source code of this file.

Variables

 $excerpt_length = elgg_extract('excerpt_length', $vars, 100)
 Elgg URL display Displays a URL as a link. More...
 
 $allowed_schemes = elgg_extract('allowed_schemes', $vars, ['http', 'https', 'ftp', 'sftp', 'ssh', 'file'])
 
 $url = elgg_extract('href', $vars, null)
 
if($url===false) if(!$url &&isset($vars['value'])) if(isset($vars['text'])) else
 
 $vars ['class'] = elgg_extract_class($vars, 'elgg-anchor')
 
if($text!==false &&$text!== '') $icon = elgg_extract('icon', $vars, '')
 
if($icon &&!preg_match('/^</', $icon$icon_alt ) = elgg_extract('icon_alt', $vars, '')
 
if($icon_alt &&!preg_match('/^</', $icon_alt) $badge ) = elgg_extract('badge', $vars)
 
if(!is_null($badge)) $classes = elgg_extract_class($vars)
 
if(in_array('elgg-popup', $classes)) if(in_array('elgg-toggle', $classes)) $rel = elgg_extract('rel', $vars)
 
 if ($rel=== 'popup'||$rel=== 'toggle')
 

Variable Documentation

$allowed_schemes = elgg_extract('allowed_schemes', $vars, ['http', 'https', 'ftp', 'sftp', 'ssh', 'file'])

Definition at line 40 of file url.php.

if ($icon_alt &&!preg_match('/^</', $icon_alt) $badge) = elgg_extract('badge', $vars)

Definition at line 136 of file url.php.

if (!is_null($badge)) $classes = elgg_extract_class($vars)

Definition at line 147 of file url.php.

$excerpt_length = elgg_extract('excerpt_length', $vars, 100)

Elgg URL display Displays a URL as a link.

string $vars['text'] The HTML between the tags. string $vars['href'] The raw, un-encoded URL. "" = current URL. "/" = site home page. bool $vars['encode_text'] Run $vars['text'] through htmlspecialchars() (false) bool $vars['is_action'] Is this a link to an action (default: false, unless 'confirm' parameter is set) bool $vars['is_trusted'] Is this link trusted (false) mixed $vars['confirm'] Confirmation dialog text | (bool) true Note that if 'confirm' is set to true or a dialog text, 'is_action' parameter will default to true string $vars['icon'] Name of the Elgg icon, or icon HTML, appended before the text label string $vars['icon_alt'] Name of the Elgg icon, or icon HTML, appended after the text label string $vars['badge'] HTML content of the badge appended after the text label int $vars['excerpt_length'] Length of the URL excerpt if text is not given. string[] $vars['allowed_schemes'] An array of strings with the schemes the URL is allowed to have

Definition at line 23 of file url.php.

if ($text!==false &&$text!== '') $icon = elgg_extract('icon', $vars, '')

Definition at line 118 of file url.php.

if ($icon &&!preg_match('/^</', $icon) $icon_alt) = elgg_extract('icon_alt', $vars, '')

Definition at line 127 of file url.php.

if (in_array('elgg-popup', $classes)) if (in_array('elgg-toggle', $classes)) $rel = elgg_extract('rel', $vars)

Definition at line 155 of file url.php.

$url = elgg_extract('href', $vars, null)

Definition at line 46 of file url.php.

$vars['class'] = elgg_extract_class($vars, 'elgg-anchor')

Definition at line 110 of file url.php.

if ($url===false) if (!$url &&isset($vars['value'])) if (isset($vars['text'])) else
Initial value:
{
$text = htmlspecialchars(elgg_get_excerpt($url, $excerpt_length), ENT_QUOTES, 'UTF-8', false)
$excerpt_length
Elgg URL display Displays a URL as a link.
Definition: url.php:23
$url
Definition: url.php:46
elgg_get_excerpt($text, $num_chars=250)
Returns an excerpt.
Definition: output.php:72
$text
Definition: button.php:32

Definition at line 64 of file url.php.

if($rel=== 'popup'||$rel=== 'toggle')

Definition at line 156 of file url.php.