Elgg  Version master
Variables
tabs.php File Reference

Go to the source code of this file.

Variables

 $tabs = elgg_extract('tabs', $vars)
 Tab navigation. More...
 
foreach($tabs as $index=> &$tab) $options = $vars
 
 $type = elgg_extract('type', $vars, 'horizontal')
 
 $class
 
if($type=='horizontal') else
 
 $options ['class'] = elgg_extract_class($options, $class)
 
 $options ['items'] = $tabs
 

Variable Documentation

◆ $class

$class
Initial value:
= [
'elgg-tabs',
]

Definition at line 31 of file tabs.php.

◆ $options [1/3]

foreach ( $tabs as $index=> & $tab) $options = $vars

Definition at line 26 of file tabs.php.

◆ $options [2/3]

$options[ 'class'] = elgg_extract_class($options, $class)

Definition at line 40 of file tabs.php.

◆ $options [3/3]

$options[ 'items'] = $tabs

Definition at line 41 of file tabs.php.

◆ $tabs

$tabs = elgg_extract('tabs', $vars)

Tab navigation.

@uses string $vars['type'] horizontal || vertical - Defaults to horizontal @uses string $vars['class'] Additional class to add to ul @uses array $vars['tabs'] A multi-dimensional array of tab entries in the format for ElggMenuItem

Definition at line 10 of file tabs.php.

◆ $type

$type = elgg_extract('type', $vars, 'horizontal')

Definition at line 28 of file tabs.php.

◆ else

if ( $type=='horizontal') else
Initial value:
{
$class[] = 'elgg-vtabs'
$class
Definition: tabs.php:31

Definition at line 36 of file tabs.php.