[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

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

   1  <?php
   2  
   3  /**
   4   * Forums Loop - Single Forum
   5   *
   6   * @package bbPress
   7   * @subpackage Theme
   8   */
   9  
  10  // Exit if accessed directly
  11  defined( 'ABSPATH' ) || exit;
  12  
  13  ?>
  14  
  15  <ul id="bbp-forum-<?php bbp_forum_id(); ?>" <?php bbp_forum_class(); ?>>
  16      <li class="bbp-forum-info">
  17  
  18          <?php if ( bbp_is_user_home() && bbp_is_subscriptions() ) : ?>
  19  
  20              <span class="bbp-row-actions">
  21  
  22                  <?php do_action( 'bbp_theme_before_forum_subscription_action' ); ?>
  23  
  24                  <?php bbp_forum_subscription_link( array( 'before' => '', 'subscribe' => '+', 'unsubscribe' => '&times;' ) ); ?>
  25  
  26                  <?php do_action( 'bbp_theme_after_forum_subscription_action' ); ?>
  27  
  28              </span>
  29  
  30          <?php endif; ?>
  31  
  32          <?php do_action( 'bbp_theme_before_forum_title' ); ?>
  33  
  34          <a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a>
  35  
  36          <?php do_action( 'bbp_theme_after_forum_title' ); ?>
  37  
  38          <?php do_action( 'bbp_theme_before_forum_description' ); ?>
  39  
  40          <div class="bbp-forum-content"><?php bbp_forum_content(); ?></div>
  41  
  42          <?php do_action( 'bbp_theme_after_forum_description' ); ?>
  43  
  44          <?php do_action( 'bbp_theme_before_forum_sub_forums' ); ?>
  45  
  46          <?php bbp_list_forums(); ?>
  47  
  48          <?php do_action( 'bbp_theme_after_forum_sub_forums' ); ?>
  49  
  50          <?php bbp_forum_row_actions(); ?>
  51  
  52      </li>
  53  
  54      <li class="bbp-forum-topic-count"><?php bbp_forum_topic_count(); ?></li>
  55  
  56      <li class="bbp-forum-reply-count"><?php bbp_show_lead_topic() ? bbp_forum_reply_count() : bbp_forum_post_count(); ?></li>
  57  
  58      <li class="bbp-forum-freshness">
  59  
  60          <?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?>
  61  
  62          <?php bbp_forum_freshness_link(); ?>
  63  
  64          <?php do_action( 'bbp_theme_after_forum_freshness_link' ); ?>
  65  
  66          <p class="bbp-topic-meta">
  67  
  68              <?php do_action( 'bbp_theme_before_topic_author' ); ?>
  69  
  70              <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 14 ) ); ?></span>
  71  
  72              <?php do_action( 'bbp_theme_after_topic_author' ); ?>
  73  
  74          </p>
  75      </li>
  76  </ul><!-- #bbp-forum-<?php bbp_forum_id(); ?> -->


Generated: Thu Sep 19 01:01:28 2019 Cross-referenced by PHPXref 0.7.1