Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge from master #4

Merged
merged 4 commits into from
Sep 16, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added filters and actions for whoop theme compatibility
viruthagiri committed Sep 11, 2015
commit 5e3fa378fff89f842e63bac16e407fe59fefde56
1 change: 1 addition & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ Added placeholder text to message textarea - ADDED
Compliments in activity dropdown filter is ambiguous - FIXED
Undefined property ID notice - FIXED
Changed textdomain from defined constant to a string - CHANGED
Added filters and actions for whoop theme compatibility - ADDED

v0.0.7
Compliments can be renamed to anything Ex: "Gifts" - ADDED
8 changes: 5 additions & 3 deletions includes/templates/buddypress/members/single/compliments.php
Original file line number Diff line number Diff line change
@@ -95,12 +95,14 @@ class='preview-upload'/>
<div class="comp-user-avatar">
<?php
$user = get_user_by('id', $author_id);
$name = $user->display_name;
$user_link = bp_core_get_user_domain($author_id);
$name = apply_filters('bp_compliments_item_user_name', $user->display_name, $user);
$user_link = apply_filters('bp_compliments_item_user_link', bp_core_get_user_domain($author_id), $author_id);
$avatar_size = apply_filters('bp_compliments_item_user_avatar_size', 60);
?>
<?php echo get_avatar($author_id, 60); ?>
<?php echo get_avatar($author_id, $avatar_size); ?>
<div class="comp-username">
<a href="<?php echo $user_link; ?>" class="url"><?php echo $name; ?></a>
<?php do_action('bp_compliments_after_user_name', $author_id); ?>
</div>
</div>
</div>