[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/src/templates/default/bbpress/ -> user-details.php (source)

   1  <?php
   2  
   3  /**
   4   * User Details
   5   *
   6   * @package bbPress
   7   * @subpackage Theme
   8   */
   9  
  10  // Exit if accessed directly
  11  defined( 'ABSPATH' ) || exit;
  12  
  13  do_action( 'bbp_template_before_user_details' ); ?>
  14  
  15  <div id="bbp-single-user-details">
  16      <div id="bbp-user-avatar">
  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>
  22      </div>
  23  
  24      <?php do_action( 'bbp_template_before_user_details_menu_items' ); ?>
  25  
  26      <div id="bbp-user-navigation">
  27          <ul>
  28              <li class="<?php if ( bbp_is_single_user_profile() ) : ?>current<?php endif; ?>">
  29                  <span class="vcard bbp-user-profile-link">
  30                      <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>
  31                  </span>
  32              </li>
  33  
  34              <li class="<?php if ( bbp_is_single_user_topics() ) : ?>current<?php endif; ?>">
  35                  <span class='bbp-user-topics-created-link'>
  36                      <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>
  37                  </span>
  38              </li>
  39  
  40              <li class="<?php if ( bbp_is_single_user_replies() ) : ?>current<?php endif; ?>">
  41                  <span class='bbp-user-replies-created-link'>
  42                      <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>
  43                  </span>
  44              </li>
  45  
  46              <?php if ( bbp_is_engagements_active() ) : ?>
  47                  <li class="<?php if ( bbp_is_single_user_engagements() ) : ?>current<?php endif; ?>">
  48                      <span class='bbp-user-engagements-created-link'>
  49                          <a href="<?php bbp_user_engagements_url(); ?>" title="<?php printf( esc_attr__( "%s's Engagements", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Engagements', 'bbpress' ); ?></a>
  50                      </span>
  51                  </li>
  52              <?php endif; ?>
  53  
  54              <?php if ( bbp_is_favorites_active() ) : ?>
  55                  <li class="<?php if ( bbp_is_favorites() ) : ?>current<?php endif; ?>">
  56                      <span class="bbp-user-favorites-link">
  57                          <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>
  58                      </span>
  59                  </li>
  60              <?php endif; ?>
  61  
  62              <?php if ( bbp_is_user_home() || current_user_can( 'edit_user', bbp_get_displayed_user_id() ) ) : ?>
  63  
  64                  <?php if ( bbp_is_subscriptions_active() ) : ?>
  65                      <li class="<?php if ( bbp_is_subscriptions() ) : ?>current<?php endif; ?>">
  66                          <span class="bbp-user-subscriptions-link">
  67                              <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>
  68                          </span>
  69                      </li>
  70                  <?php endif; ?>
  71  
  72                  <li class="<?php if ( bbp_is_single_user_edit() ) : ?>current<?php endif; ?>">
  73                      <span class="bbp-user-edit-link">
  74                          <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>
  75                      </span>
  76                  </li>
  77  
  78              <?php endif; ?>
  79  
  80          </ul>
  81  
  82          <?php do_action( 'bbp_template_after_user_details_menu_items' ); ?>
  83  
  84      </div>
  85  </div>
  86  
  87  <?php do_action( 'bbp_template_after_user_details' );


Generated: Fri Apr 26 01:01:04 2024 Cross-referenced by PHPXref 0.7.1