[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

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

   1  <?php
   2  
   3  /**
   4   * Topics 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_topics_loop' ); ?>
  14  
  15  <ul id="bbp-forum-<?php bbp_forum_id(); ?>" class="bbp-topics">
  16      <li class="bbp-header">
  17          <ul class="forum-titles">
  18              <li class="bbp-topic-title"><?php esc_html_e( 'Topic', 'bbpress' ); ?></li>
  19              <li class="bbp-topic-voice-count"><?php esc_html_e( 'Voices', 'bbpress' ); ?></li>
  20              <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic()
  21                  ? esc_html_e( 'Replies', 'bbpress' )
  22                  : esc_html_e( 'Posts',   'bbpress' );
  23              ?></li>
  24              <li class="bbp-topic-freshness"><?php esc_html_e( 'Last Post', 'bbpress' ); ?></li>
  25          </ul>
  26      </li>
  27  
  28      <li class="bbp-body">
  29  
  30          <?php while ( bbp_topics() ) : bbp_the_topic(); ?>
  31  
  32              <?php bbp_get_template_part( 'loop', 'single-topic' ); ?>
  33  
  34          <?php endwhile; ?>
  35  
  36      </li>
  37  
  38      <li class="bbp-footer">
  39          <div class="tr">
  40              <p>
  41                  <span class="td colspan<?php echo ( bbp_is_user_home() && ( bbp_is_favorites() || bbp_is_subscriptions() ) ) ? '5' : '4'; ?>">&nbsp;</span>
  42              </p>
  43          </div><!-- .tr -->
  44      </li>
  45  </ul><!-- #bbp-forum-<?php bbp_forum_id(); ?> -->
  46  
  47  <?php do_action( 'bbp_template_after_topics_loop' );


Generated: Sat Jul 20 01:01:28 2019 Cross-referenced by PHPXref 0.7.1