Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/09/2008 06:52:13 PM (17 years ago)
Author:
apeatling
Message:

Added complete support for existing blog networks. Please see mailing list for complete overview on the new "home base" features.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages/bp-messages-templatetags.php

    r304 r309  
    9797
    9898function 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   
    100107    return $messages_template->has_threads();
    101108}
     
    210217        <select name="message-type-select" id="message-type-select">
    211218            <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>
    215222        </select> &nbsp;
    216         <a href="#" id="mark_as_read">Mark as Read</a> &nbsp;
    217         <a href="#" id="mark_as_unread">Mark as Unread</a> &nbsp;
    218         <a href="#" id="delete_messages">Delete</a> &nbsp;
     223        <a href="#" id="mark_as_read"><?php _e('Mark as Read') ?></a> &nbsp;
     224        <a href="#" id="mark_as_unread"><?php _e('Mark as Unread') ?></a> &nbsp;
     225        <a href="#" id="delete_messages"><?php _e('Delete') ?></a> &nbsp;
    219226<?php   
    220227}
     
    224231   
    225232    if ( $messages_template->thread->is_active ) {
    226         echo "<strong>Currently Active</strong>";
     233        echo "<strong>";
     234        _e('Currently Active');
     235        echo "</strong>";
    227236    }
    228237}
     
    281290
    282291    if ( is_array($closed_notices) ) {
    283         if ( !in_array( $notice->id, $closed_notices ) ) {
     292        if ( !in_array( $notice->id, $closed_notices ) && $notice->id ) {
    284293            ?>
    285294            <div class="notice" id="<?php echo $notice->id ?>">
Note: See TracChangeset for help on using the changeset viewer.