Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/12/2009 12:33:18 AM (16 years ago)
Author:
apeatling
Message:

Added forum directory disable check in header to disable nav item

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-sn-parent/header.php

    r1859 r1863  
    8787                <?php endif; ?>
    8888
    89                 <?php if ( function_exists( 'bp_forums_setup' ) ) : ?>
     89                <?php if ( function_exists( 'bp_forums_setup' ) && !(int) get_site_option( 'bp-disable-forum-directory' ) ) : ?>
    9090                    <li<?php if ( bp_is_page( BP_FORUMS_SLUG ) ) : ?> class="selected"<?php endif; ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_FORUMS_SLUG ?>" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?></a></li>
    9191                <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.