[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/src/templates/default/bbpress/ -> user-subscriptions.php (source)

   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', 'bbpress' ); ?></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', 'bbpress' ); ?></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' );


Generated: Tue Jul 7 01:01:20 2020 Cross-referenced by PHPXref 0.7.1