equal
deleted
inserted
replaced
|
1 <?php |
|
2 |
|
3 /** |
|
4 * User Subscriptions |
|
5 * |
|
6 * @package bbPress |
|
7 * @subpackage Theme |
|
8 */ |
|
9 |
|
10 ?> |
|
11 |
|
12 <?php do_action( 'bbp_template_before_user_subscriptions' ); ?> |
|
13 |
|
14 <?php if ( bbp_is_subscriptions_active() ) : ?> |
|
15 |
|
16 <?php if ( bbp_is_user_home() || current_user_can( 'edit_users' ) ) : ?> |
|
17 |
|
18 <div id="bbp-user-subscriptions" class="bbp-user-subscriptions"> |
|
19 <h2 class="entry-title"><?php _e( 'Subscribed Forum Topics', 'bbpress' ); ?></h2> |
|
20 <div class="bbp-user-section"> |
|
21 |
|
22 <?php if ( bbp_get_user_subscriptions() ) : ?> |
|
23 |
|
24 <?php bbp_get_template_part( 'pagination', 'topics' ); ?> |
|
25 |
|
26 <?php bbp_get_template_part( 'loop', 'topics' ); ?> |
|
27 |
|
28 <?php bbp_get_template_part( 'pagination', 'topics' ); ?> |
|
29 |
|
30 <?php else : ?> |
|
31 |
|
32 <p><?php bbp_is_user_home() ? _e( 'You are not currently subscribed to any topics.', 'bbpress' ) : _e( 'This user is not currently subscribed to any topics.', 'bbpress' ); ?></p> |
|
33 |
|
34 <?php endif; ?> |
|
35 |
|
36 </div> |
|
37 </div><!-- #bbp-user-subscriptions --> |
|
38 |
|
39 <?php endif; ?> |
|
40 |
|
41 <?php endif; ?> |
|
42 |
|
43 <?php do_action( 'bbp_template_after_user_subscriptions' ); ?> |