Changeset 2558
- Timestamp:
- 02/03/2010 11:32:07 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages.php
r2450 r2558 101 101 global $bp; 102 102 103 if ( $bp->current_component == $bp->messages->slug ) { 104 $inbox_count = messages_get_unread_count(); 105 $inbox_display = ( $inbox_count ) ? ' style="display:inline;"' : ' style="display:none;"'; 106 $count_indicator = ' <span' . $inbox_display . ' class="unread-count inbox-count">' . $inbox_count . '</span>'; 107 } 103 if ( $count = messages_get_unread_count() ) 104 $name = sprintf( __('Messages <strong>(%s)</strong>', 'buddypress'), $count ); 105 else 106 $name = __('Messages <strong></strong>', 'buddypress'); 108 107 109 108 /* Add 'Messages' to the main navigation */ 110 bp_core_new_nav_item( array( 'name' => __('Messages', 'buddypress'), 'slug' => $bp->messages->slug, 'position' => 50, 'show_for_displayed_user' => false, 'screen_function' => 'messages_screen_inbox', 'default_subnav_slug' => 'inbox', 'item_css_id' => $bp->messages->id ) );109 bp_core_new_nav_item( array( 'name' => $name, 'slug' => $bp->messages->slug, 'position' => 50, 'show_for_displayed_user' => false, 'screen_function' => 'messages_screen_inbox', 'default_subnav_slug' => 'inbox', 'item_css_id' => $bp->messages->id ) ); 111 110 112 111 $messages_link = $bp->loggedin_user->domain . $bp->messages->slug . '/'; -
trunk/bp-messages/bp-messages-classes.php
r2502 r2558 161 161 global $wpdb, $bp; 162 162 163 $sql = $wpdb->prepare( "SELECT unread_count FROM {$bp->messages->table_name_recipients} WHERE user_id = %d AND is_deleted = 0 ", $bp->loggedin_user->id );163 $sql = $wpdb->prepare( "SELECT unread_count FROM {$bp->messages->table_name_recipients} WHERE user_id = %d AND is_deleted = 0 AND sender_only = 0", $bp->loggedin_user->id ); 164 164 165 165 if ( !$unread_counts = $wpdb->get_results($sql) ) -
trunk/bp-themes/bp-default/_inc/css/default.css
r2544 r2558 847 847 } 848 848 849 table.profile-fields { margin-bottom: 20px;} 850 849 851 div#sidebar table { 850 852 margin: 0 -16px; -
trunk/bp-themes/bp-default/_inc/global.js
r2555 r2558 879 879 j('tr#m-' + j(this).attr('value') + ' td span.unread-count').html(unreadCount); 880 880 j('tr#m-' + j(this).attr('value') + ' td span.unread-count').css('display', unreadCountDisplay); 881 var inboxcount = j('.inbox-count').html(); 882 881 var inboxcount = j('a#user-messages strong').html().substr( 1, j('a#user-messages strong').html().length ); 882 var inboxcount = inboxcount.substr( 0, inboxcount.length - 1 ); 883 884 if ( !inboxcount.length ) 885 inboxcount = 0; 883 886 if ( parseInt(inboxcount) == inboxCount ) { 884 j(' .inbox-count').css('display', unreadCountDisplay);885 j(' .inbox-count').html(unreadCount);887 j('a#user-messages strong').css('display', unreadCountDisplay); 888 j('a#user-messages strong').html( '(' + unreadCount + ')' ); 886 889 } else { 887 890 if ( 'read' == currentClass ) 888 j(' .inbox-count').html(parseInt(inboxcount) + 1);891 j('a#user-messages strong').html('(' + ( parseInt(inboxcount) + 1 ) + ')'); 889 892 else 890 j(' .inbox-count').html(parseInt(inboxcount) - thread_count);893 j('a#user-messages strong').html('(' + ( parseInt(inboxcount) - thread_count ) + ')'); 891 894 } 892 895 -
trunk/bp-themes/bp-default/members/single/profile/change-avatar.php
r2386 r2558 1 <h 3><?php _e( 'Change Avatar', 'buddypress' ) ?></h3>1 <h4><?php _e( 'Change Avatar', 'buddypress' ) ?></h4> 2 2 3 3 <?php do_action( 'bp_before_profile_avatar_upload_content' ) ?> … … 30 30 <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?> 31 31 32 <h 3><?php _e( 'Crop Your New Avatar', 'buddypress' ) ?></h3>32 <h5><?php _e( 'Crop Your New Avatar', 'buddypress' ) ?></h5> 33 33 34 34 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ) ?>" /> -
trunk/bp-themes/bp-default/members/single/profile/edit.php
r2170 r2558 7 7 <?php do_action( 'bp_before_profile_field_content' ) ?> 8 8 9 <h 3><?php printf( __( "Editing '%s' Profile Group", "buddypress" ), bp_get_the_profile_group_name() ); ?></h3>9 <h4><?php printf( __( "Editing '%s' Profile Group", "buddypress" ), bp_get_the_profile_group_name() ); ?></h4> 10 10 11 11 <ul class="button-nav"> -
trunk/bp-themes/bp-default/members/single/profile/profile-loop.php
r2284 r2558 12 12 13 13 <div class="bp-widget <?php bp_the_profile_group_slug() ?>"> 14 <h 3><?php bp_the_profile_group_name() ?></h3>14 <h4><?php bp_the_profile_group_name() ?></h4> 15 15 16 16 <table class="profile-fields">
Note: See TracChangeset
for help on using the changeset viewer.