Changeset 3698
- Timestamp:
- 01/11/2011 05:41:53 PM (14 years ago)
- Location:
- trunk/bp-themes/bp-default
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/ajax.php
r3627 r3698 147 147 } 148 148 149 if ( empty( $_POST['object'] ) && function_exists( 'bp_activity_post_update' ) ) {149 if ( empty( $_POST['object'] ) && bp_is_active( 'activity' ) ) { 150 150 $activity_id = bp_activity_post_update( array( 'content' => $_POST['content'] ) ); 151 151 } elseif ( $_POST['object'] == 'groups' ) { 152 if ( !empty( $_POST['item_id'] ) && function_exists( 'groups_post_update' ) )152 if ( !empty( $_POST['item_id'] ) && bp_is_active( 'groups' ) ) 153 153 $activity_id = groups_post_update( array( 'content' => $_POST['content'], 'group_id' => $_POST['item_id'] ) ); 154 154 } else … … 589 589 } 590 590 } else { 591 if ( function_exists( 'friends_search_friends' ) ) {591 if ( bp_is_active( 'friends' ) ) { 592 592 $users = friends_search_friends( $_GET['q'], $bp->loggedin_user->id, $limit, 1 ); 593 593 -
trunk/bp-themes/bp-default/activity/index.php
r3460 r3698 26 26 <?php do_action( 'bp_before_activity_type_tab_friends' ) ?> 27 27 28 <?php if ( function_exists( 'bp_get_total_friend_count' ) ) : ?>28 <?php if ( bp_is_active( 'friends' ) ) : ?> 29 29 <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> 30 30 <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/' . BP_FRIENDS_SLUG . '/' ?>" title="<?php _e( 'The activity of my friends only.', 'buddypress' ) ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li> … … 34 34 <?php do_action( 'bp_before_activity_type_tab_groups' ) ?> 35 35 36 <?php if ( function_exists( 'bp_get_total_group_count_for_user' ) ) : ?>36 <?php if ( bp_is_active( 'groups' ) ) : ?> 37 37 <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?> 38 38 <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/' . BP_GROUPS_SLUG . '/' ?>" title="<?php _e( 'The activity of groups I am a member of.', 'buddypress' ) ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> -
trunk/bp-themes/bp-default/activity/post-form.php
r3460 r3698 34 34 </div> 35 35 36 <?php if ( function_exists('bp_has_groups') && !bp_is_my_profile() && !bp_is_group() ) : ?>36 <?php if ( bp_is_active( 'groups' ) && !bp_is_my_profile() && !bp_is_group() ) : ?> 37 37 <div id="whats-new-post-in-box"> 38 38 <?php _e( 'Post in', 'buddypress' ) ?>: -
trunk/bp-themes/bp-default/groups/create.php
r3460 r3698 41 41 <?php do_action( 'bp_before_group_settings_creation_step' ); ?> 42 42 43 <?php if ( function_exists('bp_wire_install') ) : ?> 44 <div class="checkbox"> 45 <label><input type="checkbox" name="group-show-wire" id="group-show-wire" value="1"<?php if ( bp_get_new_group_enable_wire() ) { ?> checked="checked"<?php } ?> /> <?php _e('Enable comment wire', 'buddypress') ?></label> 46 </div> 47 <?php endif; ?> 48 49 <?php if ( function_exists('bp_forums_is_installed_correctly') ) : ?> 43 <?php if ( bp_is_active( 'forums' ) ) : ?> 50 44 <?php if ( bp_forums_is_installed_correctly() ) : ?> 51 45 <div class="checkbox"> … … 157 151 <?php do_action( 'bp_before_group_invites_creation_step' ); ?> 158 152 159 <?php if ( function_exists( 'bp_get_total_friend_count' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>153 <?php if ( bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> 160 154 <div class="left-menu"> 161 155 -
trunk/bp-themes/bp-default/groups/single/admin.php
r3592 r3698 40 40 <?php do_action( 'bp_before_group_settings_admin' ); ?> 41 41 42 <?php if ( function_exists('bp_wire_install') ) : ?> 43 44 <div class="checkbox"> 45 <label><input type="checkbox" name="group-show-wire" id="group-show-wire" value="1"<?php bp_group_show_wire_setting() ?>/> <?php _e( 'Enable comment wire', 'buddypress' ) ?></label> 46 </div> 47 48 <?php endif; ?> 49 50 <?php if ( function_exists('bp_forums_is_installed_correctly') ) : ?> 42 <?php if ( bp_is_active( 'forums' ) ) : ?> 51 43 52 44 <?php if ( bp_forums_is_installed_correctly() ) : ?> -
trunk/bp-themes/bp-default/members/index.php
r3460 r3698 18 18 <li class="selected" id="members-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Members (%s)', 'buddypress' ), bp_get_total_member_count() ) ?></a></li> 19 19 20 <?php if ( is_user_logged_in() && function_exists( 'bp_get_total_friend_count' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>20 <?php if ( is_user_logged_in() && bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> 21 21 <li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_FRIENDS_SLUG . '/my-friends/' ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li> 22 22 <?php endif; ?> -
trunk/bp-themes/bp-default/members/single/member-header.php
r3300 r3698 15 15 16 16 <div id="item-meta"> 17 <?php if ( function_exists( 'bp_activity_latest_update' ) ) : ?>17 <?php if ( bp_is_active( 'activity' ) ) : ?> 18 18 <div id="latest-update"> 19 19 <?php bp_activity_latest_update( bp_displayed_user_id() ) ?> -
trunk/bp-themes/bp-default/members/single/profile/profile-loop.php
r3300 r3698 1 1 <?php do_action( 'bp_before_profile_loop_content' ) ?> 2 2 3 <?php if ( function_exists('xprofile_get_profile') ) : ?>3 <?php if ( bp_is_active( 'xprofile' ) ) : ?> 4 4 5 5 <?php if ( bp_has_profile() ) : ?> -
trunk/bp-themes/bp-default/registration/register.php
r3691 r3698 57 57 58 58 <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?> 59 <?php if ( function_exists( 'bp_has_profile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>59 <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> 60 60 61 61 <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> -
trunk/bp-themes/bp-default/sidebar.php
r3466 r3698 23 23 <?php do_action( 'bp_after_sidebar_me' ) ?> 24 24 25 <?php if ( function_exists( 'bp_message_get_notices' ) ) : ?>25 <?php if ( bp_is_active( 'messages' ) ) : ?> 26 26 <?php bp_message_get_notices(); /* Site wide notices to all users */ ?> 27 27 <?php endif; ?> … … 61 61 62 62 <h3 class="widgettitle"><?php _e( 'Forum Topic Tags', 'buddypress' ) ?></h3> 63 <?php if ( function_exists('bp_forums_tag_heat_map') ) : ?>63 <?php if ( bp_is_active( 'forums' ) ) : ?> 64 64 <div id="tag-text"><?php bp_forums_tag_heat_map(); ?></div> 65 65 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.