Changeset 309 for trunk/bp-messages/bp-messages-templatetags.php
- Timestamp:
- 09/09/2008 06:52:13 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-messages/bp-messages-templatetags.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages/bp-messages-templatetags.php
r304 r309 97 97 98 98 function bp_has_message_threads() { 99 global $messages_template; 99 global $bp, $messages_template; 100 101 if ( $bp['current_action'] == 'notices' && !is_site_admin() ) { 102 wp_die('No Access'); 103 } else { 104 $messages_template = new BP_Messages_Template( $bp['loggedin_userid'], $bp['current_action'] ); 105 } 106 100 107 return $messages_template->has_threads(); 101 108 } … … 210 217 <select name="message-type-select" id="message-type-select"> 211 218 <option value=""></option> 212 <option value="read"> Read</option>213 <option value="unread"> Unread</option>214 <option value="all"> All</option>219 <option value="read"><?php _e('Read') ?></option> 220 <option value="unread"><?php _e('Unread') ?></option> 221 <option value="all"><?php _e('All') ?></option> 215 222 </select> 216 <a href="#" id="mark_as_read"> Mark as Read</a> 217 <a href="#" id="mark_as_unread"> Mark as Unread</a> 218 <a href="#" id="delete_messages"> Delete</a> 223 <a href="#" id="mark_as_read"><?php _e('Mark as Read') ?></a> 224 <a href="#" id="mark_as_unread"><?php _e('Mark as Unread') ?></a> 225 <a href="#" id="delete_messages"><?php _e('Delete') ?></a> 219 226 <?php 220 227 } … … 224 231 225 232 if ( $messages_template->thread->is_active ) { 226 echo "<strong>Currently Active</strong>"; 233 echo "<strong>"; 234 _e('Currently Active'); 235 echo "</strong>"; 227 236 } 228 237 } … … 281 290 282 291 if ( is_array($closed_notices) ) { 283 if ( !in_array( $notice->id, $closed_notices ) ) {292 if ( !in_array( $notice->id, $closed_notices ) && $notice->id ) { 284 293 ?> 285 294 <div class="notice" id="<?php echo $notice->id ?>">
Note: See TracChangeset
for help on using the changeset viewer.