Created
December 10, 2012 16:10
-
-
Save BoweFrankema/4251542 to your computer and use it in GitHub Desktop.
Single Forum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Single Forum | |
* | |
* @package bbPress | |
* @subpackage Theme | |
*/ | |
get_header(); ?> | |
<div id="container"> | |
<div id="content" role="main"> | |
<?php do_action( 'bbp_template_notices' ); ?> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<?php if ( bbp_user_can_view_forum() ) : ?> | |
<div id="forum-<?php bbp_forum_id(); ?>" class="bbp-forum-content"> | |
<h1 class="entry-title"><?php bbp_forum_title(); ?></h1> | |
<div class="entry-content"> | |
<?php bbp_get_template_part( 'content', 'single-forum' ); ?> | |
</div> | |
</div><!-- #forum-<?php bbp_forum_id(); ?> --> | |
<?php else : // Forum exists, user no access ?> | |
<?php bbp_get_template_part( 'feedback', 'no-access' ); ?> | |
<?php endif; ?> | |
<?php endwhile; ?> | |
</div><!-- #content --> | |
</div><!-- #container --> | |
<?php get_sidebar(); ?> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment