PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.4.1
Forumax – AI Powered Advanced Community Forum Plugin v2.4.1
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 2.1.0 All 29 releases
bbp-core / templates / user-subscriptions.php

user-subscriptions.php in Forumax – AI Powered Advanced Community Forum Plugin 2.4.1, at templates/user-subscriptions.php

61 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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' );
61