1 | <?php |
---|
2 | /** |
---|
3 | * BuddyPress - Members |
---|
4 | * |
---|
5 | * @package BuddyPress |
---|
6 | * @subpackage bp-legacy |
---|
7 | */ |
---|
8 | |
---|
9 | /** |
---|
10 | * Fires at the top of the members directory template file. |
---|
11 | * |
---|
12 | * @since 1.5.0 |
---|
13 | */ |
---|
14 | do_action( 'bp_before_directory_members_page' ); ?> |
---|
15 | |
---|
16 | <div id="buddypress"> |
---|
17 | |
---|
18 | <?php |
---|
19 | |
---|
20 | /** |
---|
21 | * Fires before the display of the members. |
---|
22 | * |
---|
23 | * @since 1.1.0 |
---|
24 | */ |
---|
25 | do_action( 'bp_before_directory_members' ); ?> |
---|
26 | |
---|
27 | <?php |
---|
28 | |
---|
29 | /** |
---|
30 | * Fires before the display of the members content. |
---|
31 | * |
---|
32 | * @since 1.1.0 |
---|
33 | */ |
---|
34 | do_action( 'bp_before_directory_members_content' ); ?> |
---|
35 | |
---|
36 | <div id="members-dir-search" class="dir-search" role="search"> |
---|
37 | <?php bp_directory_members_search_form(); ?> |
---|
38 | </div><!-- #members-dir-search --> |
---|
39 | |
---|
40 | <?php |
---|
41 | |
---|
42 | /** |
---|
43 | * Fires before the display of the members list tabs. |
---|
44 | * |
---|
45 | * @since 1.8.0 |
---|
46 | */ |
---|
47 | do_action( 'bp_before_directory_members_tabs' ); ?> |
---|
48 | |
---|
49 | <form action="" method="post" id="members-directory-form" class="dir-form"> |
---|
50 | |
---|
51 | <div class="item-list-tabs" role="navigation"> |
---|
52 | <ul> |
---|
53 | <li class="selected" id="members-all"><a href="<?php echo esc_url( bp_members_directory_permalink() ); ?>"><?php printf( __( 'All Members %s', 'buddypress' ), '<span>' . bp_get_total_member_count() . '</span>' ); ?></a></li> |
---|
54 | |
---|
55 | <?php if ( is_user_logged_in() && bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> |
---|
56 | <li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/'; ?>"><?php printf( __( 'My Friends %s', 'buddypress' ), '<span>' . bp_get_total_friend_count( bp_loggedin_user_id() ) . '</span>' ); ?></a></li> |
---|
57 | <?php endif; ?> |
---|
58 | |
---|
59 | <?php |
---|
60 | |
---|
61 | /** |
---|
62 | * Fires inside the members directory member types. |
---|
63 | * |
---|
64 | * @since 1.2.0 |
---|
65 | */ |
---|
66 | do_action( 'bp_members_directory_member_types' ); ?> |
---|
67 | |
---|
68 | </ul> |
---|
69 | </div><!-- .item-list-tabs --> |
---|
70 | |
---|
71 | <div class="item-list-tabs" id="subnav" role="navigation"> |
---|
72 | <ul> |
---|
73 | <?php |
---|
74 | |
---|
75 | /** |
---|
76 | * Fires inside the members directory member sub-types. |
---|
77 | * |
---|
78 | * @since 1.5.0 |
---|
79 | */ |
---|
80 | do_action( 'bp_members_directory_member_sub_types' ); ?> |
---|
81 | |
---|
82 | <li id="members-order-select" class="last filter"> |
---|
83 | <label for="members-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label> |
---|
84 | <select id="members-order-by"> |
---|
85 | <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option> |
---|
86 | <option value="newest"><?php _e( 'Newest Registered', 'buddypress' ); ?></option> |
---|
87 | |
---|
88 | <?php if ( bp_is_active( 'xprofile' ) ) : ?> |
---|
89 | <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option> |
---|
90 | <?php endif; ?> |
---|
91 | |
---|
92 | <?php |
---|
93 | |
---|
94 | /** |
---|
95 | * Fires inside the members directory member order options. |
---|
96 | * |
---|
97 | * @since 1.2.0 |
---|
98 | */ |
---|
99 | do_action( 'bp_members_directory_order_options' ); ?> |
---|
100 | </select> |
---|
101 | </li> |
---|
102 | </ul> |
---|
103 | </div> |
---|
104 | |
---|
105 | <div id="members-dir-list" class="members dir-list"> |
---|
106 | <?php bp_get_template_part( 'members/members-loop' ); ?> |
---|
107 | </div><!-- #members-dir-list --> |
---|
108 | |
---|
109 | <?php |
---|
110 | |
---|
111 | /** |
---|
112 | * Fires and displays the members content. |
---|
113 | * |
---|
114 | * @since 1.1.0 |
---|
115 | */ |
---|
116 | do_action( 'bp_directory_members_content' ); ?> |
---|
117 | |
---|
118 | <?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ); ?> |
---|
119 | |
---|
120 | <?php |
---|
121 | |
---|
122 | /** |
---|
123 | * Fires after the display of the members content. |
---|
124 | * |
---|
125 | * @since 1.1.0 |
---|
126 | */ |
---|
127 | do_action( 'bp_after_directory_members_content' ); ?> |
---|
128 | |
---|
129 | </form><!-- #members-directory-form --> |
---|
130 | |
---|
131 | <?php |
---|
132 | |
---|
133 | /** |
---|
134 | * Fires after the display of the members. |
---|
135 | * |
---|
136 | * @since 1.1.0 |
---|
137 | */ |
---|
138 | do_action( 'bp_after_directory_members' ); ?> |
---|
139 | |
---|
140 | </div><!-- #buddypress --> |
---|
141 | |
---|
142 | <?php |
---|
143 | |
---|
144 | /** |
---|
145 | * Fires at the bottom of the members directory template file. |
---|
146 | * |
---|
147 | * @since 1.5.0 |
---|
148 | */ |
---|
149 | do_action( 'bp_after_directory_members_page' ); |
---|