[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

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

   1  <?php
   2  
   3  /**
   4   * Search Loop - Single Topic
   5   *
   6   * @package bbPress
   7   * @subpackage Theme
   8   */
   9  
  10  // Exit if accessed directly
  11  defined( 'ABSPATH' ) || exit;
  12  
  13  ?>
  14  
  15  <div class="bbp-topic-header">
  16      <div class="bbp-meta">
  17          <span class="bbp-topic-post-date"><?php bbp_topic_post_date( bbp_get_topic_id() ); ?></span>
  18          <a href="<?php bbp_topic_permalink(); ?>" class="bbp-topic-permalink">#<?php bbp_topic_id(); ?></a>
  19      </div><!-- .bbp-meta -->
  20  
  21      <div class="bbp-topic-title">
  22  
  23          <?php do_action( 'bbp_theme_before_topic_title' ); ?>
  24  
  25          <h3><?php esc_html_e( 'Topic:', 'bbpress' ); ?>
  26          <a href="<?php bbp_topic_permalink(); ?>"><?php bbp_topic_title(); ?></a></h3>
  27  
  28          <div class="bbp-topic-title-meta">
  29  
  30              <?php if ( function_exists( 'bbp_is_forum_group_forum' ) && bbp_is_forum_group_forum( bbp_get_topic_forum_id() ) ) : ?>
  31  
  32                  <?php esc_html_e( 'in group forum ', 'bbpress' ); ?>
  33  
  34              <?php else : ?>
  35  
  36                  <?php esc_html_e( 'in forum ', 'bbpress' ); ?>
  37  
  38              <?php endif; ?>
  39  
  40              <a href="<?php bbp_forum_permalink( bbp_get_topic_forum_id() ); ?>"><?php bbp_forum_title( bbp_get_topic_forum_id() ); ?></a>
  41  
  42          </div><!-- .bbp-topic-title-meta -->
  43  
  44          <?php do_action( 'bbp_theme_after_topic_title' ); ?>
  45  
  46      </div><!-- .bbp-topic-title -->
  47  
  48  </div><!-- .bbp-topic-header -->
  49  
  50  <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>>
  51      <div class="bbp-topic-author">
  52  
  53          <?php do_action( 'bbp_theme_before_topic_author_details' ); ?>
  54  
  55          <?php bbp_topic_author_link( array( 'show_role' => true ) ); ?>
  56  
  57          <?php if ( bbp_is_user_keymaster() ) : ?>
  58  
  59              <?php do_action( 'bbp_theme_before_topic_author_admin_details' ); ?>
  60  
  61              <div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_topic_id() ); ?></div>
  62  
  63              <?php do_action( 'bbp_theme_after_topic_author_admin_details' ); ?>
  64  
  65          <?php endif; ?>
  66  
  67          <?php do_action( 'bbp_theme_after_topic_author_details' ); ?>
  68  
  69      </div><!-- .bbp-topic-author -->
  70  
  71      <div class="bbp-topic-content">
  72  
  73          <?php do_action( 'bbp_theme_before_topic_content' ); ?>
  74  
  75          <?php bbp_topic_content(); ?>
  76  
  77          <?php do_action( 'bbp_theme_after_topic_content' ); ?>
  78  
  79      </div><!-- .bbp-topic-content -->
  80  </div><!-- #post-<?php bbp_topic_id(); ?> -->


Generated: Sat Apr 20 01:00:52 2024 Cross-referenced by PHPXref 0.7.1