-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-topic.php
35 lines (30 loc) · 995 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
<?php
/**
* Apocrypha Theme Single Topic Template
* Andrew Clayton
* Version 2.0
* 7-22-2014
*/
?>
<?php get_header(); ?>
<div id="content" role="main">
<?php apoc_breadcrumbs(); ?>
<div id="forums">
<?php if ( bbp_user_can_view_forum( array( 'forum_id' => bbp_get_topic_forum_id() ) ) ) : ?>
<header class="post-header <?php apoc_topic_header_class(); ?>">
<h1 class="post-title"><?php bbp_topic_title(); ?></h1>
<?php apoc_topic_byline(); ?>
<div id="subscription-controls" class="header-actions">
<?php bbp_user_subscribe_link(); ?>
<?php bbp_user_favorites_link(); ?>
</div>
</header>
<?php while ( have_posts() ) : the_post(); ?>
<?php bbp_get_template_part( 'content', 'single-topic' ); ?>
<?php endwhile; ?>
<?php elseif ( bbp_is_forum_private( bbp_get_topic_forum_id(), false ) ) : ?>
<?php bbp_get_template_part( 'feedback', 'no-access' ); ?>
<?php endif; ?>
</div><!-- #forums -->
</div><!-- #content -->
<?php get_footer(); ?>