You are here

function theme_acquia_lift_navbar_tray_heading_wrapper in Acquia Lift Connector 7.2

Same name and namespace in other branches
  1. 7 theme/acquia_lift.navbar.theme.inc \theme_acquia_lift_navbar_tray_heading_wrapper()

Returns HTML for prepending a heading to a navbar tray.

Parameters

array $variables: An associative array containing:

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

File

theme/acquia_lift.navbar.theme.inc, line 78
acquia_lift.navbar.theme.inc Provides theme functions for Acquia Lift unified navigation bar.

Code

function theme_acquia_lift_navbar_tray_heading_wrapper(&$variables) {
  $element = $variables['element'];
  if (!empty($element['#children'])) {
    $heading = '';
    if (!empty($element['#heading'])) {
      $heading = '<h3 class="navbar-tray-name element-invisible">' . $element['#heading'] . '</h3>';
    }
    return $heading . $element['#children'];
  }
}