You are here

function theme_calendar_stripe_stripe in Calendar 5

Same name and namespace in other branches
  1. 5.2 calendar.theme \theme_calendar_stripe_stripe()
  2. 6.2 theme/theme.inc \theme_calendar_stripe_stripe()
  3. 6.2 calendar_multiday/theme/theme.inc \theme_calendar_stripe_stripe()
  4. 7.3 theme/theme.inc \theme_calendar_stripe_stripe()
  5. 7 theme/theme.inc \theme_calendar_stripe_stripe()
  6. 7 calendar_multiday/theme/theme.inc \theme_calendar_stripe_stripe()
  7. 7.2 theme/theme.inc \theme_calendar_stripe_stripe()
  8. 7.2 calendar_multiday/theme/theme.inc \theme_calendar_stripe_stripe()

Format node stripes Add key value to text, then hide it with css for accessibility to screen readers

5 theme calls to theme_calendar_stripe_stripe()
calendar_ical_setup_form in ./calendar_ical.module
Setup Calendar feeds.
theme_calendar_node_day in ./calendar.theme
Format an calendar node for display in an expanded calendar, like a calendar page
theme_calendar_node_month in ./calendar.theme
Format an calendar node for display in an expanded calendar, like a calendar page
theme_calendar_node_week in ./calendar.theme
Format an calendar node for display in an expanded calendar, like a calendar page
theme_calendar_stripe_legend in ./calendar.theme
Format a node stripe legend

File

./calendar.theme, line 363

Code

function theme_calendar_stripe_stripe($node) {
  static $stripe, $stripe_map;
  if (!$stripe_map[$node->stripe]) {
    if ($stripe >= 10) {
      $stripe = 1;
    }
    else {
      $stripe++;
    }
    $stripe_map[$node->stripe] = $stripe;
  }
  $output .= '<div class="stripe-' . $stripe_map[$node->stripe] . '" title="Key: ' . $stripe_map[$node->stripe] . '"><span class="stripe">Key ' . $stripe_map[$node->stripe] . '</span></div>' . "\n";
  return $output;
}