Changeset 2539
- Timestamp:
- 02/02/2010 05:54:12 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r2514 r2539 161 161 global $bp; 162 162 163 if ( bp_is_deactivated( 'bp-friends.php' ) )163 if ( !bp_is_active( 'friends' ) ) 164 164 return false; 165 165 … … 174 174 global $bp; 175 175 176 if ( bp_is_deactivated( 'bp-groups.php' ) )176 if ( !bp_is_active( 'groups' ) ) 177 177 return false; 178 178 -
trunk/bp-core/bp-core-templatetags.php
r2533 r2539 1402 1402 /* Template is_() functions to determine the current page */ 1403 1403 1404 function bp_is_ deactivated( $plugin_file) {1404 function bp_is_active( $component ) { 1405 1405 global $bp_deactivated; 1406 1406 1407 if ( isset( $bp_deactivated[$plugin_file] ) )1407 if ( !isset( $bp_deactivated[ 'bp-' . $component . '.php' ] ) ) 1408 1408 return true; 1409 1409 -
trunk/bp-themes/bp-default/_inc/options.php
r2474 r2539 35 35 <td> 36 36 <label><input id="bpdtheme_frontpage_blog" type="radio" name="show_on_frontpage" <?php if ( $bp_dtheme_options['show_on_frontpage'] == 'blog' || empty($bp_dtheme_options['show_on_frontpage']) ) echo 'checked="checked"'; ?> value="blog" /> <?php _e( 'Blog Posts', 'buddypress' ) ?></label><br /> 37 <?php if ( !bp_is_deactivated('bp-activity.php') ) : ?>37 <?php if ( bp_is_active( 'activity') ) : ?> 38 38 <label><input id="bpdtheme_frontpage_activity" type="radio" name="show_on_frontpage" <?php if ( $bp_dtheme_options['show_on_frontpage'] == 'activity' ) echo 'checked="checked"'; ?> value="activity" /> <?php _e( 'Activity Stream', 'buddypress' ) ?></label> 39 39 <?php endif; ?> -
trunk/bp-themes/bp-default/activity/index.php
r2488 r2539 58 58 <option value="new_blog_post"><?php _e( 'Show Blog Posts', 'buddypress' ) ?></option> 59 59 <option value="new_blog_comment"><?php _e( 'Show Blog Comments', 'buddypress' ) ?></option> 60 <option value="new_forum_topic"><?php _e( 'Show New Forum Topics', 'buddypress' ) ?></option> 61 <option value="new_forum_post"><?php _e( 'Show Forum Replies', 'buddypress' ) ?></option> 62 <option value="created_group"><?php _e( 'Show New Groups', 'buddypress' ) ?></option> 63 <option value="joined_group"><?php _e( 'Show New Group Memberships', 'buddypress' ) ?></option> 64 <option value="friendship_accepted,friendship_created"><?php _e( 'Show Friendship Connections', 'buddypress' ) ?></option> 60 61 <?php if ( bp_is_active( 'forums' ) ) : ?> 62 <option value="new_forum_topic"><?php _e( 'Show New Forum Topics', 'buddypress' ) ?></option> 63 <option value="new_forum_post"><?php _e( 'Show Forum Replies', 'buddypress' ) ?></option> 64 <?php endif; ?> 65 66 <?php if ( bp_is_active( 'groups' ) ) : ?> 67 <option value="created_group"><?php _e( 'Show New Groups', 'buddypress' ) ?></option> 68 <option value="joined_group"><?php _e( 'Show New Group Memberships', 'buddypress' ) ?></option> 69 <?php endif; ?> 70 71 <?php if ( bp_is_active( 'friends' ) ) : ?> 72 <option value="friendship_accepted,friendship_created"><?php _e( 'Show Friendship Connections', 'buddypress' ) ?></option> 73 <?php endif; ?> 74 65 75 <option value="new_member"><?php _e( 'Show New Members', 'buddypress' ) ?></option> 66 76 -
trunk/bp-themes/bp-default/functions.php
r2531 r2539 229 229 return apply_filters( 'bp_dtheme_body_class_home', $classes, $bp_classes, $wp_classes, $custom_classes ); 230 230 231 if ( !bp_is_deactivated('bp-activity.php') ) {231 if ( bp_is_active( 'activity' ) ) { 232 232 if ( 'activity' == bp_dtheme_show_on_frontpage() ) { 233 233 $blog = array_keys( $classes, 'blog-page' ); -
trunk/bp-themes/bp-default/groups/create.php
r2453 r2539 47 47 <?php endif; ?> 48 48 49 <?php if ( function_exists('bp_forums_ setup') ) : ?>49 <?php if ( function_exists('bp_forums_is_installed_correctly') ) : ?> 50 50 <?php if ( bp_forums_is_installed_correctly() ) : ?> 51 51 <div class="checkbox"> -
trunk/bp-themes/bp-default/groups/single/activity.php
r2488 r2539 9 9 <option value="-1"><?php _e( 'No Filter', 'buddypress' ) ?></option> 10 10 <option value="activity_update"><?php _e( 'Show Updates', 'buddypress' ) ?></option> 11 <option value="new_forum_topic"><?php _e( 'Show New Forum Topics', 'buddypress' ) ?></option> 12 <option value="new_forum_post"><?php _e( 'Show Forum Replies', 'buddypress' ) ?></option> 11 12 <?php if ( bp_is_active( 'forums' ) ) : ?> 13 <option value="new_forum_topic"><?php _e( 'Show New Forum Topics', 'buddypress' ) ?></option> 14 <option value="new_forum_post"><?php _e( 'Show Forum Replies', 'buddypress' ) ?></option> 15 <?php endif; ?> 16 13 17 <option value="joined_group"><?php _e( 'Show New Group Memberships', 'buddypress' ) ?></option> 14 18 -
trunk/bp-themes/bp-default/groups/single/admin.php
r2446 r2539 48 48 <?php endif; ?> 49 49 50 <?php if ( function_exists('bp_forums_ setup') ) : ?>50 <?php if ( function_exists('bp_forums_is_installed_correctly') ) : ?> 51 51 52 52 <?php if ( bp_forums_is_installed_correctly() ) : ?> -
trunk/bp-themes/bp-default/header.php
r2474 r2539 49 49 </li> 50 50 51 <?php if ( !bp_is_deactivated('bp-activity.php') ) : ?>51 <?php if ( bp_is_active( 'activity' ) ) : ?> 52 52 <?php if ( 'blog' == bp_dtheme_show_on_frontpage() ) : ?> 53 53 <li<?php if ( bp_is_page( BP_ACTIVITY_SLUG ) ) : ?> class="selected"<?php endif; ?>> … … 65 65 </li> 66 66 67 <?php if ( function_exists( 'groups_install' ) ) : ?>67 <?php if ( bp_is_active( 'groups' ) ) : ?> 68 68 <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ) : ?> class="selected"<?php endif; ?>> 69 69 <a href="<?php echo site_url() ?>/<?php echo BP_GROUPS_SLUG ?>/" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a> … … 71 71 <?php endif; ?> 72 72 73 <?php if ( function_exists( 'groups_install' ) && ( function_exists( 'bp_forums_is_installed_correctly' ) && !(int) get_site_option( 'bp-disable-forum-directory' ) ) && bp_forums_is_installed_correctly() ) : ?>73 <?php if ( bp_is_active( 'forums' ) && ( function_exists( 'bp_forums_is_installed_correctly' ) && !(int) get_site_option( 'bp-disable-forum-directory' ) ) && bp_forums_is_installed_correctly() ) : ?> 74 74 <li<?php if ( bp_is_page( BP_FORUMS_SLUG ) ) : ?> class="selected"<?php endif; ?>> 75 75 <a href="<?php echo site_url() ?>/<?php echo BP_FORUMS_SLUG ?>/" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?></a> … … 77 77 <?php endif; ?> 78 78 79 <?php if ( function_exists( 'bp_blogs_install' ) && bp_core_is_multisite() ) : ?>79 <?php if ( bp_is_active( 'blogs' ) && bp_core_is_multisite() ) : ?> 80 80 <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) : ?> class="selected"<?php endif; ?>> 81 81 <a href="<?php echo site_url() ?>/<?php echo BP_BLOGS_SLUG ?>/" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a> -
trunk/bp-themes/bp-default/home.php
r2474 r2539 4 4 * This is set in wp-admin > Appearance > Theme Options 5 5 */ 6 if ( bp_is_deactivated('bp-activity.php') )6 if ( !bp_is_active( 'activity' ) ) 7 7 locate_template( array( 'index.php' ), true ); 8 8 else { -
trunk/bp-themes/bp-default/members/single/activity.php
r2491 r2539 11 11 <option value="new_blog_post"><?php _e( 'Show Blog Posts', 'buddypress' ) ?></option> 12 12 <option value="new_blog_comment"><?php _e( 'Show Blog Comments', 'buddypress' ) ?></option> 13 <option value="friendship_accepted,friendship_created"><?php _e( 'Show Friendship Connections', 'buddypress' ) ?></option> 13 14 <?php if ( bp_is_active( 'friends' ) ) : ?> 15 <option value="friendship_accepted,friendship_created"><?php _e( 'Show Friendship Connections', 'buddypress' ) ?></option> 16 <?php endif; ?> 14 17 <?php endif; ?> 15 18 16 <option value="new_forum_topic"><?php _e( 'Show New Forum Topics', 'buddypress' ) ?></option> 17 <option value="new_forum_post"><?php _e( 'Show Forum Replies', 'buddypress' ) ?></option> 18 <option value="created_group"><?php _e( 'Show New Groups', 'buddypress' ) ?></option> 19 <option value="joined_group"><?php _e( 'Show New Group Memberships', 'buddypress' ) ?></option> 19 <?php if ( bp_is_active( 'forums' ) ) : ?> 20 <option value="new_forum_topic"><?php _e( 'Show New Forum Topics', 'buddypress' ) ?></option> 21 <option value="new_forum_post"><?php _e( 'Show Forum Replies', 'buddypress' ) ?></option> 22 <?php endif; ?> 23 24 <?php if ( bp_is_active( 'groups' ) ) : ?> 25 <option value="created_group"><?php _e( 'Show New Groups', 'buddypress' ) ?></option> 26 <option value="joined_group"><?php _e( 'Show New Group Memberships', 'buddypress' ) ?></option> 27 <?php endif; ?> 20 28 21 29 <?php do_action( 'bp_member_activity_filter_options' ) ?>
Note: See TracChangeset
for help on using the changeset viewer.