| 39 |
$endhrs = $val[0]['endhrs']; |
$endhrs = $val[0]['endhrs']; |
| 40 |
$strhrs2 = $val[1]['strhrs']; |
$strhrs2 = $val[1]['strhrs']; |
| 41 |
$endhrs2 = $val[1]['endhrs']; |
$endhrs2 = $val[1]['endhrs']; |
| 42 |
$additional = (isset($val[1])) ? ' <span class="oh-display-hours">, '.$strhrs2.' - '.$endhrs.'</span>' : ''; |
$additional = (isset($val[1])) ? ' <span class="oh-display-hours">, '.$strhrs2.' - '.$endhrs2.'</span>' : ''; |
| 43 |
$output .= '<div class="oh-display">'.$day.'- <span class="oh-display-hours">'.$strhrs.' - '.$endhrs.'</span>'.$additional.'</div>'; |
$output .= '<div class="oh-display">'.$day.': <span class="oh-display-hours">'.$strhrs.' - '.$endhrs.'</span>'.$additional.'</div>'; |
| 44 |
} |
} |
| 45 |
return $output; |
return $output; |
| 46 |
} |
} |
| 88 |
$items[] = &$element[$key]; |
$items[] = &$element[$key]; |
| 89 |
} |
} |
| 90 |
} |
} |
| 91 |
usort($items, '_content_sort_items_value_helper'); |
// usort($items, '_content_sort_items_value_helper'); |
| 92 |
$items = _office_hours_arrange_day($items); |
$items = _office_hours_arrange_day($items); |
| 93 |
// Add the items as table rows. |
// Add the items as table rows. |
| 94 |
foreach ($items as $key => $item) { |
foreach ($items as $key => $item) { |
| 106 |
); |
); |
| 107 |
} |
} |
| 108 |
|
|
| 109 |
$output .= theme('table', $header, $rows, array('id' => $table_id, 'class' => 'content-multiple-table')); |
$output .= theme('table', $header, $rows, array('id' => $table_id, 'class' => 'office_hours_table content-multiple-table')); |
| 110 |
$output .= $element['#description'] ? '<div class="description">'. $element['#description'] .'</div>' : ''; |
$output .= $element['#description'] ? '<div class="description">'. $element['#description'] .'</div>' : ''; |
| 111 |
$output .= drupal_render($element[$element['#field_name'] .'_add_more']); |
$output .= drupal_render($element[$element['#field_name'] .'_add_more']); |
| 112 |
|
|