Skip to:
Content

bbPress.org

Changeset 2913


Ignore:
Timestamp:
02/18/2011 10:16:02 AM (10 years ago)
Author:
johnjamesjacoby
Message:

Do not load forums-loop template part if there are no subforums to show.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-themes/bbp-twentyten/single-bbp_forum.php

    r2878 r2913  
    2929                                <?php bbp_single_forum_description(); ?>
    3030
    31                                 <?php get_template_part( 'loop', 'bbp_forums' ); ?>
     31                                <?php if ( bbp_get_forum_subforum_count() ) : ?>
     32
     33                                    <?php get_template_part( 'loop', 'bbp_forums' ); ?>
     34
     35                                <?php endif; ?>
    3236
    3337                                <?php if ( !bbp_is_forum_category() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.