1 | <?php |
---|
2 | /** |
---|
3 | * BuddyPress - Users Cover Image Header |
---|
4 | * |
---|
5 | * @package BuddyPress |
---|
6 | * @subpackage bp-legacy |
---|
7 | */ |
---|
8 | |
---|
9 | ?> |
---|
10 | |
---|
11 | <?php |
---|
12 | |
---|
13 | /** |
---|
14 | * Fires before the display of a member's header. |
---|
15 | * |
---|
16 | * @since 1.2.0 |
---|
17 | */ |
---|
18 | do_action( 'bp_before_member_header' ); ?> |
---|
19 | |
---|
20 | <div id="cover-image-container"> |
---|
21 | <a id="header-cover-image" href="<?php echo esc_url( bp_displayed_user_link() ); ?>"></a> |
---|
22 | |
---|
23 | <div id="item-header-cover-image"> |
---|
24 | <div id="item-header-avatar"> |
---|
25 | <a href="<?php echo esc_url( bp_displayed_user_link() ); ?>"> |
---|
26 | |
---|
27 | <?php bp_displayed_user_avatar( 'type=full' ); ?> |
---|
28 | |
---|
29 | </a> |
---|
30 | </div><!-- #item-header-avatar --> |
---|
31 | |
---|
32 | <div id="item-header-content"> |
---|
33 | |
---|
34 | <?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?> |
---|
35 | <h2 class="user-nicename">@<?php echo esc_html( bp_displayed_user_mentionname() ); ?></h2> |
---|
36 | <?php endif; ?> |
---|
37 | |
---|
38 | <div id="item-buttons"><?php |
---|
39 | |
---|
40 | /** |
---|
41 | * Fires in the member header actions section. |
---|
42 | * |
---|
43 | * @since 1.2.6 |
---|
44 | */ |
---|
45 | do_action( 'bp_member_header_actions' ); ?></div><!-- #item-buttons --> |
---|
46 | |
---|
47 | <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span> |
---|
48 | |
---|
49 | <?php |
---|
50 | |
---|
51 | /** |
---|
52 | * Fires before the display of the member's header meta. |
---|
53 | * |
---|
54 | * @since 1.2.0 |
---|
55 | */ |
---|
56 | do_action( 'bp_before_member_header_meta' ); ?> |
---|
57 | |
---|
58 | <div id="item-meta"> |
---|
59 | |
---|
60 | <?php if ( bp_is_active( 'activity' ) ) : ?> |
---|
61 | |
---|
62 | <div id="latest-update"> |
---|
63 | |
---|
64 | <?php bp_activity_latest_update( bp_displayed_user_id() ); ?> |
---|
65 | |
---|
66 | </div> |
---|
67 | |
---|
68 | <?php endif; ?> |
---|
69 | |
---|
70 | <?php |
---|
71 | |
---|
72 | /** |
---|
73 | * Fires after the group header actions section. |
---|
74 | * |
---|
75 | * If you'd like to show specific profile fields here use: |
---|
76 | * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field |
---|
77 | * |
---|
78 | * @since 1.2.0 |
---|
79 | */ |
---|
80 | do_action( 'bp_profile_header_meta' ); |
---|
81 | |
---|
82 | ?> |
---|
83 | |
---|
84 | </div><!-- #item-meta --> |
---|
85 | |
---|
86 | </div><!-- #item-header-content --> |
---|
87 | |
---|
88 | </div><!-- #item-header-cover-image --> |
---|
89 | </div><!-- #cover-image-container --> |
---|
90 | |
---|
91 | <?php |
---|
92 | |
---|
93 | /** |
---|
94 | * Fires after the display of a member's header. |
---|
95 | * |
---|
96 | * @since 1.2.0 |
---|
97 | */ |
---|
98 | do_action( 'bp_after_member_header' ); ?> |
---|
99 | |
---|
100 | <?php |
---|
101 | |
---|
102 | /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */ |
---|
103 | do_action( 'template_notices' ); ?> |
---|