Changeset 2145
- Timestamp:
- 11/26/2009 09:34:54 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
bp-core/bp-core-templatetags.php (modified) (1 diff)
-
bp-themes/bp-default/_inc/css/screen.css (modified) (9 diffs)
-
bp-themes/bp-default/_inc/images/leftmenu_group_header.gif (modified) (previous)
-
bp-themes/bp-sn-parent/groups/single/menu.php (modified) (1 diff)
-
bp-themes/bp-sn-parent/profile/profile-menu.php (modified) (2 diffs)
-
bp-xprofile/bp-xprofile-templatetags.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-templatetags.php
r2136 r2145 419 419 return apply_filters( 'bp_word_or_name', $youtext ); 420 420 } else { 421 $nametext = sprintf( $nametext, $bp->displayed_user->fullname ); 421 $fullname = (array)explode( ' ', $bp->displayed_user->fullname ); 422 $nametext = sprintf( $nametext, $fullname[0] ); 422 423 if ( $echo ) 423 424 echo apply_filters( 'bp_word_or_name', $nametext ); -
trunk/bp-themes/bp-default/_inc/css/screen.css
r2144 r2145 471 471 div.bp-widget h4 { 472 472 position: relative; 473 background: url(../images/group_header.gif) repeat-x topleft;473 background: url(../images/group_header.gif) repeat-x bottom left; 474 474 color: #fff; 475 475 padding: 6px 10px 15px 10px; … … 478 478 } 479 479 .left-menu div.bp-widget h4 { 480 background: url(../images/leftmenu_group_header.gif) topleft no-repeat;480 background: #d5d5d5 url(../images/leftmenu_group_header.gif) bottom left no-repeat; 481 481 color: #555; 482 padding-bottom: 20px; 482 483 } 483 484 … … 489 490 font-weight: normal; 490 491 } 492 .left-menu div.bp-widget h4 a { 493 color: inherit; 494 font-weight: inherit; 495 } 491 496 492 497 ul.horiz-gallery { … … 1297 1302 } 1298 1303 1304 .activity-list li.mini .activity-content { 1305 margin-right: 70px; 1306 } 1307 1299 1308 .activity-list li.mini .activity-content p { 1300 1309 margin: 0; … … 1303 1312 1304 1313 .activity-list li.mini .activity-meta { 1305 float: right; 1314 position: absolute; 1315 right: 0; 1306 1316 } 1307 1317 1308 1318 .activity-list li.mini .activity-comments { 1309 1319 clear: left; 1320 font-size: 1.1em; 1321 margin-top: 30px; 1310 1322 } 1311 1323 … … 1470 1482 font-size: 0.9em; 1471 1483 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; 1474 1486 color: #888; 1475 1487 padding: 4px 8px; … … 1496 1508 margin: 0; 1497 1509 margin-bottom: 20px; 1510 margin-left: -10px !important; 1498 1511 } 1499 1512 1500 1513 div.activity-comments ul li { 1501 1514 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; 1504 1517 } 1505 1518 div.activity-comments ul li p:last-child { … … 1509 1522 div.activity-comments > ul > li:first-child { 1510 1523 border-top: none; 1511 margin-left: 0 !important;1512 1524 } 1513 1525 … … 1517 1529 } 1518 1530 1519 div.activity-comments ul li:first-child {1520 margin-left: 10px;1521 }1522 1523 1531 div.activity-comments ul li:last-child { 1524 margin-bottom: -8px;1532 margin-bottom: 0; 1525 1533 } 1526 1534 -
trunk/bp-themes/bp-sn-parent/groups/single/menu.php
r2126 r2145 43 43 44 44 <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' ) ?> →</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> 46 46 47 47 <?php if ( bp_group_has_members( 'max=5&exclude_admins_mods=0' ) ) : ?> -
trunk/bp-themes/bp-sn-parent/profile/profile-menu.php
r2126 r2145 29 29 30 30 <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 ?>">→</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> 32 32 33 33 <ul class="horiz-gallery"> … … 57 57 58 58 <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 ?>">→</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> 60 60 61 61 <ul class="horiz-gallery"> 62 62 <?php while ( bp_user_friendships() ) : bp_the_friendship(); ?> 63 63 <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> 65 65 </li> 66 66 <?php endwhile; ?> -
trunk/bp-xprofile/bp-xprofile-templatetags.php
r2077 r2145 118 118 function has_fields() { 119 119 $has_data = false; 120 $just_name = true;121 120 122 121 for ( $i = 0; $i < count( $this->group->fields ); $i++ ) { … … 125 124 if ( $field->data->value != null ) { 126 125 $has_data = true; 127 128 if ( 1 != $field->id )129 $just_name = false;130 126 } 131 127 } 132 133 if ( 1 == $this->group->id && $just_name )134 return false;135 128 136 129 if ( $has_data ) … … 156 149 $field = $this->next_field(); 157 150 158 if ( $field->data->value != '') {151 if ( !empty( $field->data->value ) ) { 159 152 $this->field_has_data = true; 160 153 }
Note: See TracChangeset
for help on using the changeset viewer.