- Timestamp:
- Mar 15, 2010, 3:32:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/global_recent_posts_list_block_theme.php
r540 r545 22 22 $data_array = xpress_grobal_recent_posts($disp_count); 23 23 $item_no = 0; 24 $red_sec = $disp_red *60*60*24; 25 $green_sec = $disp_green *60*60*24; 24 26 foreach($data_array as $data){ 27 $elapse = time() - $data->post_unix_time; 28 $new_mark = ''; 29 if ($elapse < $red_sec ) { 30 $new_mark = '<em style="color: red; font-size: small;">New! </em>'; 31 32 } else if ($elapse < $green_sec) { 33 $new_mark = '<em style="color: green; font-size: small;">New! </em>'; 34 } 35 $data->new_mark = $new_mark; 36 25 37 $row_data = get_object_vars($data); 26 38
Note: See TracChangeset
for help on using the changeset viewer.