Skip to:
Content

BuddyPress.org

Changeset 4676


Ignore:
Timestamp:
07/17/2011 11:57:04 PM (13 years ago)
Author:
djpaul
Message:

Replace parentheses around nav item numbers with spans. Fixes #3340, big props davidtcarson

Location:
trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-loader.php

    r4466 r4676  
    106106        // Add 'Sites' to the main navigation
    107107        $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() ),
    109109            'slug'                => $this->slug,
    110110            'position'            => 30,
  • trunk/bp-friends/bp-friends-loader.php

    r4647 r4676  
    9595        // Add 'Friends' to the main navigation
    9696        $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() ),
    9898            'slug'                => $this->slug,
    9999            'position'            => 60,
     
    149149            // Pending friend requests
    150150            if ( $count = count( friends_get_friendship_request_user_ids( $bp->loggedin_user->id ) ) ) {
    151                 $title   = sprintf( __( 'Friends <strong>(%s)</strong>',          'buddypress' ), $count );
    152                 $pending = sprintf( __( 'Pending Requests <strong>(%s)</strong>', 'buddypress' ), $count );
     151                $title   = sprintf( __( 'Friends <span>%s</span>',          'buddypress' ), $count );
     152                $pending = sprintf( __( 'Pending Requests <span>%s</span>', 'buddypress' ), $count );
    153153            } else {
    154154                $title   = __( 'Friends',             'buddypress' );
  • trunk/bp-groups/bp-groups-loader.php

    r4620 r4676  
    224224        // Add 'Groups' to the main navigation
    225225        $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() ),
    227227            'slug'                => $this->slug,
    228228            'position'            => 70,
     
    331331
    332332            $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 ) ),
    334334                'slug'            => 'members',
    335335                'parent_url'      => $group_link,
     
    386386            if ( !empty( $count->total ) ) {
    387387                $title   = sprintf( __( 'Groups <strong>(%s)</strong>',          'buddypress' ), $count->total );
    388                 $pending = sprintf( __( 'Pending Invites <strong>(%s)</strong>', 'buddypress' ), $count->total );
     388                $pending = sprintf( __( 'Pending Invites <span>%s</span>', 'buddypress' ), $count->total );
    389389            } else {
    390390                $title   = __( 'Groups',             'buddypress' );
  • trunk/bp-messages/bp-messages-loader.php

    r4586 r4676  
    9494
    9595        if ( $count = messages_get_unread_count() )
    96             $name = sprintf( __( 'Messages <strong>(%s)</strong>', 'buddypress' ), $count );
     96            $name = sprintf( __( 'Messages <span>%s</span>', 'buddypress' ), $count );
    9797        else
    9898            $name = __( 'Messages <strong></strong>', 'buddypress' );
     
    179179            // Unread message count
    180180            if ( $count = messages_get_unread_count() ) {
    181                 $title = sprintf( __( 'Messages <strong>(%s)</strong>', 'buddypress' ), $count );
    182                 $inbox = sprintf( __( 'Inbox <strong>(%s)</strong>',    'buddypress' ), $count );
     181                $title = sprintf( __( 'Messages <span>%s</span>', 'buddypress' ), $count );
     182                $inbox = sprintf( __( 'Inbox <span>%s</span>',    'buddypress' ), $count );
    183183            } else {
    184184                $title = __( 'Messages', 'buddypress' );
  • trunk/bp-themes/bp-default/_inc/css/default.css

    r4673 r4676  
    12891289    text-decoration: none;
    12901290}
    1291 a.bp-primary-action:hover,
    1292 .comment-reply-link:hover,
    1293 #reply-title small a:hover {
     1291a.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}
     1303a.bp-primary-action:hover span,
     1304.comment-reply-link:hover span,
     1305#reply-title small a:hover span {
     1306    background: #555;
     1307    color: #fff;
    12941308}
    12951309div.activity-comments {
     
    21192133}
    21202134div.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;
    21222140    display: inline;
    2123     padding: 0;
     2141    font-size: 90%;
     2142    margin-left: 2px;
     2143    padding: 1px 6px;
    21242144}
    21252145div.item-list-tabs ul li.selected a,
     
    21352155    font-weight: bold;
    21362156}
     2157div.item-list-tabs ul li.selected a span,
     2158div.item-list-tabs ul li.current a span,
     2159div.item-list-tabs ul li a:hover span {
     2160    background-color: #999;
     2161}
    21372162ul li.loading a {
    21382163    background-image: url( ../images/ajax-loader.gif );
  • trunk/bp-themes/bp-default/_inc/global.js

    r4655 r4676  
    178178                if ( 'fav' == type ) {
    179179                    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>');
    181181
    182182                    target.removeClass('fav');
  • trunk/bp-themes/bp-default/activity/entry.php

    r4675 r4676  
    5959                <?php if ( bp_activity_can_comment() ) : ?>
    6060
    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>
    6262
    6363                <?php endif; ?>
  • trunk/bp-themes/bp-default/activity/index.php

    r4653 r4676  
    3535                    <?php do_action( 'bp_before_activity_type_tab_all' ) ?>
    3636
    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>
    3838
    3939                    <?php if ( is_user_logged_in() ) : ?>
     
    4545                            <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    4646
    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>
    4848
    4949                            <?php endif; ?>
     
    5757                            <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
    5858
    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>
    6060
    6161                            <?php endif; ?>
     
    6767                        <?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?>
    6868
    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>
    7070
    7171                        <?php endif; ?>
     
    7373                        <?php do_action( 'bp_before_activity_type_tab_mentions' ) ?>
    7474
    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>
    7676
    7777                    <?php endif; ?>
  • trunk/bp-themes/bp-default/blogs/index.php

    r4638 r4676  
    2929            <div class="item-list-tabs" role="navigation">
    3030                <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>
    3232
    3333                    <?php if ( is_user_logged_in() && bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ) : ?>
    3434
    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>
    3636
    3737                    <?php endif; ?>
  • trunk/bp-themes/bp-default/forums/index.php

    r4452 r4676  
    3636                <div class="item-list-tabs" role="navigation">
    3737                    <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>
    3939
    4040                        <?php if ( is_user_logged_in() && bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) : ?>
    4141
    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>
    4343
    4444                        <?php endif; ?>
  • trunk/bp-themes/bp-default/groups/index.php

    r4452 r4676  
    3131            <div class="item-list-tabs" role="navigation">
    3232                <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>
    3434
    3535                    <?php if ( is_user_logged_in() && bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
    3636
    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>
    3838
    3939                    <?php endif; ?>
  • trunk/bp-themes/bp-default/members/index.php

    r4638 r4676  
    2929            <div class="item-list-tabs" role="navigation">
    3030                <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>
    3232
    3333                    <?php if ( is_user_logged_in() && bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    3434
    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>
    3636
    3737                    <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.