Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/04/2011 02:07:08 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Introduce _has_directory() functions for forums, groups, members, and activity components. This replaces the need for enabling/disabling the forum directory, since if it is not set it does not exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-admin.php

    r4559 r4596  
    117117                        </td>
    118118                    </tr>
    119 
    120                     <?php if ( bp_is_active( 'forums' ) ) : ?>
    121 
    122                         <tr>
    123                             <th scope="row"><?php _e( 'Disable global forum directory?', 'buddypress' ) ?>:</th>
    124                             <td>
    125                                 <input type="radio" name="bp-admin[bp-disable-forum-directory]"<?php if ( (int)bp_get_option( 'bp-disable-forum-directory' ) ) : ?> checked="checked"<?php endif; ?> id="bp-disable-forum-directory" value="1" /> <?php _e( 'Yes', 'buddypress' ) ?> &nbsp;
    126                                 <input type="radio" name="bp-admin[bp-disable-forum-directory]"<?php if ( !(int)bp_get_option( 'bp-disable-forum-directory' ) ) : ?> checked="checked"<?php endif; ?> id="bp-disable-forum-directory" value="0" /> <?php _e( 'No', 'buddypress' ) ?>
    127                             </td>
    128                         </tr>
    129 
    130                     <?php endif; ?>
    131119
    132120                    <?php if ( bp_is_active( 'activity' ) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.