Skip to:
Content

BuddyPress.org

Changeset 685


Ignore:
Timestamp:
12/14/2008 09:20:27 PM (18 years ago)
Author:
apeatling
Message:

Made all avatars links to the corresponding content.

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-widgets.php

    r391 r685  
    4141                                        <li>
    4242                                                <div class="item-avatar">
    43                                                         <?php echo bp_core_get_avatar( $post->post_author, 1 ) ?>
     43                                                        <a href="<?php echo bp_post_get_permalink( $post, $post->blog_id ) ?>" title="<?php echo apply_filters( 'the_title', $post->post_title ) ?>"><?php echo bp_core_get_avatar( $post->post_author, 1 ) ?></a>
    4444                                                </div>
    4545
  • trunk/bp-blogs/directories/bp-blogs-directory-blogs.php

    r669 r685  
    9595                                <li>
    9696                                        <div class="item-avatar">
    97                                                 <img src="<?php echo 'http://www.gravatar.com/avatar/' . md5( $blog->blog_id . '.blogs@' . site_url() ) . '?d=identicon&amp;s=50'; ?>" class="avatar" alt="Blog Identicon" />
     97                                                <a href="<?php echo bp_post_get_permalink( $post, $post->blog_id ) ?>" title="<?php echo apply_filters( 'the_title', $post->post_title ) ?>"><img src="<?php echo 'http://www.gravatar.com/avatar/' . md5( $blog->blog_id . '.blogs@' . site_url() ) . '?d=identicon&amp;s=50'; ?>" class="avatar" alt="Blog Identicon" /></a>
    9898                                        </div>
    9999
    … …  
    156156                                        <li>
    157157                                                <div class="item-avatar">
    158                                                         <img src="<?php echo 'http://www.gravatar.com/avatar/' . md5( $blog->blog_id . '.blogs@' . site_url() ) . '?d=identicon&amp;s=50'; ?>" class="avatar" alt="Blog Identicon" />
     158                                                        <a href="<?php echo bp_post_get_permalink( $post, $post->blog_id ) ?>" title="<?php echo apply_filters( 'the_title', $post->post_title ) ?>"><img src="<?php echo 'http://www.gravatar.com/avatar/' . md5( $blog->blog_id . '.blogs@' . site_url() ) . '?d=identicon&amp;s=50'; ?>" class="avatar" alt="Blog Identicon" /></a>
    159159                                                </div>
    160160                                               
  • trunk/bp-core.php

    r683 r685  
    618618 * @return str The link text based on passed parameters.
    619619 */
    620 function bp_core_get_userlink( $user_id, $no_anchor = false, $just_link = false, $no_you = false, $with_s = false ) {
     620function bp_core_get_userlink( $user_id, $no_anchor = false, $just_link = false, $deprecated = false, $with_s = false ) {
    621621        global $userdata;
    622622       
  • trunk/bp-core/bp-core-templatetags.php

    r667 r685  
    391391       
    392392        if ( $bp['current_fullname'] != '' ) {
    393                 echo apply_filters( 'bp_page_title', $bp['current_fullname'] . ' &raquo; ' . ucwords($bp['current_component']) . ' &raquo; ' . $bp['bp_options_nav'][$bp['current_component']][$bp['current_action']]['name'] );
    394         } else {
    395                 echo apply_filters( 'bp_page_title', ucwords($bp['current_component']) . ' &raquo; ' . ucwords($bp['bp_options_title']) . ' &raquo; ' . ucwords($bp['current_action']) );
     393                echo apply_filters( 'bp_page_title', strip_tags( $bp['current_fullname'] . ' &raquo; ' . ucwords($bp['current_component']) . ' &raquo; ' . $bp['bp_options_nav'][$bp['current_component']][$bp['current_action']]['name'] ) );
     394        } else {
     395                echo apply_filters( 'bp_page_title', strip_tags( ucwords($bp['current_component']) . ' &raquo; ' . ucwords($bp['bp_options_title']) . ' &raquo; ' . ucwords($bp['current_action']) ) );
    396396        }
    397397}
  • trunk/bp-core/bp-core-widgets.php

    r580 r685  
    111111                                <li class="vcard">
    112112                                        <div class="item-avatar">
    113                                                 <?php echo bp_core_get_avatar( $user->user_id, 1 ) ?>
     113                                                <a href="<?php echo bp_core_get_userlink( $user->user_id, false, true ) ?>"><?php echo bp_core_get_avatar( $user->user_id, 1 ) ?></a>
    114114                                        </div>
    115115
  • trunk/bp-core/directories/bp-core-directory-members.php

    r669 r685  
    9898                                <li>
    9999                                        <div class="item-avatar">
    100                                                 <?php echo bp_core_get_avatar( $user->user_id, 1 ) ?>
     100                                                <a href="<?php echo bp_core_get_userlink( $user->user_id, false, true ) ?>"><?php echo bp_core_get_avatar( $user->user_id, 1 ) ?></a>
    101101                                        </div>
    102102
    … …  
    155155                                <li>
    156156                                        <div class="item-avatar">
    157                                                 <?php echo bp_core_get_avatar( $user->user_id, 1 ) ?>
     157                                                <a href="<?php echo bp_core_get_userlink( $user->user_id, false, true ) ?>"><?php echo bp_core_get_avatar( $user->user_id, 1 ) ?></a>
    158158                                        </div>
    159159
  • trunk/bp-groups/bp-groups-widgets.php

    r580 r685  
    4747                                <li>
    4848                                        <div class="item-avatar">
    49                                                 <img src="<?php echo $group->avatar_thumb; ?>" alt="<?php echo $group->name ?> Avatar" class="avatar" />
     49                                                <a href="<?php echo bp_group_permalink( $group ) ?>" title="<?php echo $group->name ?>"><img src="<?php echo $group->avatar_thumb; ?>" alt="<?php echo $group->name ?> Avatar" class="avatar" /></a>
    5050                                        </div>
    5151
  • trunk/bp-groups/directories/bp-groups-directory-groups.php

    r669 r685  
    9696                                <li>
    9797                                        <div class="item-avatar">
    98                                                 <img src="<?php echo $group->avatar_thumb ?>" class="avatar" alt="<?php echo $group->name ?> Avatar" />
     98                                                <a href="<?php echo bp_group_permalink( $group ) ?>" title="<?php echo $group->name ?>"><img src="<?php echo $group->avatar_thumb ?>" class="avatar" alt="<?php echo $group->name ?> Avatar" /></a>
    9999                                        </div>
    100100
    … …  
    159159                                        <li>
    160160                                                <div class="item-avatar">
    161                                                         <img src="<?php echo $group->avatar_thumb ?>" class="avatar" alt="<?php echo $group->name ?> Avatar" />
     161                                                        <a href="<?php echo bp_group_permalink( $group ) ?>" title="<?php echo $group->name ?>"><img src="<?php echo $group->avatar_thumb ?>" class="avatar" alt="<?php echo $group->name ?> Avatar" /></a>
    162162                                                </div>
    163163
Note: See TracChangeset for help on using the changeset viewer.