-
Notifications
You must be signed in to change notification settings - Fork 7
/
page-topics-no-replies.php
66 lines (47 loc) · 1.72 KB
/
page-topics-no-replies.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
* Template Name: bbPress - Topics (No Replies)
*
* @package bbPress
* @subpackage Theme
*/
get_header();
if ( of_get_option( 'forum_sidebar', '0' ) == "1" ) {
tech_show_sidebar( "l" );
}
?>
<div id="content" class="<?php if ( of_get_option( 'forum_sidebar', '0' ) == "1" ) {
echo "narrow";
} else {
echo "wide";
} ?>column">
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="topics-front" class="bbp-topics-front">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php the_content(); ?>
<div id="bbpress-forums">
<?php bbp_breadcrumb(); ?>
<?php bbp_set_query_name( 'bbp_no_replies' ); ?>
<?php if ( bbp_has_topics( array( 'meta_key' => '_bbp_reply_count', 'meta_value' => '1', 'meta_compare' => '<', 'orderby' => 'date', 'show_stickies' => false ) ) ) : ?>
<?php bbp_get_template_part( 'pagination', 'topics' ); ?>
<?php bbp_get_template_part( 'loop', 'topics' ); ?>
<?php bbp_get_template_part( 'pagination', 'topics' ); ?>
<?php else : ?>
<?php bbp_get_template_part( 'feedback', 'no-topics' ); ?>
<?php endif; ?>
<?php bbp_reset_query_name(); ?>
</div>
</div>
</div><!-- #topics-front -->
<?php endwhile; ?>
<?php do_action( 'bbp_after_main_content' ); ?>
</div><!-- #content -->
<?php
if ( of_get_option( 'forum_sidebar', '0' ) == "1" ) {
tech_show_sidebar( "r" );
}
get_footer();
?>