Skip to:
Content

BuddyPress.org

Changeset 2145


Ignore:
Timestamp:
11/26/2009 09:34:54 PM (17 years ago)
Author:
apeatling
Message:

Fixing up group and profile page sidebars.

Location:
trunk
Files:
6 edited

Legend:

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

    r2136 r2145  
    419419                        return apply_filters( 'bp_word_or_name', $youtext );
    420420        } else {
    421                 $nametext = sprintf( $nametext, $bp->displayed_user->fullname );
     421                $fullname = (array)explode( ' ', $bp->displayed_user->fullname );
     422                $nametext = sprintf( $nametext, $fullname[0] );
    422423                if ( $echo )
    423424                        echo apply_filters( 'bp_word_or_name', $nametext );
  • trunk/bp-themes/bp-default/_inc/css/screen.css

    r2144 r2145  
    471471        div.bp-widget h4 {
    472472                position: relative;
    473                 background: url(../images/group_header.gif) repeat-x top left;
     473                background: url(../images/group_header.gif) repeat-x bottom left;
    474474                color: #fff;
    475475                padding: 6px 10px 15px 10px;
     
    478478        }
    479479                .left-menu div.bp-widget h4 {
    480                         background: url(../images/leftmenu_group_header.gif) top left no-repeat;
     480                        background: #d5d5d5 url(../images/leftmenu_group_header.gif) bottom left no-repeat;
    481481                        color: #555;
     482                        padding-bottom: 20px;
    482483                }
    483484
     
    489490                        font-weight: normal;
    490491                }
     492                        .left-menu div.bp-widget h4 a {
     493                                color: inherit;
     494                                font-weight: inherit;
     495                        }
    491496
    492497ul.horiz-gallery {
     
    12971302                }
    12981303
     1304                .activity-list li.mini .activity-content {
     1305                        margin-right: 70px;
     1306                }
     1307
    12991308                .activity-list li.mini .activity-content p {
    13001309                        margin: 0;
     
    13031312
    13041313                .activity-list li.mini .activity-meta {
    1305                         float: right;
     1314                        position: absolute;
     1315                        right: 0;
    13061316                }
    13071317
    13081318                .activity-list li.mini .activity-comments {
    13091319                        clear: left;
     1320                        font-size: 1.1em;
     1321                        margin-top: 30px;
    13101322                }
    13111323
     
    14701482                font-size: 0.9em;
    14711483                background: #FFF9DB;
    1472                 border-bottom:1px solid #FFE8C4;
    1473                 border-right:1px solid #FFE8C4;
     1484                border-bottom: 1px solid #FFE8C4;
     1485                border-right: 1px solid #FFE8C4;
    14741486                color: #888;
    14751487                padding: 4px 8px;
     
    14961508                                margin: 0;
    14971509                                margin-bottom: 20px;
     1510                                margin-left: -10px !important;
    14981511                        }
    14991512
    15001513                div.activity-comments ul li {
    15011514                        border-top: 1px solid #eee;
    1502                         padding: 10px 0 !important;
    1503                         margin-left: 0;
     1515                        padding: 10px 0 0 0 !important;
     1516                        margin-left: 10px;
    15041517                }
    15051518                        div.activity-comments ul li p:last-child {
     
    15091522                        div.activity-comments > ul > li:first-child {
    15101523                                border-top: none;
    1511                                 margin-left: 0 !important;
    15121524                        }
    15131525
     
    15171529                        }
    15181530
    1519                         div.activity-comments ul li:first-child {
    1520                                 margin-left: 10px;
    1521                         }
    1522 
    15231531                        div.activity-comments ul li:last-child {
    1524                                 margin-bottom: -8px;
     1532                                margin-bottom: 0;
    15251533                        }
    15261534
  • trunk/bp-themes/bp-sn-parent/groups/single/menu.php

    r2126 r2145  
    4343
    4444        <div class="bp-widget">
    45                 <h4><?php printf( __( 'Members (%d)', 'buddypress' ), bp_get_group_total_members() ); ?> <span><a href="<?php bp_group_all_members_permalink() ?>"><?php _e( 'See All', 'buddypress' ) ?> &rarr;</a></span></h4>
     45                <h4><a href="<?php bp_group_all_members_permalink() ?>"><?php printf( __( 'Members (%d)', 'buddypress' ), bp_get_group_total_members() ); ?></a></h4>
    4646
    4747                <?php if ( bp_group_has_members( 'max=5&exclude_admins_mods=0' ) ) : ?>
  • trunk/bp-themes/bp-sn-parent/profile/profile-menu.php

    r2126 r2145  
    2929
    3030                                        <div class="bp-widget">
    31                                                 <h4><?php bp_word_or_name( __( "My Groups", 'buddypress' ), __( "%s's Groups", 'buddypress' ) ) ?> (<?php bp_group_total_for_member() ?>) <span><a href="<?php echo bp_displayed_user_domain() . BP_GROUPS_SLUG ?>">&rarr;</a></span></h4>
     31                                                <h4><a href="<?php echo bp_displayed_user_domain() . BP_GROUPS_SLUG ?>"><?php bp_word_or_name( __( "My Groups", 'buddypress' ), __( "%s's Groups", 'buddypress' ) ) ?></a> (<?php bp_group_total_for_member() ?>)</h4>
    3232
    3333                                                <ul class="horiz-gallery">
     
    5757
    5858                                        <div class="bp-widget">
    59                                                 <h4><?php bp_word_or_name( __( "My Friends", 'buddypress' ), __( "%s's Friends", 'buddypress' ) ) ?> (<?php bp_friend_total_for_member() ?>) <span><a href="<?php echo bp_displayed_user_domain() . BP_FRIENDS_SLUG ?>">&rarr;</a></span></h4>
     59                                                <h4><a href="<?php echo bp_displayed_user_domain() . BP_FRIENDS_SLUG ?>"><?php bp_word_or_name( __( "My Friends", 'buddypress' ), __( "%s's Friends", 'buddypress' ) ) ?></a> (<?php bp_friend_total_for_member() ?>)</h4>
    6060
    6161                                                <ul class="horiz-gallery">
    6262                                                <?php while ( bp_user_friendships() ) : bp_the_friendship(); ?>
    6363                                                        <li>
    64                                                                 <a href="<?php bp_friend_url() ?>"><?php bp_friend_avatar_thumb('width=30&height=30') ?></a>
     64                                                                <a href="<?php bp_friend_url() ?>" title="<?php bp_friend_name() ?>"><?php bp_friend_avatar_thumb('width=30&height=30') ?></a>
    6565                                                        </li>
    6666                                                <?php endwhile; ?>
  • trunk/bp-xprofile/bp-xprofile-templatetags.php

    r2077 r2145  
    118118        function has_fields() {
    119119                $has_data = false;
    120                 $just_name = true;
    121120
    122121                for ( $i = 0; $i < count( $this->group->fields ); $i++ ) {
     
    125124                        if ( $field->data->value != null ) {
    126125                                $has_data = true;
    127 
    128                                 if ( 1 != $field->id )
    129                                         $just_name = false;
    130126                        }
    131127                }
    132 
    133                 if ( 1 == $this->group->id && $just_name )
    134                         return false;
    135128
    136129                if ( $has_data )
     
    156149                $field = $this->next_field();
    157150
    158                 if ( $field->data->value != '' ) {
     151                if ( !empty( $field->data->value ) ) {
    159152                        $this->field_has_data = true;
    160153                }
Note: See TracChangeset for help on using the changeset viewer.