-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcover-image-header.php
executable file
·113 lines (84 loc) · 2.65 KB
/
cover-image-header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?php
/**
* BuddyPress - Users Cover Image Header
*
* @package BuddyPress
* @subpackage bp-legacy
* @version 3.0.0
*/
?>
<?php
/**
* Fires before the display of a member's header.
*
* @since 1.2.0
*/
do_action( 'bp_before_member_header' ); ?>
<div id="cover-image-container">
<a id="header-cover-image" href="<?php bp_displayed_user_link(); ?>"></a>
<a href="#" id="menu-profile-open" data-toggle="menu-profile-dropdown"><i class="ion-gear-b"></i></a>
<div class="dropdown-pane" id="menu-profile-dropdown" data-alignment="center" data-dropdown>
<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
<ul class="dropdown-navigation">
<?php bp_get_options_nav(); ?>
</ul>
</div>
</div>
<div id="item-header-cover-image">
<div id="item-header-avatar">
<a href="<?php bp_displayed_user_link(); ?>">
<?php bp_displayed_user_avatar( 'type=full' ); ?>
</a>
</div><!-- #item-header-avatar -->
</div><!-- #item-header-cover-image -->
</div><!-- #cover-image-container -->
<div id="item-header-content">
<?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
<h2 class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></h2>
<?php endif; ?>
<div id="item-buttons"><?php
/**
* Fires in the member header actions section.
*
* @since 1.2.6
*/
do_action( 'bp_member_header_actions' ); ?></div><!-- #item-buttons -->
<span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_user_last_activity( bp_displayed_user_id() ) ); ?>"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
<?php
/**
* Fires before the display of the member's header meta.
*
* @since 1.2.0
*/
do_action( 'bp_before_member_header_meta' ); ?>
<div id="item-meta">
<?php if ( bp_is_active( 'activity' ) ) : ?>
<div id="latest-update">
<?php bp_activity_latest_update( bp_displayed_user_id() ); ?>
</div>
<?php endif; ?>
<?php
/**
* Fires after the group header actions section.
*
* If you'd like to show specific profile fields here use:
* bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field
*
* @since 1.2.0
*/
do_action( 'bp_profile_header_meta' );
?>
</div><!-- #item-meta -->
</div><!-- #item-header-content -->
<?php
/**
* Fires after the display of a member's header.
*
* @since 1.2.0
*/
do_action( 'bp_after_member_header' ); ?>
<div id="template-notices" role="alert" aria-atomic="true">
<?php
/** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
do_action( 'template_notices' ); ?>
</div>