Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/03/2010 03:25:54 PM (16 years ago)
Author:
apeatling
Message:

Fixes #1783

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/members/single/member-header.php

    r2522 r2566  
    11<?php do_action( 'bp_before_member_header' ) ?>
    22
    3 <?php bp_displayed_user_avatar( 'type=full' ) ?>
     3<div id="item-header-avatar">
     4    <?php bp_displayed_user_avatar( 'type=full' ) ?>
     5</div><!-- #item-header-avatar -->
    46
    5 <h2 class="fn"><a href="<?php bp_user_link() ?>"><?php bp_displayed_user_fullname() ?></a> <span class="highlight">@<?php bp_displayed_user_username() ?> <span>?</span></span></h2>
    6 <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ) ?></span>
     7<div id="item-header-content">
    78
    8 <?php do_action( 'bp_before_member_header_meta' ) ?>
     9    <h2 class="fn"><a href="<?php bp_user_link() ?>"><?php bp_displayed_user_fullname() ?></a> <span class="highlight">@<?php bp_displayed_user_username() ?> <span>?</span></span></h2>
     10    <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ) ?></span>
    911
    10 <div id="item-meta">
    11     <?php if ( function_exists( 'bp_activity_latest_update' ) ) : ?>
    12         <div id="latest-update">
    13             <?php bp_activity_latest_update( bp_displayed_user_id() ) ?>
    14         </div>
    15     <?php endif; ?>
     12    <?php do_action( 'bp_before_member_header_meta' ) ?>
    1613
    17     <div id="item-buttons">
    18         <?php if ( function_exists( 'bp_add_friend_button' ) ) : ?>
    19             <?php bp_add_friend_button() ?>
    20         <?php endif; ?>
    21 
    22         <?php if ( is_user_logged_in() && !bp_is_my_profile() && function_exists( 'bp_send_public_message_link' ) ) : ?>
    23             <div class="generic-button" id="post-mention">
    24                 <a href="<?php bp_send_public_message_link() ?>" title="<?php _e( 'Mention this user in a new public message, this will send the user a notification to get their attention.', 'buddypress' ) ?>"><?php _e( 'Mention this User', 'buddypress' ) ?></a>
     14    <div id="item-meta">
     15        <?php if ( function_exists( 'bp_activity_latest_update' ) ) : ?>
     16            <div id="latest-update">
     17                <?php bp_activity_latest_update( bp_displayed_user_id() ) ?>
    2518            </div>
    2619        <?php endif; ?>
    2720
    28         <?php if ( is_user_logged_in() && !bp_is_my_profile() && function_exists( 'bp_send_private_message_link' ) ) : ?>
    29             <div class="generic-button" id="send-private-message">
    30                 <a href="<?php bp_send_private_message_link() ?>" title="<?php _e( 'Send a private message to this user.', 'buddypress' ) ?>"><?php _e( 'Send Private Message', 'buddypress' ) ?></a>
    31             </div>
    32         <?php endif; ?>
    33     </div>
     21        <div id="item-buttons">
     22            <?php if ( function_exists( 'bp_add_friend_button' ) ) : ?>
     23                <?php bp_add_friend_button() ?>
     24            <?php endif; ?>
    3425
    35     <?php
    36      /***
    37       * If you'd like to show specific profile fields here use:
    38       * bp_profile_field_data( 'field=About Me' ); -- Pass the name of the field
    39       */
    40     ?>
     26            <?php if ( is_user_logged_in() && !bp_is_my_profile() && function_exists( 'bp_send_public_message_link' ) ) : ?>
     27                <div class="generic-button" id="post-mention">
     28                    <a href="<?php bp_send_public_message_link() ?>" title="<?php _e( 'Mention this user in a new public message, this will send the user a notification to get their attention.', 'buddypress' ) ?>"><?php _e( 'Mention this User', 'buddypress' ) ?></a>
     29                </div>
     30            <?php endif; ?>
    4131
    42     <?php do_action( 'bp_profile_header_meta' ) ?>
     32            <?php if ( is_user_logged_in() && !bp_is_my_profile() && function_exists( 'bp_send_private_message_link' ) ) : ?>
     33                <div class="generic-button" id="send-private-message">
     34                    <a href="<?php bp_send_private_message_link() ?>" title="<?php _e( 'Send a private message to this user.', 'buddypress' ) ?>"><?php _e( 'Send Private Message', 'buddypress' ) ?></a>
     35                </div>
     36            <?php endif; ?>
     37        </div><!-- #item-buttons -->
    4338
    44 </div>
     39        <?php
     40         /***
     41          * If you'd like to show specific profile fields here use:
     42          * bp_profile_field_data( 'field=About Me' ); -- Pass the name of the field
     43          */
     44        ?>
     45
     46        <?php do_action( 'bp_profile_header_meta' ) ?>
     47
     48    </div><!-- #item-meta -->
     49
     50</div><!-- #item-header-content -->
    4551
    4652<?php do_action( 'bp_after_member_header' ) ?>
Note: See TracChangeset for help on using the changeset viewer.