Changeset 5689 for trunk/src/templates/default/bbpress/user-details.php
- Timestamp:
- 04/19/2015 04:45:02 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/templates/default/bbpress/user-details.php
r5688 r5689 8 8 */ 9 9 10 ?>10 do_action( 'bbp_template_before_user_details' ); ?> 11 11 12 <?php do_action( 'bbp_template_before_user_details' ); ?> 12 <div id="bbp-single-user-details"> 13 <div id="bbp-user-avatar"> 14 <span class='vcard'> 15 <a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title="<?php bbp_displayed_user_field( 'display_name' ); ?>" rel="me"> 16 <?php echo get_avatar( bbp_get_displayed_user_field( 'user_email', 'raw' ), apply_filters( 'bbp_single_user_details_avatar_size', 150 ) ); ?> 17 </a> 18 </span> 19 </div><!-- #author-avatar --> 13 20 14 <div id="bbp-single-user-details"> 15 <div id="bbp-user-avatar"> 21 <div id="bbp-user-navigation"> 22 <ul> 23 <li class="<?php if ( bbp_is_single_user_profile() ) :?>current<?php endif; ?>"> 24 <span class="vcard bbp-user-profile-link"> 25 <a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title="<?php printf( esc_attr__( "%s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>" rel="me"><?php esc_html_e( 'Profile', 'bbpress' ); ?></a> 26 </span> 27 </li> 16 28 17 < span class='vcard'>18 < a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title="<?php bbp_displayed_user_field( 'display_name' ); ?>" rel="me">19 < ?php echo get_avatar( bbp_get_displayed_user_field( 'user_email', 'raw' ), apply_filters( 'bbp_single_user_details_avatar_size', 150 ) ); ?>20 </ a>21 </ span>29 <li class="<?php if ( bbp_is_single_user_topics() ) :?>current<?php endif; ?>"> 30 <span class='bbp-user-topics-created-link'> 31 <a href="<?php bbp_user_topics_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Topics Started", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Topics Started', 'bbpress' ); ?></a> 32 </span> 33 </li> 22 34 23 </div><!-- #author-avatar --> 35 <li class="<?php if ( bbp_is_single_user_replies() ) :?>current<?php endif; ?>"> 36 <span class='bbp-user-replies-created-link'> 37 <a href="<?php bbp_user_replies_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Replies Created", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Replies Created', 'bbpress' ); ?></a> 38 </span> 39 </li> 24 40 25 <div id="bbp-user-navigation"> 26 <ul> 27 <li class="<?php if ( bbp_is_single_user_profile() ) :?>current<?php endif; ?>"> 28 <span class="vcard bbp-user-profile-link"> 29 <a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title="<?php printf( esc_attr__( "%s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>" rel="me"><?php esc_html_e( 'Profile', 'bbpress' ); ?></a> 41 <?php if ( bbp_is_favorites_active() ) : ?> 42 <li class="<?php if ( bbp_is_favorites() ) :?>current<?php endif; ?>"> 43 <span class="bbp-user-favorites-link"> 44 <a href="<?php bbp_favorites_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Favorites", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Favorites', 'bbpress' ); ?></a> 30 45 </span> 31 46 </li> 47 <?php endif; ?> 32 48 33 <li class="<?php if ( bbp_is_single_user_topics() ) :?>current<?php endif; ?>"> 34 <span class='bbp-user-topics-created-link'> 35 <a href="<?php bbp_user_topics_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Topics Started", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Topics Started', 'bbpress' ); ?></a> 36 </span> 37 </li> 49 <?php if ( bbp_is_user_home() || current_user_can( 'edit_users' ) ) : ?> 38 50 39 <li class="<?php if ( bbp_is_single_user_replies() ) :?>current<?php endif; ?>"> 40 <span class='bbp-user-replies-created-link'> 41 <a href="<?php bbp_user_replies_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Replies Created", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Replies Created', 'bbpress' ); ?></a> 42 </span> 43 </li> 44 45 <?php if ( bbp_is_favorites_active() ) : ?> 46 <li class="<?php if ( bbp_is_favorites() ) :?>current<?php endif; ?>"> 47 <span class="bbp-user-favorites-link"> 48 <a href="<?php bbp_favorites_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Favorites", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Favorites', 'bbpress' ); ?></a> 51 <?php if ( bbp_is_subscriptions_active() ) : ?> 52 <li class="<?php if ( bbp_is_subscriptions() ) :?>current<?php endif; ?>"> 53 <span class="bbp-user-subscriptions-link"> 54 <a href="<?php bbp_subscriptions_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Subscriptions", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Subscriptions', 'bbpress' ); ?></a> 49 55 </span> 50 56 </li> 51 57 <?php endif; ?> 52 58 53 <?php if ( bbp_is_user_home() || current_user_can( 'edit_users' ) ) : ?> 59 <li class="<?php if ( bbp_is_single_user_edit() ) :?>current<?php endif; ?>"> 60 <span class="bbp-user-edit-link"> 61 <a href="<?php bbp_user_profile_edit_url(); ?>" title="<?php printf( esc_attr__( "Edit %s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Edit', 'bbpress' ); ?></a> 62 </span> 63 </li> 54 64 55 <?php if ( bbp_is_subscriptions_active() ) : ?> 56 <li class="<?php if ( bbp_is_subscriptions() ) :?>current<?php endif; ?>"> 57 <span class="bbp-user-subscriptions-link"> 58 <a href="<?php bbp_subscriptions_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Subscriptions", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Subscriptions', 'bbpress' ); ?></a> 59 </span> 60 </li> 61 <?php endif; ?> 65 <?php endif; ?> 62 66 63 <li class="<?php if ( bbp_is_single_user_edit() ) :?>current<?php endif; ?>"> 64 <span class="bbp-user-edit-link"> 65 <a href="<?php bbp_user_profile_edit_url(); ?>" title="<?php printf( esc_attr__( "Edit %s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Edit', 'bbpress' ); ?></a> 66 </span> 67 </li> 67 </ul> 68 </div><!-- #bbp-user-navigation --> 69 </div><!-- #bbp-single-user-details --> 68 70 69 <?php endif; ?> 70 71 </ul> 72 </div><!-- #bbp-user-navigation --> 73 </div><!-- #bbp-single-user-details --> 74 75 <?php do_action( 'bbp_template_after_user_details' ); ?> 71 <?php do_action( 'bbp_template_after_user_details' );
Note: See TracChangeset
for help on using the changeset viewer.