/[drupal]/contributions/modules/office_hours/office_hours.theme.inc
ViewVC logotype

Diff of /contributions/modules/office_hours/office_hours.theme.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.1, Tue Apr 14 06:41:32 2009 UTC revision 1.1.2.2, Sat Jun 27 17:48:58 2009 UTC
# Line 39  function theme_office_hours_formatter_de Line 39  function theme_office_hours_formatter_de
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  }  }
# Line 88  function theme_office_hours_multiple_val Line 88  function theme_office_hours_multiple_val
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) {
# Line 106  function theme_office_hours_multiple_val Line 106  function theme_office_hours_multiple_val
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    

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

  ViewVC Help
Powered by ViewVC 1.1.2