Same name and namespace in other branches
  1. 8.x-1.x quicktabs.module \theme_qt_ui_tabs()

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;
}