21 if (
$type ==
'horizontal') {
22 $options[
'class'] =
"elgg-tabs elgg-htabs";
24 $options[
'class'] =
"elgg-tabs elgg-vtabs";
26 if (isset(
$vars[
'class'])) {
27 $options[
'class'] =
"{$options['class']} {$vars['class']}";
35 if (isset(
$vars[
'tabs']) && is_array(
$vars[
'tabs']) && !empty(
$vars[
'tabs'])) {
37 <ul <?php echo $attributes; ?>>
39 foreach (
$vars[
'tabs'] as $info) {
45 $class .=
' elgg-state-selected';
48 $class_str = (
$class) ?
"class=\"$class\"" :
'';
49 $id_str = (
$id) ?
"id=\"$id\"" :
'';
56 if (!isset($info[
'href']) && isset($info[
'url'])) {
60 if (!isset($info[
'text']) && isset($info[
'title'])) {
64 if (isset($info[
'link_class'])) {
69 if (isset($info[
'link_id'])) {
76 echo "<li $id_str $class_str>$link</li>";
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if(isset($vars['id'])) $class
_elgg_clean_vars(array $vars=array())
Preps an associative array for use in elgg_format_attributes().
elgg echo
Translates a string.
elgg_format_attributes(array $attrs=array())
Converts an associative array into a string of well-formed attributes.
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
if(!$collection_name) $id
if(file_exists($welcome)) $vars