option
*
*/
$class = $vars['class'];
if (!$class) {
$class = "input_radio";
}
if (!isset($vars['value']) || $vars['value'] === FALSE) {
$vars['value'] = elgg_get_sticky_value($vars['internalname']);
}
foreach($vars['options'] as $label => $option) {
if (strtolower($option) != strtolower($vars['value'])) {
$selected = "";
} else {
$selected = "checked = \"checked\"";
}
$labelint = (int) $label;
if ("{$label}" == "{$labelint}") {
$label = $option;
}
if (isset($vars['internalid'])) {
$id = "id=\"{$vars['internalid']}\"";
}
if ($vars['disabled']) {
$disabled = ' disabled="yes" ';
}
echo "
";
}