Changeset 949109
- Timestamp:
- 07/15/2014 10:00:04 PM (12 years ago)
- File:
-
- 1 edited
-
health-progress/trunk/health-progress.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
health-progress/trunk/health-progress.php
r949106 r949109 39 39 $start_date = date("M/y", $start_date); 40 40 41 $widget = ' <div id="smhp_widget_'. $sm ph_count .'" class="smhp_widget">42 <table id="smhp_widget_table_'. $sm ph_count .'" class="smhp_widget_table">41 $widget = ' <div id="smhp_widget_'. $smhp_count .'" class="smhp_widget"> 42 <table id="smhp_widget_table_'. $smhp_count .'" class="smhp_widget_table"> 43 43 <tr> 44 44 <th> </th> … … 51 51 for ($i = 1; $i <= $num; $i++) { 52 52 $widget .= '<tr>'; 53 $widget .= ' <td>'. __( $options['field_'. $i . '_title'], 'smhp_widget_domain') .'</td>';54 $widget .= ' <td>'. $options['field_'. $i . '_start'] .' ' . __($options['field_'. $i . '_unit'], 'smhp_widget_domain') .'</td>';55 $widget .= ' <td>'. $instance['field_' . $i . '_now'] . ' ' . __($options['field_'. $i . '_unit'], 'smhp_widget_domain') .'</td>';56 $widget .= ' <td><strong>'. ( $options['field_'. $i . '_start'] - $instance['field_' . $i . '_now']) . ' ' . __($options['field_'. $i . '_unit'], 'smhp_widget_domain') .'</strong></td>';53 $widget .= ' <td>'. __(@$options['field_'. $i . '_title'], 'smhp_widget_domain') .'</td>'; 54 $widget .= ' <td>'. @$options['field_'. $i . '_start'] . __(@$options['field_'. $i . '_unit'], 'smhp_widget_domain') .'</td>'; 55 $widget .= ' <td>'. @$instance['field_' . $i . '_now'] . __(@$options['field_'. $i . '_unit'], 'smhp_widget_domain') .'</td>'; 56 $widget .= ' <td><strong>'. (@$options['field_'. $i . '_start'] - @$instance['field_' . $i . '_now']) . __(@$options['field_'. $i . '_unit'], 'smhp_widget_domain') .'</strong></td>'; 57 57 $widget .= '</tr>'; 58 58 }
Note: See TracChangeset
for help on using the changeset viewer.