[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/src/templates/default/bbpress/ -> loop-forums.php (source)

   1  <?php
   2  
   3  /**
   4   * Forums Loop
   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_forums_loop' ); ?>
  14  
  15  <ul id="forums-list-<?php bbp_forum_id(); ?>" class="bbp-forums">
  16  
  17      <li class="bbp-header">
  18  
  19          <ul class="forum-titles">
  20              <li class="bbp-forum-info"><?php esc_html_e( 'Forum', 'bbpress' ); ?></li>
  21              <li class="bbp-forum-topic-count"><?php esc_html_e( 'Topics', 'bbpress' ); ?></li>
  22              <li class="bbp-forum-reply-count"><?php bbp_show_lead_topic()
  23                  ? esc_html_e( 'Replies', 'bbpress' )
  24                  : esc_html_e( 'Posts',   'bbpress' );
  25              ?></li>
  26              <li class="bbp-forum-freshness"><?php esc_html_e( 'Last Post', 'bbpress' ); ?></li>
  27          </ul>
  28  
  29      </li><!-- .bbp-header -->
  30  
  31      <li class="bbp-body">
  32  
  33          <?php while ( bbp_forums() ) : bbp_the_forum(); ?>
  34  
  35              <?php bbp_get_template_part( 'loop', 'single-forum' ); ?>
  36  
  37          <?php endwhile; ?>
  38  
  39      </li><!-- .bbp-body -->
  40  
  41      <li class="bbp-footer">
  42  
  43          <div class="tr">
  44              <p class="td colspan4">&nbsp;</p>
  45          </div><!-- .tr -->
  46  
  47      </li><!-- .bbp-footer -->
  48  
  49  </ul><!-- .forums-directory -->
  50  
  51  <?php do_action( 'bbp_template_after_forums_loop' );


Generated: Mon Feb 24 01:01:21 2020 Cross-referenced by PHPXref 0.7.1