forked from cuny-academic-commons/cbox-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-topic.php
43 lines (27 loc) · 993 Bytes
/
single-topic.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Single Topic
*
* @package bbPress
* @subpackage Theme
*/
?>
<?php get_header(); ?>
<div id="container">
<div id="content-full" role="main">
<?php do_action( 'bbp_template_notices' ); ?>
<?php if ( bbp_user_can_view_forum( array( 'forum_id' => bbp_get_topic_forum_id() ) ) ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="bbp-topic-wrapper-<?php bbp_topic_id(); ?>" class="bbp-topic-wrapper">
<h1 class="entry-title"><?php bbp_topic_title(); ?></h1>
<div class="entry-content">
<?php bbp_get_template_part( 'bbpress/content', 'single-topic' ); ?>
</div>
</div><!-- #bbp-topic-wrapper-<?php bbp_topic_id(); ?> -->
<?php endwhile; ?>
<?php elseif ( bbp_is_forum_private( bbp_get_topic_forum_id(), false ) ) : ?>
<?php bbp_get_template_part( 'bbpress/feedback', 'no-access' ); ?>
<?php endif; ?>
</div><!-- #content -->
</div><!-- #container -->
<?php get_footer(); ?>