web/wp-content/plugins/bbpress/templates/default/extras/single-forum.php
changeset 196 5e8dcbe22c24
equal deleted inserted replaced
195:c7c0fbc09788 196:5e8dcbe22c24
       
     1 <?php
       
     2 
       
     3 /**
       
     4  * Single Forum
       
     5  *
       
     6  * @package bbPress
       
     7  * @subpackage Theme
       
     8  */
       
     9 
       
    10 get_header(); ?>
       
    11 
       
    12 	<?php do_action( 'bbp_before_main_content' ); ?>
       
    13 
       
    14 	<?php do_action( 'bbp_template_notices' ); ?>
       
    15 
       
    16 	<?php while ( have_posts() ) : the_post(); ?>
       
    17 
       
    18 		<?php if ( bbp_user_can_view_forum() ) : ?>
       
    19 
       
    20 			<div id="forum-<?php bbp_forum_id(); ?>" class="bbp-forum-content">
       
    21 				<h1 class="entry-title"><?php bbp_forum_title(); ?></h1>
       
    22 				<div class="entry-content">
       
    23 
       
    24 					<?php bbp_get_template_part( 'content', 'single-forum' ); ?>
       
    25 
       
    26 				</div>
       
    27 			</div><!-- #forum-<?php bbp_forum_id(); ?> -->
       
    28 
       
    29 		<?php else : // Forum exists, user no access ?>
       
    30 
       
    31 			<?php bbp_get_template_part( 'feedback', 'no-access' ); ?>
       
    32 
       
    33 		<?php endif; ?>
       
    34 
       
    35 	<?php endwhile; ?>
       
    36 
       
    37 	<?php do_action( 'bbp_after_main_content' ); ?>
       
    38 
       
    39 <?php get_sidebar(); ?>
       
    40 <?php get_footer(); ?>