[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/src/templates/default/bbpress/ -> content-single-forum.php (source)

   1  <?php
   2  
   3  /**
   4   * Single Forum Content Part
   5   *
   6   * @package bbPress
   7   * @subpackage Theme
   8   */
   9  
  10  // Exit if accessed directly
  11  defined( 'ABSPATH' ) || exit;
  12  
  13  ?>
  14  
  15  <div id="bbpress-forums" class="bbpress-wrapper">
  16  
  17      <?php bbp_breadcrumb(); ?>
  18  
  19      <?php bbp_forum_subscription_link(); ?>
  20  
  21      <?php do_action( 'bbp_template_before_single_forum' ); ?>
  22  
  23      <?php if ( post_password_required() ) : ?>
  24  
  25          <?php bbp_get_template_part( 'form', 'protected' ); ?>
  26  
  27      <?php else : ?>
  28  
  29          <?php bbp_single_forum_description(); ?>
  30  
  31          <?php if ( bbp_has_forums() ) : ?>
  32  
  33              <?php bbp_get_template_part( 'loop', 'forums' ); ?>
  34  
  35          <?php endif; ?>
  36  
  37          <?php if ( ! bbp_is_forum_category() && bbp_has_topics() ) : ?>
  38  
  39              <?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
  40  
  41              <?php bbp_get_template_part( 'loop',       'topics'    ); ?>
  42  
  43              <?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
  44  
  45              <?php bbp_get_template_part( 'form',       'topic'     ); ?>
  46  
  47          <?php elseif ( ! bbp_is_forum_category() ) : ?>
  48  
  49              <?php bbp_get_template_part( 'feedback',   'no-topics' ); ?>
  50  
  51              <?php bbp_get_template_part( 'form',       'topic'     ); ?>
  52  
  53          <?php endif; ?>
  54  
  55      <?php endif; ?>
  56  
  57      <?php do_action( 'bbp_template_after_single_forum' ); ?>
  58  
  59  </div>


Generated: Sat Apr 27 01:00:49 2024 Cross-referenced by PHPXref 0.7.1