forked from syamilmj/Supportte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
forums.php
51 lines (29 loc) · 960 Bytes
/
forums.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
<?php
/** Template Name: Forums */
get_header(); ?>
<div id="container">
<div id="content" role="main">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php
$exclude = array('page', '');
// echo get_post_type();
if( !in_array(get_post_type(), $exclude) ) { ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php } ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
$exclude = array('forum', 'topic', 'reply', '');
if( !in_array(get_post_type(), $exclude) ) {
bbp_get_template_part('meta', 'forum-intro');
}
?>
<div class="entry-content">
<?php the_content(); ?>
</div><!-- .entry-content -->
</div><!-- #post-## -->
<?php comments_template( '', true ); ?>
<?php endwhile; // end of the loop. ?>
</div><!-- #content -->
</div><!-- #container -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>