Ticket #3501: 3501-01.patch
File 3501-01.patch, 3.6 KB (added by , 14 years ago) |
---|
-
bp-themes/bp-default/functions.php
### Eclipse Workspace Patch 1.0 #P BUDDYPRESS TRUNK SVN
702 702 <?php endif; 703 703 } 704 704 endif; 705 706 if ( !function_exists( 'bp_dtheme_content_member_summary' ) ) : 707 /** 708 * Display a basic summary of information about a user on member pages 709 * 710 * @param string $type Containing CSS element - default: 'span' 711 * @since 1.5 712 */ 713 function bp_dtheme_content_member_summary( $type ) { 714 $type = ( isset( $type ) ) ? esc_attr( $type ) : 'span'; 715 echo '<' . $type . ' class="member-summary user-nicename">@' . bp_get_displayed_user_username() . '</' . $type . '>'; 716 echo '<' . $type . ' class="member-summary activity">' . bp_get_last_activity( bp_displayed_user_id() ) . '</' . $type . '>'; 717 } 718 endif; 719 720 if ( !function_exists( 'bp_dtheme_content_member_activity' ) ) : 721 /** 722 * Display latest update for a user on member pages 723 * 724 * @since 1.5 725 */ 726 function bp_dtheme_content_member_update() { 727 if ( bp_is_active( 'activity' ) ) : 728 ?> 729 <div id="latest-update"> 730 <?php bp_activity_latest_update( bp_displayed_user_id() ); ?> 731 </div> 732 <?php endif; 733 } 734 endif; 705 735 ?> 736 No newline at end of file -
bp-themes/bp-default/_inc/css/default.css
2009 2009 .item-body { 2010 2010 margin: 20px 0; 2011 2011 } 2012 span.activity {2012 .member-summary.activity { 2013 2013 display: inline-block; 2014 2014 font-size: 11px; 2015 2015 opacity: 0.8; 2016 2016 padding: 1px 8px; 2017 margin-right: 5px; 2017 2018 } 2018 span.user-nicename {2019 .member-summary.user-nicename { 2019 2020 color: #777; 2020 2021 display: inline-block; 2021 2022 font-size: 16px; 2022 2023 font-weight: bold; 2023 } 2024 span.activity, 2024 margin-right: 5px; 2025 } 2026 .member-summary.activity, 2025 2027 div#message p { 2026 2028 border: 1px solid #e1ca82; 2027 2029 -moz-border-radius: 3px; … … 2060 2062 div#item-header h2 { 2061 2063 margin-bottom: 5px; 2062 2064 } 2063 div#item-header span.activity,2065 div#item-header .activity, 2064 2066 div#item-header h2 span.highlight { 2065 2067 font-size: 11px; 2066 2068 font-weight: normal; -
bp-themes/bp-default/members/single/member-header.php
21 21 22 22 <div id="item-header-content"> 23 23 24 <h2> 25 <a href="<?php bp_displayed_user_link(); ?>"><?php bp_displayed_user_fullname(); ?></a> 26 </h2> 27 28 <span class="user-nicename">@<?php bp_displayed_user_username(); ?></span> 29 <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span> 30 31 <?php do_action( 'bp_before_member_header_meta' ); ?> 24 <?php do_action( 'bp_before_member_header_title' ); ?> 32 25 33 < div id="item-meta">26 <h2><a href="<?php bp_displayed_user_link(); ?>"><?php bp_displayed_user_fullname(); ?></a></h2> 34 27 35 <?php if ( bp_is_active( 'activity' ) ) :?>28 <?php do_action( 'bp_before_member_header_summary' ); ?> 36 29 37 <div id="latest-update">30 <?php bp_dtheme_content_member_summary(); ?> 38 31 39 <?php bp_activity_latest_update( bp_displayed_user_id()); ?>32 <?php do_action( 'bp_before_member_header_meta' ); ?> 40 33 41 </div>34 <div id="item-meta"> 42 35 43 <?php endif; ?>36 <?php bp_dtheme_content_member_update(); ?> 44 37 45 38 <div id="item-buttons"> 46 39 … … 54 47 * bp_profile_field_data( 'field=About Me' ); -- Pass the name of the field 55 48 */ 56 49 do_action( 'bp_profile_header_meta' ); 57 58 50 ?> 59 51 60 52 </div><!-- #item-meta -->