PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.5.0
Forumax – AI Powered Advanced Community Forum Plugin v2.5.0
2.5.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 All 30 releases
← All changes | templates/user-subscriptions.php +60 -62 2.0.0 → 2.5.0 View file →
@@ -1,62 +1,60 @@
1 -<?php
2 -
3 -/**
4 - * User Subscriptions
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_subscriptions' ); ?>
14 -
15 -<?php if ( bbp_is_subscriptions_active() ) : ?>
16 -
17 - <?php if ( bbp_is_user_home() || current_user_can( 'edit_user', bbp_get_displayed_user_id() ) ) : ?>
18 -
19 - <div id="bbp-user-subscriptions" class="bbp-user-subscriptions">
20 -
21 - <?php bbp_get_template_part( 'form', 'topic-search' ); ?>
22 -
23 - <h2 class="entry-title"><?php esc_html_e( 'Subscribed Forums', 'forumax' ); ?></h2>
24 - <div class="bbp-user-section">
25 -
26 - <?php if ( bbp_get_user_forum_subscriptions() ) : ?>
27 -
28 - <?php bbp_get_template_part( 'loop', 'forums' ); ?>
29 -
30 - <?php else : ?>
31 -
32 - <?php bbp_get_template_part( 'feedback', 'no-forums' ); ?>
33 -
34 - <?php endif; ?>
35 -
36 - </div>
37 -
38 - <h2 class="entry-title"><?php esc_html_e( 'Subscribed Topics', 'forumax' ); ?></h2>
39 - <div class="bbp-user-section">
40 -
41 - <?php if ( bbp_get_user_topic_subscriptions() ) : ?>
42 -
43 - <?php bbp_get_template_part( 'pagination', 'topics' ); ?>
44 -
45 - <?php bbp_get_template_part( 'loop', 'topics' ); ?>
46 -
47 - <?php bbp_get_template_part( 'pagination', 'topics' ); ?>
48 -
49 - <?php else : ?>
50 -
51 - <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?>
52 -
53 - <?php endif; ?>
54 -
55 - </div>
56 - </div><!-- #bbp-user-subscriptions -->
57 -
58 - <?php endif; ?>
59 -
60 -<?php endif; ?>
61 -
62 -<?php do_action( 'bbp_template_after_user_subscriptions' );
1 +<?php
2 +
3 +/**
4 + * User Subscriptions
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_subscriptions' ); ?>
14 +
15 +<?php if ( bbp_is_subscriptions_active() ) : ?>
16 +
17 + <?php if ( bbp_is_user_home() || current_user_can( 'edit_user', bbp_get_displayed_user_id() ) ) : ?>
18 +
19 + <div id="bbp-user-subscriptions" class="bbp-user-subscriptions">
20 +
21 + <?php bbp_get_template_part( 'form', 'topic-search' ); ?>
22 +
23 + <h2 class="entry-title"><?php esc_html_e( 'Subscribed Forums', 'forumax' ); ?></h2>
24 + <div class="bbp-user-section">
25 +
26 + <?php if ( bbp_get_user_forum_subscriptions() ) : ?>
27 +
28 + <?php bbp_get_template_part( 'loop', 'forums' ); ?>
29 +
30 + <?php else : ?>
31 +
32 + <?php bbp_get_template_part( 'feedback', 'no-forums' ); ?>
33 +
34 + <?php endif; ?>
35 +
36 + </div>
37 +
38 + <h2 class="entry-title"><?php esc_html_e( 'Subscribed Topics', 'forumax' ); ?></h2>
39 + <div class="bbp-user-section">
40 +
41 + <?php if ( bbp_get_user_topic_subscriptions() ) : ?>
42 +
43 + <?php bbp_get_template_part( 'loop', 'topics' ); ?>
44 +
45 + <?php bbp_get_template_part( 'pagination', 'topics' ); ?>
46 +
47 + <?php else : ?>
48 +
49 + <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?>
50 +
51 + <?php endif; ?>
52 +
53 + </div>
54 + </div><!-- #bbp-user-subscriptions -->
55 +
56 + <?php endif; ?>
57 +
58 +<?php endif; ?>
59 +
60 +<?php do_action( 'bbp_template_after_user_subscriptions' );