string, // The string between the tags * 'href' => string, // URL for the link * 'class' => string // Class of the li element * 'id' => string, // ID of the li element * 'selected' => bool // if this tab is currently selected (applied to li element) * 'link_class' => string, // Class to pass to the link * 'link_id' => string, // ID to pass to the link * ) */ $options = elgg_clean_vars($vars); $type = elgg_extract('type', $vars, 'horizontal'); if ($type == 'horizontal') { $options['class'] = "elgg-tabs elgg-htabs"; } else { $options['class'] = "elgg-tabs elgg-vtabs"; } if (isset($vars['class'])) { $options['class'] = "{$options['class']} {$vars['class']}"; } unset($options['tabs']); unset($options['type']); $attributes = elgg_format_attributes($options); if (isset($vars['tabs']) && is_array($vars['tabs']) && !empty($vars['tabs'])) { ?>