[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/src/templates/default/bbpress/ -> content-single-topic-lead.php (source)

   1  <?php
   2  
   3  /**
   4   * Single Topic Lead Content Part
   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_lead_topic' ); ?>
  14  
  15  <ul id="bbp-topic-<?php bbp_topic_id(); ?>-lead" class="bbp-lead-topic">
  16  
  17      <li class="bbp-header">
  18  
  19          <div class="bbp-topic-author"><?php esc_html_e( 'Creator',  'bbpress' ); ?></div><!-- .bbp-topic-author -->
  20  
  21          <div class="bbp-topic-content">
  22  
  23              <?php esc_html_e( 'Topic', 'bbpress' ); ?>
  24  
  25          </div><!-- .bbp-topic-content -->
  26  
  27      </li><!-- .bbp-header -->
  28  
  29      <li class="bbp-body">
  30  
  31          <div class="bbp-topic-header">
  32  
  33              <div class="bbp-meta">
  34  
  35                  <span class="bbp-topic-post-date"><?php bbp_topic_post_date(); ?></span>
  36  
  37                  <a href="<?php bbp_topic_permalink(); ?>" class="bbp-topic-permalink">#<?php bbp_topic_id(); ?></a>
  38  
  39                  <?php do_action( 'bbp_theme_before_topic_admin_links' ); ?>
  40  
  41                  <?php bbp_topic_admin_links(); ?>
  42  
  43                  <?php do_action( 'bbp_theme_after_topic_admin_links' ); ?>
  44  
  45              </div><!-- .bbp-meta -->
  46  
  47          </div><!-- .bbp-topic-header -->
  48  
  49          <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>>
  50  
  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 ( current_user_can( 'moderate', bbp_get_reply_id() ) ) : ?>
  58  
  59                      <?php do_action( 'bbp_theme_before_topic_author_admin_details' ); ?>
  60  
  61                      <div class="bbp-topic-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  
  81          </div><!-- #post-<?php bbp_topic_id(); ?> -->
  82  
  83      </li><!-- .bbp-body -->
  84  
  85      <li class="bbp-footer">
  86  
  87          <div class="bbp-topic-author"><?php esc_html_e( 'Creator',  'bbpress' ); ?></div>
  88  
  89          <div class="bbp-topic-content">
  90  
  91              <?php esc_html_e( 'Topic', 'bbpress' ); ?>
  92  
  93          </div><!-- .bbp-topic-content -->
  94  
  95      </li>
  96  
  97  </ul><!-- #bbp-topic-<?php bbp_topic_id(); ?>-lead -->
  98  
  99  <?php do_action( 'bbp_template_after_lead_topic' );


Generated: Wed Oct 23 01:01:36 2019 Cross-referenced by PHPXref 0.7.1