aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/url.php
blob: 60772007822a8a2d72c1990461e8f141cce0ec11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/**
 * Elgg URL input
 * Displays a URL input field
 *
 * @package Elgg
 * @subpackage Core
 */

$defaults = array(
	'class' => 'elgg-input-url',
);

$vars = array_merge($defaults, $vars);

if (!isset($vars['value']) || $vars['value'] === FALSE) {
	$vars['value'] = elgg_get_sticky_value($vars['internalname']);
}
?>

<input type="text" <?php echo elgg_format_attributes($vars); ?> />