PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.2.0
Forumax – AI Powered Advanced Community Forum Plugin v2.2.0
2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 trunk 1.0.8 1.1.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 2.0.0 2.1.0 All 29 releases
bbp-core / templates / user-details.php

user-details.php in Forumax – AI Powered Advanced Community Forum Plugin 2.2.0, at templates/user-details.php

106 lines 5.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 class="frmx-col-md-3 user-details-box">
16 <div class="bbp-single-user-details bg-<?php echo forumax_get_opt('user_bg') ?>">
17 <div id="bbp-user-avatar">
18 <span class="vcard">
19 <?php
20 // get bbpress user avatar url
21 $user = bbp_get_displayed_user_field( 'user_email', 'raw' );
22 ?>
23 <a class="url fn n" href="<?php echo get_avatar_url( $user, 500 ); ?>" title="<?php bbp_displayed_user_field( 'display_name' ); ?>" rel="me">
24 <?php echo get_avatar( $user, apply_filters( 'bbp_single_user_details_avatar_size', 250 ) ); ?>
25 </a>
26 </span>
27 </div>
28
29 <?php do_action( 'bbp_template_before_user_details_menu_items' ); ?>
30
31 <div id="bbp-user-navigation">
32 <ul>
33 <li class="<?php if ( bbp_is_single_user_profile() ) : ?>current<?php endif; ?>">
34 <span class="vcard bbp-user-profile-link">
35 <a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title="<?php printf( esc_attr__( "%s's Profile", 'forumax' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>" rel="me">
36 <?php esc_html_e( 'Profile', 'forumax' ); ?>
37 </a>
38 </span>
39 </li>
40
41 <li class="<?php if ( bbp_is_single_user_topics() ) : ?>current<?php endif; ?>">
42 <span class="bbp-user-topics-created-link">
43 <a href="<?php bbp_user_topics_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Topics Started", 'forumax' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>">
44 <?php esc_html_e( 'Topics Started', 'forumax' ); ?>
45 </a>
46 </span>
47 </li>
48
49 <li class="<?php if ( bbp_is_single_user_replies() ) : ?>current<?php endif; ?>">
50 <span class="bbp-user-replies-created-link">
51 <a href="<?php bbp_user_replies_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Replies Created", 'forumax' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>">
52 <?php esc_html_e( 'Replies Created', 'forumax' ); ?>
53 </a>
54 </span>
55 </li>
56
57 <?php if ( bbp_is_engagements_active() ) : ?>
58 <li class="<?php if ( bbp_is_single_user_engagements() ) : ?>current<?php endif; ?>">
59 <span class="bbp-user-engagements-created-link">
60 <a href="<?php bbp_user_engagements_url(); ?>" title="<?php printf( esc_attr__( "%s's Engagements", 'forumax' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>">
61 <?php esc_html_e( 'Engagements', 'forumax' ); ?>
62 </a>
63 </span>
64 </li>
65 <?php endif; ?>
66
67 <?php if ( bbp_is_favorites_active() ) : ?>
68 <li class="<?php if ( bbp_is_favorites() ) : ?>current<?php endif; ?>">
69 <span class="bbp-user-favorites-link">
70 <a href="<?php bbp_favorites_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Favorites", 'forumax' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>">
71 <?php esc_html_e( 'Favorites', 'forumax' ); ?>
72 </a>
73 </span>
74 </li>
75 <?php endif; ?>
76
77 <?php if ( bbp_is_user_home() || current_user_can( 'edit_user', bbp_get_displayed_user_id() ) ) : ?>
78
79 <?php if ( bbp_is_subscriptions_active() ) : ?>
80 <li class="<?php if ( bbp_is_subscriptions() ) : ?>current<?php endif; ?>">
81 <span class="bbp-user-subscriptions-link">
82 <a href="<?php bbp_subscriptions_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Subscriptions", 'forumax' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>">
83 <?php esc_html_e( 'Subscriptions', 'forumax' ); ?>
84 </a>
85 </span>
86 </li>
87 <?php endif; ?>
88
89 <li class="<?php if ( bbp_is_single_user_edit() ) : ?>current<?php endif; ?>">
90 <span class="bbp-user-edit-link">
91 <a href="<?php bbp_user_profile_edit_url(); ?>" title="<?php printf( esc_attr__( "Edit %s's Profile", 'forumax' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>">
92 <?php esc_html_e( 'Edit', 'forumax' ); ?>
93 </a>
94 </span>
95 </li>
96
97 <?php endif; ?>
98 </ul>
99
100 <?php do_action( 'bbp_template_after_user_details_menu_items' ); ?>
101 </div>
102 </div>
103 </div>
104
105 <?php do_action( 'bbp_template_after_user_details' );
106