123456789101112131415161718192021222324 |
- <?php
- /**
- * Elgg tag input
- *
- * Accepts a single tag value
- *
- * @uses $vars['value'] The default value for the tag
- * @uses $vars['class'] Additional CSS class
- */
- $vars['class'] = (array) elgg_extract('class', $vars, []);
- $vars['class'][] = 'elgg-input-tag';
- $defaults = array(
- 'value' => '',
- 'disabled' => false,
- 'autocapitalize' => 'off',
- 'type' => 'text'
- );
- $vars = array_merge($defaults, $vars);
- echo elgg_format_element('input', $vars);
|