updates user events, and notifications
Showing
2 changed files
with
9 additions
and
3 deletions
| ... | @@ -88,16 +88,22 @@ function print_user_notices($show_more = true) { | ... | @@ -88,16 +88,22 @@ function print_user_notices($show_more = true) { |
| 88 | 88 | ||
| 89 | $rows .= '<tr class="notice-row" id="'.$i.'">'; | 89 | $rows .= '<tr class="notice-row" id="'.$i.'">'; |
| 90 | if ($notices[$i]['status']=="unread") { | 90 | if ($notices[$i]['status']=="unread") { |
| 91 | $rows .= '<td width="12" style="padding:0;padding-left:10px;vertical-align:middle;"><a href="#" class="notice '.(($notices[$i]['status']=="read") ? 'read' : 'unread').'"><img src="assets/images/blank.gif" width="12" height="12" /></a></td>'; | 91 | $rows .= '<td width="12" style="padding:0;padding-left:10px;vertical-align:middle;"><a href="#" class="notice '.(($notices[$i]['status']=="read") ? 'read' : 'unread').'"><img src="assets/images/blank.gif" width="12" height="12" /></a></td>'; |
| 92 | } else { | 92 | } else { |
| 93 | $rows .= '<td width="12" style="padding:0;padding-left:10px;vertical-align:middle;"><img src="assets/images/blank.gif" width="12" height="12" /></td>'; | 93 | $rows .= '<td width="12" style="padding:0;padding-left:10px;vertical-align:middle;"><img src="assets/images/blank.gif" width="12" height="12" /></td>'; |
| 94 | } | 94 | } |
| 95 | /* | ||
| 95 | if($system['system_message_type']=="none"): | 96 | if($system['system_message_type']=="none"): |
| 96 | $rows .= '<td colspan="2" style="vertical-align:middle;">'.nl2br($content).'<br /><span class="legal">Sent: '.date("M j, Y @ h:ia",$notices[$i]['sent_date']).'</span></td>'; | 97 | $rows .= '<td colspan="2" style="vertical-align:middle;">'.nl2br($content).'<br /><span class="legal">Sent: '.date("M j, Y @ h:ia",$notices[$i]['sent_date']).'</span></td>'; |
| 97 | else: | 98 | else: |
| 99 | */ | ||
| 100 | if ($system['system_message_type'] == "none") { | ||
| 101 | $system['system_message_type'] = "notice"; | ||
| 102 | } | ||
| 103 | |||
| 98 | $rows .= '<td width="80" style="vertical-align:middle;"><span>'.ucfirst(str_replace("_"," ",$system['system_message_type'])).'</span></td>'; | 104 | $rows .= '<td width="80" style="vertical-align:middle;"><span>'.ucfirst(str_replace("_"," ",$system['system_message_type'])).'</span></td>'; |
| 99 | $rows .= '<td style="vertical-align:middle;">'.nl2br($content).'<br /><span class="legal">Sent: '.date("M j, Y @ h:ia",$notices[$i]['sent_date']).'</span></td>'; | 105 | $rows .= '<td style="vertical-align:middle;">'.nl2br($content).'<br /><span class="legal">Sent: '.date("M j, Y @ h:ia",$notices[$i]['sent_date']).'</span></td>'; |
| 100 | endif; | 106 | /*endif;*/ |
| 101 | $rows .= '</tr>'; | 107 | $rows .= '</tr>'; |
| 102 | $last_id = $i; | 108 | $last_id = $i; |
| 103 | 109 | ... | ... |
| ... | @@ -106,7 +106,7 @@ $posts = query_posts(Array( | ... | @@ -106,7 +106,7 @@ $posts = query_posts(Array( |
| 106 | 106 | ||
| 107 | if (isset($event_term_slugs['webinar'])) { | 107 | if (isset($event_term_slugs['webinar'])) { |
| 108 | $is_archived = get_post_meta($post->ID, 'is_archived_webinar', true); | 108 | $is_archived = get_post_meta($post->ID, 'is_archived_webinar', true); |
| 109 | if (!$is_archived == "on") { continue; } | 109 | /*if (!$is_archived == "on") { continue; }*/ |
| 110 | } else { | 110 | } else { |
| 111 | 111 | ||
| 112 | if ($event_date <= (time() + (60*60*24)) ) { | 112 | if ($event_date <= (time() + (60*60*24)) ) { | ... | ... |
-
Please register or sign in to post a comment