url.php 461 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Elgg URL input
  4. * Displays a URL input field
  5. *
  6. * @package Elgg
  7. * @subpackage Core
  8. *
  9. * @uses $vars['class'] Additional CSS class
  10. */
  11. $vars['class'] = (array) elgg_extract('class', $vars, []);
  12. $vars['class'][] = 'elgg-input-url';
  13. $defaults = array(
  14. 'value' => '',
  15. 'disabled' => false,
  16. 'autocapitalize' => 'off',
  17. 'autocorrect' => 'off',
  18. 'type' => 'url'
  19. );
  20. $vars = array_merge($defaults, $vars);
  21. echo elgg_format_element('input', $vars);