You are here

function theme_acquia_lift_high_low in Acquia Lift Connector 7

Same name and namespace in other branches
  1. 7.2 theme/acquia_lift.theme.inc \theme_acquia_lift_high_low()

Theme function for generating the mark-up to display a high-low value.

Parameters

$variables: The theme variables that will include

  • value: The mean value to display
  • high: The high value to display
  • low: The low value to display

File

theme/acquia_lift.theme.inc, line 216
acquia_lift.theme.inc Provides theme functions for Acquia Lift.

Code

function theme_acquia_lift_high_low($variables) {
  $high = is_numeric($variables['high']) ? $variables['high'] : 0;
  $low = is_numeric($variables['low']) ? $variables['low'] : 0;
  $title = t('It is predicted that the goal value using this option will be between @low and @high.', array(
    '@low' => $low,
    '@high' => $high,
  ));
  $output = '<div class="acquia-lift-hilo-estimate" title="' . $title . '">';
  $output .= '<div class="acquia-lift-hilo-background">';
  $output .= '<div class="acquia-lift-hilo-bounds" data-acquia-lift-high="' . $high . '" data-acquia-lift-low="' . $low . '">';
  $output .= '<div class="acquia-lift-estimate">';
  $output .= '<span class="acquia-lift-badge">' . $variables['value'] . '</span>';
  $output .= '</div></div></div></div>';
  return $output;
}