Skip to content

Commit

Permalink
Add Change Avatar link under one's own profile avatar
Browse files Browse the repository at this point in the history
See Commons #2728
  • Loading branch information
boonebgorges committed Aug 28, 2013
1 parent 8184b15 commit 3d5a5f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/cacap/header-top.php
Expand Up @@ -29,6 +29,13 @@
'height' => '130px',
) ) ?>
<div class="activity"><?php bp_last_activity( bp_displayed_user_id() ) ?></div>

<?php if ( bp_is_my_profile() ) : ?>
<div id="change-avatar-button" class="generic-button">
<a href="<?php echo bp_displayed_user_domain() ?>profile/change-avatar">Change Avatar</a>
</div>
<?php endif ?>

<?php bp_add_friend_button( bp_displayed_user_id() ) ?>
<?php bp_send_private_message_button( bp_displayed_user_id() ) ?>
<?php bp_send_public_message_button( bp_displayed_user_id() ) ?>
Expand Down

0 comments on commit 3d5a5f4

Please sign in to comment.