Changeset 4676
- Timestamp:
- 07/17/2011 11:57:04 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-loader.php
r4466 r4676 106 106 // Add 'Sites' to the main navigation 107 107 $main_nav = array( 108 'name' => sprintf( __( 'Sites <span> (%d)</span>', 'buddypress' ), bp_blogs_total_blogs_for_user() ),108 'name' => sprintf( __( 'Sites <span>%d</span>', 'buddypress' ), bp_blogs_total_blogs_for_user() ), 109 109 'slug' => $this->slug, 110 110 'position' => 30, -
trunk/bp-friends/bp-friends-loader.php
r4647 r4676 95 95 // Add 'Friends' to the main navigation 96 96 $main_nav = array( 97 'name' => sprintf( __( 'Friends <span> (%d)</span>', 'buddypress' ), friends_get_total_friend_count() ),97 'name' => sprintf( __( 'Friends <span>%d</span>', 'buddypress' ), friends_get_total_friend_count() ), 98 98 'slug' => $this->slug, 99 99 'position' => 60, … … 149 149 // Pending friend requests 150 150 if ( $count = count( friends_get_friendship_request_user_ids( $bp->loggedin_user->id ) ) ) { 151 $title = sprintf( __( 'Friends <s trong>(%s)</strong>', 'buddypress' ), $count );152 $pending = sprintf( __( 'Pending Requests <s trong>(%s)</strong>', 'buddypress' ), $count );151 $title = sprintf( __( 'Friends <span>%s</span>', 'buddypress' ), $count ); 152 $pending = sprintf( __( 'Pending Requests <span>%s</span>', 'buddypress' ), $count ); 153 153 } else { 154 154 $title = __( 'Friends', 'buddypress' ); -
trunk/bp-groups/bp-groups-loader.php
r4620 r4676 224 224 // Add 'Groups' to the main navigation 225 225 $main_nav = array( 226 'name' => sprintf( __( 'Groups <span> (%d)</span>', 'buddypress' ), groups_total_groups_for_user() ),226 'name' => sprintf( __( 'Groups <span>%d</span>', 'buddypress' ), groups_total_groups_for_user() ), 227 227 'slug' => $this->slug, 228 228 'position' => 70, … … 331 331 332 332 $sub_nav[] = array( 333 'name' => sprintf( __( 'Members (%s)', 'buddypress' ), number_format( $this->current_group->total_member_count ) ),333 'name' => sprintf( __( 'Members <span>%s</span>', 'buddypress' ), number_format( $this->current_group->total_member_count ) ), 334 334 'slug' => 'members', 335 335 'parent_url' => $group_link, … … 386 386 if ( !empty( $count->total ) ) { 387 387 $title = sprintf( __( 'Groups <strong>(%s)</strong>', 'buddypress' ), $count->total ); 388 $pending = sprintf( __( 'Pending Invites <s trong>(%s)</strong>', 'buddypress' ), $count->total );388 $pending = sprintf( __( 'Pending Invites <span>%s</span>', 'buddypress' ), $count->total ); 389 389 } else { 390 390 $title = __( 'Groups', 'buddypress' ); -
trunk/bp-messages/bp-messages-loader.php
r4586 r4676 94 94 95 95 if ( $count = messages_get_unread_count() ) 96 $name = sprintf( __( 'Messages <s trong>(%s)</strong>', 'buddypress' ), $count );96 $name = sprintf( __( 'Messages <span>%s</span>', 'buddypress' ), $count ); 97 97 else 98 98 $name = __( 'Messages <strong></strong>', 'buddypress' ); … … 179 179 // Unread message count 180 180 if ( $count = messages_get_unread_count() ) { 181 $title = sprintf( __( 'Messages <s trong>(%s)</strong>', 'buddypress' ), $count );182 $inbox = sprintf( __( 'Inbox <s trong>(%s)</strong>', 'buddypress' ), $count );181 $title = sprintf( __( 'Messages <span>%s</span>', 'buddypress' ), $count ); 182 $inbox = sprintf( __( 'Inbox <span>%s</span>', 'buddypress' ), $count ); 183 183 } else { 184 184 $title = __( 'Messages', 'buddypress' ); -
trunk/bp-themes/bp-default/_inc/css/default.css
r4673 r4676 1289 1289 text-decoration: none; 1290 1290 } 1291 a.bp-primary-action:hover, 1292 .comment-reply-link:hover, 1293 #reply-title small a:hover { 1291 a.bp-primary-action span, 1292 .comment-reply-link span, 1293 #reply-title small a span { 1294 background: #999; 1295 -moz-border-radius: 3px; 1296 -webkit-border-radius: 3px; 1297 border-radius: 3px; 1298 color: #fff; 1299 font-size: 90%; 1300 margin-left: 2px; 1301 padding: 0 5px; 1302 } 1303 a.bp-primary-action:hover span, 1304 .comment-reply-link:hover span, 1305 #reply-title small a:hover span { 1306 background: #555; 1307 color: #fff; 1294 1308 } 1295 1309 div.activity-comments { … … 2119 2133 } 2120 2134 div.item-list-tabs ul li a span { 2121 color: inherit; 2135 background: #1fb3dd; 2136 -moz-border-radius: 3px; 2137 -webkit-border-radius: 3px; 2138 border-radius: 3px; 2139 color: #fff; 2122 2140 display: inline; 2123 padding: 0; 2141 font-size: 90%; 2142 margin-left: 2px; 2143 padding: 1px 6px; 2124 2144 } 2125 2145 div.item-list-tabs ul li.selected a, … … 2135 2155 font-weight: bold; 2136 2156 } 2157 div.item-list-tabs ul li.selected a span, 2158 div.item-list-tabs ul li.current a span, 2159 div.item-list-tabs ul li a:hover span { 2160 background-color: #999; 2161 } 2137 2162 ul li.loading a { 2138 2163 background-image: url( ../images/ajax-loader.gif ); -
trunk/bp-themes/bp-default/_inc/global.js
r4655 r4676 178 178 if ( 'fav' == type ) { 179 179 if ( !jq('div.item-list-tabs li#activity-favorites').length ) 180 jq('div.item-list-tabs ul li#activity-mentions').before( '<li id="activity-favorites"><a href="#">' + BP_DTheme.my_favs + ' (<span>0</span>)</a></li>');180 jq('div.item-list-tabs ul li#activity-mentions').before( '<li id="activity-favorites"><a href="#">' + BP_DTheme.my_favs + ' <span>0</span></a></li>'); 181 181 182 182 target.removeClass('fav'); -
trunk/bp-themes/bp-default/activity/entry.php
r4675 r4676 59 59 <?php if ( bp_activity_can_comment() ) : ?> 60 60 61 <a href="<?php bp_get_activity_comment_link(); ?>" class="acomment-reply bp-primary-action" id="acomment-comment-<?php bp_activity_id(); ?>"><?php printf( __( 'Comment (<span>%s</span>)', 'buddypress' ), bp_activity_get_comment_count() ); ?></a>61 <a href="<?php bp_get_activity_comment_link(); ?>" class="acomment-reply bp-primary-action" id="acomment-comment-<?php bp_activity_id(); ?>"><?php printf( __( 'Comment <span>%s</span>', 'buddypress' ), bp_activity_get_comment_count() ); ?></a> 62 62 63 63 <?php endif; ?> -
trunk/bp-themes/bp-default/activity/index.php
r4653 r4676 35 35 <?php do_action( 'bp_before_activity_type_tab_all' ) ?> 36 36 37 <li class="selected" id="activity-all"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' ?>" title="<?php _e( 'The public activity for everyone on this site.', 'buddypress' ) ?>"><?php printf( __( 'All Members (%s)', 'buddypress' ), bp_get_total_site_member_count() ) ?></a></li>37 <li class="selected" id="activity-all"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' ?>" title="<?php _e( 'The public activity for everyone on this site.', 'buddypress' ) ?>"><?php printf( __( 'All Members <span>%s</span>', 'buddypress' ), bp_get_total_site_member_count() ) ?></a></li> 38 38 39 39 <?php if ( is_user_logged_in() ) : ?> … … 45 45 <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> 46 46 47 <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/' ?>" title="<?php _e( 'The activity of my friends only.', 'buddypress' ) ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li>47 <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/' ?>" title="<?php _e( 'The activity of my friends only.', 'buddypress' ) ?>"><?php printf( __( 'My Friends <span>%s</span>', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li> 48 48 49 49 <?php endif; ?> … … 57 57 <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?> 58 58 59 <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() . '/' ?>" title="<?php _e( 'The activity of groups I am a member of.', 'buddypress' ) ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>59 <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() . '/' ?>" title="<?php _e( 'The activity of groups I am a member of.', 'buddypress' ) ?>"><?php printf( __( 'My Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> 60 60 61 61 <?php endif; ?> … … 67 67 <?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?> 68 68 69 <li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/' ?>" title="<?php _e( "The activity I've marked as a favorite.", 'buddypress' ) ?>"><?php printf( __( 'My Favorites (<span>%s</span>)', 'buddypress' ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>69 <li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/' ?>" title="<?php _e( "The activity I've marked as a favorite.", 'buddypress' ) ?>"><?php printf( __( 'My Favorites <span>%s</span>', 'buddypress' ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> 70 70 71 71 <?php endif; ?> … … 73 73 <?php do_action( 'bp_before_activity_type_tab_mentions' ) ?> 74 74 75 <li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/' ?>" title="<?php _e( 'Activity that I have been mentioned in.', 'buddypress' ) ?>"><?php _e( 'Public Mentions', 'buddypress' ); ?><?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?> <strong><?php printf( __( ' (%s new)', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) ?></strong><?php endif; ?></a></li>75 <li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/' ?>" title="<?php _e( 'Activity that I have been mentioned in.', 'buddypress' ) ?>"><?php _e( 'Public Mentions', 'buddypress' ); ?><?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?> <strong><?php printf( __( '<span>%s new</span>', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) ?></strong><?php endif; ?></a></li> 76 76 77 77 <?php endif; ?> -
trunk/bp-themes/bp-default/blogs/index.php
r4638 r4676 29 29 <div class="item-list-tabs" role="navigation"> 30 30 <ul> 31 <li class="selected" id="blogs-all"><a href="<?php bp_root_domain(); ?>"><?php printf( __( 'All Sites (%s)', 'buddypress' ), bp_get_total_blog_count() ); ?></a></li>31 <li class="selected" id="blogs-all"><a href="<?php bp_root_domain(); ?>"><?php printf( __( 'All Sites <span>%s</span>', 'buddypress' ), bp_get_total_blog_count() ); ?></a></li> 32 32 33 33 <?php if ( is_user_logged_in() && bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ) : ?> 34 34 35 <li id="blogs-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_blogs_slug() . '/my-blogs/' ?>"><?php printf( __( 'My Sites (%s)', 'buddypress' ), bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>35 <li id="blogs-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_blogs_slug() . '/my-blogs/' ?>"><?php printf( __( 'My Sites <span>%s</span>', 'buddypress' ), bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ); ?></a></li> 36 36 37 37 <?php endif; ?> -
trunk/bp-themes/bp-default/forums/index.php
r4452 r4676 36 36 <div class="item-list-tabs" role="navigation"> 37 37 <ul> 38 <li class="selected" id="forums-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_forums_root_slug() ); ?>"><?php printf( __( 'All Topics (%s)', 'buddypress' ), bp_get_forum_topic_count() ); ?></a></li>38 <li class="selected" id="forums-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_forums_root_slug() ); ?>"><?php printf( __( 'All Topics <span>%s</span>', 'buddypress' ), bp_get_forum_topic_count() ); ?></a></li> 39 39 40 40 <?php if ( is_user_logged_in() && bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) : ?> 41 41 42 <li id="forums-personal"><a href="<?php echo trailingslashit( bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics' ); ?>"><?php printf( __( 'My Topics (%s)', 'buddypress' ), bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>42 <li id="forums-personal"><a href="<?php echo trailingslashit( bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics' ); ?>"><?php printf( __( 'My Topics <span>%s</span>', 'buddypress' ), bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ); ?></a></li> 43 43 44 44 <?php endif; ?> -
trunk/bp-themes/bp-default/groups/index.php
r4452 r4676 31 31 <div class="item-list-tabs" role="navigation"> 32 32 <ul> 33 <li class="selected" id="groups-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() ); ?>"><?php printf( __( 'All Groups (%s)', 'buddypress' ), bp_get_total_group_count() ); ?></a></li>33 <li class="selected" id="groups-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() ); ?>"><?php printf( __( 'All Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count() ); ?></a></li> 34 34 35 35 <?php if ( is_user_logged_in() && bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?> 36 36 37 <li id="groups-personal"><a href="<?php echo trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() . '/my-groups' ); ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>37 <li id="groups-personal"><a href="<?php echo trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() . '/my-groups' ); ?>"><?php printf( __( 'My Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ); ?></a></li> 38 38 39 39 <?php endif; ?> -
trunk/bp-themes/bp-default/members/index.php
r4638 r4676 29 29 <div class="item-list-tabs" role="navigation"> 30 30 <ul> 31 <li class="selected" id="members-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_members_root_slug() ); ?>"><?php printf( __( 'All Members (%s)', 'buddypress' ), bp_get_total_member_count() ); ?></a></li>31 <li class="selected" id="members-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_members_root_slug() ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'buddypress' ), bp_get_total_member_count() ); ?></a></li> 32 32 33 33 <?php if ( is_user_logged_in() && bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> 34 34 35 <li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/' ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a></li>35 <li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/' ?>"><?php printf( __( 'My Friends <span>%s</span>', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a></li> 36 36 37 37 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.