AAAAhome/academiac/www/administrator/components/com_chronoforms/helpers/tabs_helper.php 0000604 00000002744 15137234017 0025122 0 ustar 00 prefix = $prefix;
}
$output = '
';
$counter = 0;
foreach($tabs as $id => $title){
if(!empty($prefix)){
$id = $prefix.'_'.$id;
}
$class = '';
if($counter == 0){
$class = ' class="activetab"';
$this->active = $id;
}
$output .= '- '.$title.'
';
$output .= "\n";
$counter++;
}
$output .= '
';
return $output;
}
function tabStart($id = ''){
if(!empty($this->prefix)){
$id = $this->prefix.'_'.$id;
}
$style = ' style="display: none;"';
if($id == $this->active){
$style = ' style="display: block;"';
}
$output = '
';
return $output;
}
function tabEnd(){
$output = '
';
return $output;
}
}