You are here

function theme_qt_ui_tabs in Quick Tabs 7.3

Theme function to output content for jQuery UI style tabs.

1 theme call to theme_qt_ui_tabs()
QuickUiTabs::render in plugins/QuickUiTabs.inc
The only method that renderer plugins must implement.

File

./quicktabs.module, line 608

Code

function theme_qt_ui_tabs($variables) {
  $element = $variables['element'];
  $output = '<div ' . drupal_attributes($element['#options']['attributes']) . '>';
  $output .= drupal_render($element['tabs']);
  if (isset($element['active'])) {
    $output .= drupal_render($element['active']);
  }
  else {
    foreach ($element['divs'] as $div) {
      $output .= drupal_render($div);
    }
  }
  $output .= '</div>';
  return $output;
}