web/wp-content/plugins/bbpress/templates/default/bbpress/content-single-forum.php
changeset 196 5e8dcbe22c24
equal deleted inserted replaced
195:c7c0fbc09788 196:5e8dcbe22c24
       
     1 <?php
       
     2 
       
     3 /**
       
     4  * Single Topic Content Part
       
     5  *
       
     6  * @package bbPress
       
     7  * @subpackage Theme
       
     8  */
       
     9 
       
    10 ?>
       
    11 
       
    12 <div id="bbpress-forums">
       
    13 
       
    14 	<?php bbp_breadcrumb(); ?>
       
    15 
       
    16 	<?php do_action( 'bbp_template_before_single_forum' ); ?>
       
    17 
       
    18 	<?php if ( post_password_required() ) : ?>
       
    19 
       
    20 		<?php bbp_get_template_part( 'form', 'protected' ); ?>
       
    21 
       
    22 	<?php else : ?>
       
    23 
       
    24 		<?php bbp_single_forum_description(); ?>
       
    25 
       
    26 		<?php if ( bbp_get_forum_subforum_count() && bbp_has_forums() ) : ?>
       
    27 
       
    28 			<?php bbp_get_template_part( 'loop', 'forums' ); ?>
       
    29 
       
    30 		<?php endif; ?>
       
    31 
       
    32 		<?php if ( !bbp_is_forum_category() && bbp_has_topics() ) : ?>
       
    33 
       
    34 			<?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
       
    35 
       
    36 			<?php bbp_get_template_part( 'loop',       'topics'    ); ?>
       
    37 
       
    38 			<?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
       
    39 
       
    40 			<?php bbp_get_template_part( 'form',       'topic'     ); ?>
       
    41 
       
    42 		<?php elseif ( !bbp_is_forum_category() ) : ?>
       
    43 
       
    44 			<?php bbp_get_template_part( 'feedback',   'no-topics' ); ?>
       
    45 
       
    46 			<?php bbp_get_template_part( 'form',       'topic'     ); ?>
       
    47 
       
    48 		<?php endif; ?>
       
    49 
       
    50 	<?php endif; ?>
       
    51 
       
    52 	<?php do_action( 'bbp_template_after_single_forum' ); ?>
       
    53 
       
    54 </div>