[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/src/templates/default/extras/ -> single-topic.php (source)

   1  <?php
   2  
   3  /**
   4   * Single Topic
   5   *
   6   * @package bbPress
   7   * @subpackage Theme
   8   */
   9  
  10  get_header(); ?>
  11  
  12      <?php do_action( 'bbp_before_main_content' ); ?>
  13  
  14      <?php do_action( 'bbp_template_notices' ); ?>
  15  
  16      <?php if ( bbp_user_can_view_forum( array( 'forum_id' => bbp_get_topic_forum_id() ) ) ) : ?>
  17  
  18          <?php while ( have_posts() ) : the_post(); ?>
  19  
  20              <div id="bbp-topic-wrapper-<?php bbp_topic_id(); ?>" class="bbp-topic-wrapper">
  21                  <h1 class="entry-title"><?php bbp_topic_title(); ?></h1>
  22                  <div class="entry-content">
  23  
  24                      <?php bbp_get_template_part( 'content', 'single-topic' ); ?>
  25  
  26                  </div>
  27              </div><!-- #bbp-topic-wrapper-<?php bbp_topic_id(); ?> -->
  28  
  29          <?php endwhile; ?>
  30  
  31      <?php elseif ( bbp_is_forum_private( bbp_get_topic_forum_id(), false ) ) : ?>
  32  
  33          <?php bbp_get_template_part( 'feedback', 'no-access' ); ?>
  34  
  35      <?php endif; ?>
  36  
  37      <?php do_action( 'bbp_after_main_content' ); ?>
  38  
  39  <?php get_sidebar(); ?>
  40  <?php get_footer();


Generated: Mon Jan 27 01:01:30 2020 Cross-referenced by PHPXref 0.7.1