email.php 454 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Elgg email input
  4. * Displays an email 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-email';
  13. $defaults = array(
  14. 'disabled' => false,
  15. 'autocapitalize' => 'off',
  16. 'autocorrect' => 'off',
  17. 'type' => 'email'
  18. );
  19. $vars = array_merge($defaults, $vars);
  20. echo elgg_format_element('input', $vars);