You are here

function theme_navbar_tray_wrapper in Navbar 7

Returns HTML for wrapping a navbar tray.

Used in combination with theme_navbar_tab() to create an association between a link tag in the administration bar and a tray.

Parameters

array $variables: An associative array containing:

  • element: An associative array containing the properties and children of the tray. Properties used: #children, #navbar_identifier and #attributes.

File

./navbar.module, line 466
Administration navbar for quick access to top level administration items.

Code

function theme_navbar_tray_wrapper(&$variables) {
  if (!empty($variables['element']['#children'])) {
    $element = $variables['element'];
    return '<div' . drupal_attributes($element['#wrapper_attributes']) . '><div class="navbar-lining clearfix">' . $element['#children'] . '</div></div>';
  }
}