[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/src/templates/default/extras/ -> page-topics-no-replies.php (source)

   1  <?php
   2  
   3  /**
   4   * Template Name: bbPress - Topics (No Replies)
   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 while ( have_posts() ) : the_post(); ?>
  17  
  18          <div id="topics-front" class="bbp-topics-front">
  19              <h1 class="entry-title"><?php the_title(); ?></h1>
  20              <div class="entry-content">
  21  
  22                  <?php the_content(); ?>
  23  
  24                  <div id="bbpress-forums" class="bbpress-wrapper">
  25  
  26                      <?php bbp_breadcrumb(); ?>
  27  
  28                      <?php bbp_set_query_name( 'bbp_no_replies' ); ?>
  29  
  30                      <?php if ( bbp_has_topics( array( 'meta_key' => '_bbp_reply_count', 'meta_value' => '1', 'meta_type' => 'NUMERIC', 'meta_compare' => '<', 'orderby' => 'date', 'show_stickies' => false ) ) ) : ?>
  31  
  32                          <?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
  33  
  34                          <?php bbp_get_template_part( 'loop',       'topics'    ); ?>
  35  
  36                          <?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
  37  
  38                      <?php else : ?>
  39  
  40                          <?php bbp_get_template_part( 'feedback',   'no-topics' ); ?>
  41  
  42                      <?php endif; ?>
  43  
  44                      <?php bbp_reset_query_name(); ?>
  45  
  46                  </div>
  47              </div>
  48          </div><!-- #topics-front -->
  49  
  50      <?php endwhile; ?>
  51  
  52      <?php do_action( 'bbp_after_main_content' ); ?>
  53  
  54  <?php get_sidebar(); ?>
  55  <?php get_footer();


Generated: Fri Dec 6 01:00:52 2024 Cross-referenced by PHPXref 0.7.1