Changeset 1303
- Timestamp:
- 04/03/2009 12:57:45 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r1270 r1303 5 5 Description: Activates activity streams for all users, plus a site-wide activity stream. 6 6 Author: BuddyPress 7 Version: 1.0-RC 17 Version: 1.0-RC2 8 8 Author URI: http://buddypress.org 9 9 Site Wide Only: true … … 13 13 14 14 define ( 'BP_ACTIVITY_IS_INSTALLED', 1 ); 15 define ( 'BP_ACTIVITY_VERSION', '1.0-RC 1' );16 define ( 'BP_ACTIVITY_DB_VERSION', '1 211' );15 define ( 'BP_ACTIVITY_VERSION', '1.0-RC2' ); 16 define ( 'BP_ACTIVITY_DB_VERSION', '1300' ); 17 17 18 18 /* Define the slug for the component */ … … 128 128 $bp->activity->table_name_sitewide = $wpdb->base_prefix . 'bp_activity_sitewide'; 129 129 130 $bp->activity->image_base = WPMU_PLUGIN_URL . '/bp-activity/images';130 $bp->activity->image_base = BP_PLUGIN_URL . '/bp-activity/images'; 131 131 $bp->activity->slug = BP_ACTIVITY_SLUG; 132 132 -
trunk/bp-activity/bp-activity-cssjs.php
r1209 r1303 3 3 function bp_activity_add_structure_css() { 4 4 /* Enqueue the structure CSS file to give basic positional formatting for components */ 5 wp_enqueue_style( 'bp-activity-structure', WPMU_PLUGIN_URL . '/bp-activity/css/structure.css' );5 wp_enqueue_style( 'bp-activity-structure', BP_PLUGIN_URL . '/bp-activity/css/structure.css' ); 6 6 } 7 7 add_action( 'bp_styles', 'bp_activity_add_structure_css' ); -
trunk/bp-activity/bp-activity-widgets.php
r1250 r1303 10 10 11 11 if ( is_active_widget( 'bp_activity_widget_sitewide_activity' ) ) { 12 wp_enqueue_style( 'bp-activity-widget-activity-css', WPMU_PLUGIN_URL . '/bp-activity/css/widget-activity.css' );12 wp_enqueue_style( 'bp-activity-widget-activity-css', BP_PLUGIN_URL . '/bp-activity/css/widget-activity.css' ); 13 13 } 14 14 } -
trunk/bp-blogs.php
r1296 r1303 5 5 Description: Tracks blogs, blog posts and blogs comments for a user across a WPMU installation. 6 6 Author: BuddyPress 7 Version: 1.0-RC 17 Version: 1.0-RC2 8 8 Author URI: http://buddypress.org 9 9 Site Wide Only: true … … 12 12 require_once( 'bp-core.php' ); 13 13 14 define ( 'BP_BLOGS_VERSION', '1.0-RC 1' );15 define ( 'BP_BLOGS_DB_VERSION', ' 937' );14 define ( 'BP_BLOGS_VERSION', '1.0-RC2' ); 15 define ( 'BP_BLOGS_DB_VERSION', '1300' ); 16 16 17 17 /* Define the slug for the component */ … … 148 148 $bp->blogs->format_activity_function = 'bp_blogs_format_activity'; 149 149 $bp->blogs->format_notification_function = 'bp_blogs_format_notifications'; 150 $bp->blogs->image_base = WPMU_PLUGIN_URL . '/bp-groups/images';150 $bp->blogs->image_base = BP_PLUGIN_URL . '/bp-groups/images'; 151 151 $bp->blogs->slug = BP_BLOGS_SLUG; 152 152 … … 210 210 $bp->is_directory = true; 211 211 212 wp_enqueue_script( 'bp-blogs-directory-blogs', WPMU_PLUGIN_URL . '/bp-blogs/js/directory-blogs.js', array( 'jquery', 'jquery-livequery-pack' ) );212 wp_enqueue_script( 'bp-blogs-directory-blogs', BP_PLUGIN_URL . '/bp-blogs/js/directory-blogs.js', array( 'jquery', 'jquery-livequery-pack' ) ); 213 213 bp_core_load_template( 'directories/blogs/index' ); 214 214 } -
trunk/bp-blogs/bp-blogs-cssjs.php
r1209 r1303 3 3 function bp_blogs_add_structure_css() { 4 4 /* Enqueue the structure CSS file to give basic positional formatting for components */ 5 wp_enqueue_style( 'bp-blogs-structure', WPMU_PLUGIN_URL . '/bp-blogs/css/structure.css' );5 wp_enqueue_style( 'bp-blogs-structure', BP_PLUGIN_URL . '/bp-blogs/css/structure.css' ); 6 6 } 7 7 add_action( 'bp_styles', 'bp_blogs_add_structure_css' ); -
trunk/bp-blogs/bp-blogs-widgets.php
r1250 r1303 10 10 11 11 if ( is_active_widget( 'bp_blogs_widget_recent_posts' ) ) { 12 wp_enqueue_style( 'bp-blogs-widget-posts-css', WPMU_PLUGIN_URL . '/bp-blogs/css/widget-blogs.css' );12 wp_enqueue_style( 'bp-blogs-widget-posts-css', BP_PLUGIN_URL . '/bp-blogs/css/widget-blogs.css' ); 13 13 } 14 14 } -
trunk/bp-core.php
r1302 r1303 5 5 Description: This plugin must be activated when using any other BuddyPress plugins. 6 6 Author: BuddyPress 7 Version: 1.0-RC 17 Version: 1.0-RC2 8 8 Author URI: http://buddypress.org 9 9 Site Wide Only: true 10 10 */ 11 11 12 /* Define the current version number for checking if DB tables are up to date. */ 13 define( 'BP_CORE_VERSION', '1.0-RC2' ); 14 define( 'BP_CORE_DB_VERSION', '1300' ); 15 16 /* Define the path and url of the BuddyPress plugins directory */ 17 $bpdir = array_pop( explode( '/', dirname(__FILE__) ) ); 18 define( 'BP_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . $bpdir ); 19 define( 'BP_PLUGIN_URL', WP_PLUGIN_URL . '/' . $bpdir ); 20 12 21 /* Place your custom code (actions/filters) in a file called bp-custom.php and it will be loaded before anything else. */ 13 if ( file_exists( WPMU_PLUGIN_DIR . '/bp-custom.php' ) ) 14 require( WPMU_PLUGIN_DIR . '/bp-custom.php' ); 15 16 /* Define the current version number for checking if DB tables are up to date. */ 17 define( 'BP_CORE_VERSION', '1.0-RC1' ); 18 define( 'BP_CORE_DB_VERSION', '1031' ); 22 if ( file_exists( BP_PLUGIN_DIR . '/bp-custom.php' ) ) 23 require( BP_PLUGIN_DIR . '/bp-custom.php' ); 19 24 20 25 /* Define on which blog ID BuddyPress should run */ … … 30 35 31 36 /* Load the language file */ 32 if ( file_exists( WPMU_PLUGIN_DIR . '/bp-languages/buddypress-' . get_locale() . '.mo' ) )33 load_textdomain( 'buddypress', WPMU_PLUGIN_DIR . '/bp-languages/buddypress-' . get_locale() . '.mo' );37 if ( file_exists( BP_PLUGIN_DIR . '/bp-languages/buddypress-' . get_locale() . '.mo' ) ) 38 load_textdomain( 'buddypress', BP_PLUGIN_DIR . '/bp-languages/buddypress-' . get_locale() . '.mo' ); 34 39 35 40 /* Load the files containing functions that we globally will need. */ … … 154 159 $bp->is_item_mod = false; 155 160 156 $bp->core->image_base = WPMU_PLUGIN_URL . '/bp-core/images';161 $bp->core->image_base = BP_PLUGIN_URL . '/bp-core/images'; 157 162 $bp->core->table_name_notifications = $wpdb->base_prefix . 'bp_notifications'; 158 163 … … 336 341 $bp->current_component = false; 337 342 338 wp_enqueue_script( 'bp-core-directory-members', WPMU_PLUGIN_URL . '/bp-core/js/directory-members.js', array( 'jquery', 'jquery-livequery-pack' ) );343 wp_enqueue_script( 'bp-core-directory-members', BP_PLUGIN_URL . '/bp-core/js/directory-members.js', array( 'jquery', 'jquery-livequery-pack' ) ); 339 344 bp_core_load_template( 'directories/members/index' ); 340 345 } … … 1175 1180 unset($nav_array[$key]); 1176 1181 break; 1177 case $bp->account->slug:1178 $new_nav[8] = $nav_array[$key];1179 unset($nav_array[$key]);1180 break;1181 1182 } 1182 1183 } 1183 1184 1184 1185 if ( is_array( $new_nav ) ) { 1185 1186 /* Sort the navigation array by key */ -
trunk/bp-core/bp-core-admin.php
r1209 r1303 94 94 <p><?php _e( 'For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their email address', 'buddypress' ) ?></p> 95 95 96 <label><input name="bp-admin[user-avatar-default]" id="avatar_mystery" value="mystery" type="radio" <?php if ( get_site_option( 'user-avatar-default' ) == 'mystery' ) : ?> checked="checked"<?php endif; ?> /> <img alt="" src="http://www.gravatar.com/avatar/<?php md5( $ud->user_email ) ?>&?s=32&d=<?php echo WPMU_PLUGIN_URL . '/bp-core/images/mystery-man.jpg' ?>&r=PG&forcedefault=1" class="avatar avatar-32" height="32" width="32"> <?php _e( 'Mystery Man', 'buddypress' ) ?></label><br>96 <label><input name="bp-admin[user-avatar-default]" id="avatar_mystery" value="mystery" type="radio" <?php if ( get_site_option( 'user-avatar-default' ) == 'mystery' ) : ?> checked="checked"<?php endif; ?> /> <img alt="" src="http://www.gravatar.com/avatar/<?php md5( $ud->user_email ) ?>&?s=32&d=<?php echo BP_PLUGIN_URL . '/bp-core/images/mystery-man.jpg' ?>&r=PG&forcedefault=1" class="avatar avatar-32" height="32" width="32"> <?php _e( 'Mystery Man', 'buddypress' ) ?></label><br> 97 97 <label><input name="bp-admin[user-avatar-default]" id="avatar_identicon" value="identicon" type="radio" <?php if ( get_site_option( 'user-avatar-default' ) == 'identicon' ) : ?> checked="checked"<?php endif; ?> /> <img alt="" src="http://www.gravatar.com/avatar/<?php md5( $ud->user_email ) ?>?s=32&d=identicon&r=PG&forcedefault=1" class="avatar avatar-32" height="32" width="32"> <?php _e( 'Identicon (Generated)', 'buddypress' ) ?></label><br> 98 98 <label><input name="bp-admin[user-avatar-default]" id="avatar_wavatar" value="wavatar" type="radio" <?php if ( get_site_option( 'user-avatar-default' ) == 'wavatar' ) : ?> checked="checked"<?php endif; ?> /> <img alt="" src="http://www.gravatar.com/avatar/<?php md5( $ud->user_email ) ?>?s=32&d=wavatar&r=PG&forcedefault=1" class="avatar avatar-32" height="32" width="32"> <?php _e( 'Wavatar (Generated)', 'buddypress' ) ?> </label><br> -
trunk/bp-core/bp-core-adminbar.php
r1273 r1303 27 27 global $bp; 28 28 29 echo '<a href="' . $bp->root_domain . '"><img id="admin-bar-logo" src="' . apply_filters( 'bp_admin_bar_logo_src', WPMU_PLUGIN_URL . '/bp-core/images/admin_bar_logo.gif' ) . '" alt="' . apply_filters( 'bp_admin_bar_logo_alt_text', __( 'BuddyPress', 'buddypress' ) ) . '" /></a>';29 echo '<a href="' . $bp->root_domain . '"><img id="admin-bar-logo" src="' . apply_filters( 'bp_admin_bar_logo_src', BP_PLUGIN_URL . '/bp-core/images/admin_bar_logo.gif' ) . '" alt="' . apply_filters( 'bp_admin_bar_logo_alt_text', __( 'BuddyPress', 'buddypress' ) ) . '" /></a>'; 30 30 } 31 31 -
trunk/bp-core/bp-core-avatars.php
r1286 r1303 16 16 define( 'CORE_CROPPING_CANVAS_MAX', apply_filters( 'bp_core_avatar_cropping_canvas_max', 450 ) ); 17 17 define( 'CORE_MAX_FILE_SIZE', get_site_option('fileupload_maxk') * 1024 ); 18 define( 'CORE_DEFAULT_AVATAR', apply_filters( 'bp_core_avatar_default_src', WPMU_PLUGIN_URL . '/bp-xprofile/images/none.gif' ) );19 define( 'CORE_DEFAULT_AVATAR_THUMB', apply_filters( 'bp_core_avatar_default_thumb_src', WPMU_PLUGIN_URL . '/bp-xprofile/images/none-thumbnail.gif' ) );18 define( 'CORE_DEFAULT_AVATAR', apply_filters( 'bp_core_avatar_default_src', BP_PLUGIN_URL . '/bp-xprofile/images/none.gif' ) ); 19 define( 'CORE_DEFAULT_AVATAR_THUMB', apply_filters( 'bp_core_avatar_default_thumb_src', BP_PLUGIN_URL . '/bp-xprofile/images/none-thumbnail.gif' ) ); 20 20 21 21 function bp_core_get_avatar( $user, $version = 1, $width = null, $height = null, $no_tag = false ) { … … 49 49 $default_grav = 'wavatar'; 50 50 } else if ( 'mystery' == $grav_option ) { 51 $default_grav = WPMU_PLUGIN_URL . '/bp-core/images/mystery-man.jpg';51 $default_grav = BP_PLUGIN_URL . '/bp-core/images/mystery-man.jpg'; 52 52 } else { 53 53 $default_grav = $grav_option; -
trunk/bp-core/bp-core-cssjs.php
r1270 r1303 11 11 function bp_core_add_js() { 12 12 wp_enqueue_script( 'jquery' ); 13 wp_enqueue_script( 'jquery-livequery-pack', WPMU_PLUGIN_URL . '/bp-core/js/jquery/jquery.livequery.pack.js', 'jquery' );14 wp_enqueue_script( 'bp-general-js', WPMU_PLUGIN_URL . '/bp-core/js/general.js' );13 wp_enqueue_script( 'jquery-livequery-pack', BP_PLUGIN_URL . '/bp-core/js/jquery/jquery.livequery.pack.js', 'jquery' ); 14 wp_enqueue_script( 'bp-general-js', BP_PLUGIN_URL . '/bp-core/js/general.js' ); 15 15 } 16 16 add_action( 'wp', 'bp_core_add_js' ); … … 27 27 function bp_core_add_ajax_js() { 28 28 echo 29 '<script type="text/javascript">var ajaxurl = "' . WPMU_PLUGIN_URL . '/bp-core/bp-core-ajax-handler.php";</script>29 '<script type="text/javascript">var ajaxurl = "' . BP_PLUGIN_URL . '/bp-core/bp-core-ajax-handler.php";</script> 30 30 '; 31 31 } … … 62 62 63 63 if ( is_user_logged_in() || ( (int)get_site_option( 'show-loggedout-adminbar' ) && !is_user_logged_in() ) ) { 64 wp_enqueue_style( 'bp-admin-bar', WPMU_PLUGIN_URL . '/bp-core/css/admin-bar.css' );64 wp_enqueue_style( 'bp-admin-bar', BP_PLUGIN_URL . '/bp-core/css/admin-bar.css' ); 65 65 66 if ( 'rtl' == get_bloginfo('text_direction') && file_exists( WPMU_PLUGIN_DIR . '/bp-core/css/admin-bar-rtl.css' ) )67 wp_enqueue_style( 'bp-admin-bar-rtl', WPMU_PLUGIN_URL . '/bp-core/css/admin-bar-rtl.css' );66 if ( 'rtl' == get_bloginfo('text_direction') && file_exists( BP_PLUGIN_DIR . '/bp-core/css/admin-bar-rtl.css' ) ) 67 wp_enqueue_style( 'bp-admin-bar-rtl', BP_PLUGIN_URL . '/bp-core/css/admin-bar-rtl.css' ); 68 68 } 69 69 wp_print_styles(); … … 81 81 function bp_core_add_structure_css() { 82 82 /* Enqueue the structure CSS file to give basic positional formatting for components */ 83 wp_enqueue_style( 'bp-core-structure', WPMU_PLUGIN_URL . '/bp-core/css/structure.css' );83 wp_enqueue_style( 'bp-core-structure', BP_PLUGIN_URL . '/bp-core/css/structure.css' ); 84 84 } 85 85 add_action( 'bp_styles', 'bp_core_add_structure_css' ); … … 95 95 function bp_core_add_admin_js() { 96 96 if ( false !== strpos( $_GET['page'], 'bp-core' ) ) { 97 wp_enqueue_script( 'bp-account-admin-js', WPMU_PLUGIN_URL . '/bp-core/js/account-admin.js' );97 wp_enqueue_script( 'bp-account-admin-js', BP_PLUGIN_URL . '/bp-core/js/account-admin.js' ); 98 98 } 99 99 … … 116 116 return false; 117 117 118 wp_enqueue_style( 'bp-admin-bar', WPMU_PLUGIN_URL . '/bp-core/css/admin-bar.css' );118 wp_enqueue_style( 'bp-admin-bar', BP_PLUGIN_URL . '/bp-core/css/admin-bar.css' ); 119 119 } 120 120 add_action( 'admin_menu', 'bp_core_add_admin_css' ); -
trunk/bp-core/bp-core-widgets.php
r1273 r1303 15 15 /* Include the javascript needed for activated widgets only */ 16 16 if ( is_active_widget( 'bp_core_widget_members' ) ) { 17 wp_enqueue_script( 'bp_core_widget_members-js', WPMU_PLUGIN_URL . '/bp-core/js/widget-members.js', array('jquery', 'jquery-livequery-pack') );18 wp_enqueue_style( 'bp_core_widget_members-css', WPMU_PLUGIN_URL . '/bp-core/css/widget-members.css' );17 wp_enqueue_script( 'bp_core_widget_members-js', BP_PLUGIN_URL . '/bp-core/js/widget-members.js', array('jquery', 'jquery-livequery-pack') ); 18 wp_enqueue_style( 'bp_core_widget_members-css', BP_PLUGIN_URL . '/bp-core/css/widget-members.css' ); 19 19 } 20 20 -
trunk/bp-forums.php
r1270 r1303 5 5 Description: Activates bbPress forum support within BuddyPress groups or any other custom component. 6 6 Author: BuddyPress 7 Version: 1.0-RC 17 Version: 1.0-RC2 8 8 Author URI: http://buddypress.org 9 9 Site Wide Only: true … … 18 18 require_once( 'bp-core.php' ); 19 19 20 define ( 'BP_FORUMS_VERSION', '1.0-RC 1' );20 define ( 'BP_FORUMS_VERSION', '1.0-RC2' ); 21 21 22 22 /* Define the parent forum ID */ -
trunk/bp-friends.php
r1290 r1303 5 5 Description: Allows the creation of friend connections between users. 6 6 Author: BuddyPress 7 Version: 1.0-RC 17 Version: 1.0-RC2 8 8 Author URI: http://buddypress.org 9 9 Site Wide Only: true … … 13 13 14 14 define ( 'BP_FRIENDS_IS_INSTALLED', 1 ); 15 define ( 'BP_FRIENDS_VERSION', '1.0-RC 1' );16 define ( 'BP_FRIENDS_DB_VERSION', ' 937' );15 define ( 'BP_FRIENDS_VERSION', '1.0-RC2' ); 16 define ( 'BP_FRIENDS_DB_VERSION', '1300' ); 17 17 18 18 /* Define the slug for the component */ … … 67 67 68 68 $bp->friends->table_name = $wpdb->base_prefix . 'bp_friends'; 69 $bp->friends->image_base = WPMU_PLUGIN_URL . '/bp-friends/images';69 $bp->friends->image_base = BP_PLUGIN_URL . '/bp-friends/images'; 70 70 $bp->friends->format_activity_function = 'friends_format_activity'; 71 71 $bp->friends->format_notification_function = 'friends_format_notifications'; -
trunk/bp-friends/bp-friends-cssjs.php
r1209 r1303 10 10 11 11 if ( $bp->current_component == $bp->friends->slug ) 12 wp_enqueue_script( 'bp-friends-js', WPMU_PLUGIN_URL . '/bp-friends/js/general.js' );12 wp_enqueue_script( 'bp-friends-js', BP_PLUGIN_URL . '/bp-friends/js/general.js' ); 13 13 } 14 14 add_action( 'template_redirect', 'friends_add_js', 1 ); … … 16 16 function friends_add_structure_css() { 17 17 /* Enqueue the structure CSS file to give basic positional formatting for components */ 18 wp_enqueue_style( 'bp-friends-structure', WPMU_PLUGIN_URL . '/bp-friends/css/structure.css' );18 wp_enqueue_style( 'bp-friends-structure', BP_PLUGIN_URL . '/bp-friends/css/structure.css' ); 19 19 } 20 20 add_action( 'bp_styles', 'friends_add_structure_css' ); -
trunk/bp-groups.php
r1293 r1303 5 5 Description: Allows users to create, join and participate in groups. 6 6 Author: BuddyPress 7 Version: 1.0-RC 17 Version: 1.0-RC2 8 8 Author URI: http://buddypress.org 9 9 Site Wide Only: true … … 13 13 14 14 define ( 'BP_GROUPS_IS_INSTALLED', 1 ); 15 define ( 'BP_GROUPS_VERSION', '1.0-RC 1' );16 define ( 'BP_GROUPS_DB_VERSION', ' 951' );15 define ( 'BP_GROUPS_VERSION', '1.0-RC2' ); 16 define ( 'BP_GROUPS_DB_VERSION', '1300' ); 17 17 18 18 /* Define the slug for the component */ … … 140 140 $bp->groups->table_name_members = $wpdb->base_prefix . 'bp_groups_members'; 141 141 $bp->groups->table_name_groupmeta = $wpdb->base_prefix . 'bp_groups_groupmeta'; 142 $bp->groups->image_base = WPMU_PLUGIN_URL . '/bp-groups/images';142 $bp->groups->image_base = BP_PLUGIN_URL . '/bp-groups/images'; 143 143 $bp->groups->format_activity_function = 'groups_format_activity'; 144 144 $bp->groups->format_notification_function = 'groups_format_notifications'; … … 313 313 $bp->is_directory = true; 314 314 315 wp_enqueue_script( 'bp-groups-directory-groups', WPMU_PLUGIN_URL . '/bp-groups/js/directory-groups.js', array( 'jquery', 'jquery-livequery-pack' ) );315 wp_enqueue_script( 'bp-groups-directory-groups', BP_PLUGIN_URL . '/bp-groups/js/directory-groups.js', array( 'jquery', 'jquery-livequery-pack' ) ); 316 316 bp_core_load_template( 'directories/groups/index' ); 317 317 } -
trunk/bp-groups/bp-groups-cssjs.php
r1209 r1303 10 10 11 11 if ( $bp->current_component == $bp->groups->slug ) 12 wp_enqueue_script( 'bp-groups-js', WPMU_PLUGIN_URL . '/bp-groups/js/general.js' );12 wp_enqueue_script( 'bp-groups-js', BP_PLUGIN_URL . '/bp-groups/js/general.js' ); 13 13 } 14 14 add_action( 'template_redirect', 'groups_add_js', 1 ); … … 16 16 function groups_add_structure_css() { 17 17 /* Enqueue the structure CSS file to give basic positional formatting for components */ 18 wp_enqueue_style( 'bp-groups-structure', WPMU_PLUGIN_URL . '/bp-groups/css/structure.css' );18 wp_enqueue_style( 'bp-groups-structure', BP_PLUGIN_URL . '/bp-groups/css/structure.css' ); 19 19 } 20 20 add_action( 'bp_styles', 'groups_add_structure_css' ); -
trunk/bp-groups/bp-groups-widgets.php
r1250 r1303 11 11 /* Include the javascript needed for activated widgets only */ 12 12 if ( is_active_widget( 'groups_widget_groups_list' ) ) { 13 wp_enqueue_script( 'groups_widget_groups_list-js', WPMU_PLUGIN_URL . '/bp-groups/js/widget-groups.js', array('jquery', 'jquery-livequery-pack') );14 wp_enqueue_style( 'groups_widget_members-css', WPMU_PLUGIN_URL . '/bp-groups/css/widget-groups.css' );13 wp_enqueue_script( 'groups_widget_groups_list-js', BP_PLUGIN_URL . '/bp-groups/js/widget-groups.js', array('jquery', 'jquery-livequery-pack') ); 14 wp_enqueue_style( 'groups_widget_members-css', BP_PLUGIN_URL . '/bp-groups/css/widget-groups.css' ); 15 15 } 16 16 } -
trunk/bp-messages.php
r1284 r1303 5 5 Description: Enables the ability for users to send private messages to one another. Site admins can send site notices. 6 6 Author: BuddyPress 7 Version: 1.0-RC 17 Version: 1.0-RC2 8 8 Author URI: http://buddypress.org 9 9 Site Wide Only: true … … 13 13 14 14 define ( 'BP_MESSAGES_IS_INSTALLED', 1 ); 15 define ( 'BP_MESSAGES_VERSION', '1.0-RC 1' );16 define ( 'BP_MESSAGES_DB_VERSION', ' 948' );15 define ( 'BP_MESSAGES_VERSION', '1.0-RC2' ); 16 define ( 'BP_MESSAGES_DB_VERSION', '1300' ); 17 17 18 18 /* Define the slug for the component */ … … 113 113 $bp->messages->format_activity_function = 'messages_format_activity'; 114 114 $bp->messages->format_notification_function = 'messages_format_notifications'; 115 $bp->messages->image_base = WPMU_PLUGIN_URL . '/bp-messages/images';115 $bp->messages->image_base = BP_PLUGIN_URL . '/bp-messages/images'; 116 116 $bp->messages->slug = BP_MESSAGES_SLUG; 117 117 -
trunk/bp-messages/bp-messages-cssjs.php
r1209 r1303 5 5 6 6 if ( $bp->current_component == $bp->messages->slug ) 7 wp_enqueue_script( 'bp-messages-js', WPMU_PLUGIN_URL . '/bp-messages/js/general.php' );7 wp_enqueue_script( 'bp-messages-js', BP_PLUGIN_URL . '/bp-messages/js/general.php' ); 8 8 9 9 // Include the autocomplete JS for composing a message. 10 10 if ( $bp->current_component == $bp->messages->slug && $bp->current_action == 'compose') { 11 wp_enqueue_script( 'bp-jquery-autocomplete', WPMU_PLUGIN_URL . '/bp-messages/js/autocomplete/jquery.autocomplete.js', 'jquery' );12 wp_enqueue_script( 'bp-jquery-autocomplete-fb', WPMU_PLUGIN_URL . '/bp-messages/js/autocomplete/jquery.autocompletefb.js', 'jquery' );13 wp_enqueue_script( 'bp-jquery-bgiframe', WPMU_PLUGIN_URL . '/bp-messages/js/autocomplete/jquery.bgiframe.min.js', 'jquery' );14 wp_enqueue_script( 'bp-jquery-dimensions', WPMU_PLUGIN_URL . '/bp-messages/js/autocomplete/jquery.dimensions.js', 'jquery' );15 wp_enqueue_script( 'bp-autocomplete-init', WPMU_PLUGIN_URL . '/bp-messages/js/autocomplete/init.php', 'jquery' );11 wp_enqueue_script( 'bp-jquery-autocomplete', BP_PLUGIN_URL . '/bp-messages/js/autocomplete/jquery.autocomplete.js', 'jquery' ); 12 wp_enqueue_script( 'bp-jquery-autocomplete-fb', BP_PLUGIN_URL . '/bp-messages/js/autocomplete/jquery.autocompletefb.js', 'jquery' ); 13 wp_enqueue_script( 'bp-jquery-bgiframe', BP_PLUGIN_URL . '/bp-messages/js/autocomplete/jquery.bgiframe.min.js', 'jquery' ); 14 wp_enqueue_script( 'bp-jquery-dimensions', BP_PLUGIN_URL . '/bp-messages/js/autocomplete/jquery.dimensions.js', 'jquery' ); 15 wp_enqueue_script( 'bp-autocomplete-init', BP_PLUGIN_URL . '/bp-messages/js/autocomplete/init.php', 'jquery' ); 16 16 17 17 } … … 24 24 25 25 if ( $bp->current_component == $bp->messages->slug && $bp->current_action == 'compose') { 26 wp_enqueue_style( 'bp-messages-autocomplete', WPMU_PLUGIN_URL . '/bp-messages/css/autocomplete/jquery.autocompletefb.css' );26 wp_enqueue_style( 'bp-messages-autocomplete', BP_PLUGIN_URL . '/bp-messages/css/autocomplete/jquery.autocompletefb.css' ); 27 27 wp_print_styles(); 28 28 } … … 33 33 function messages_add_structure_css() { 34 34 /* Enqueue the structure CSS file to give basic positional formatting for components */ 35 wp_enqueue_style( 'bp-messages-structure', WPMU_PLUGIN_URL . '/bp-messages/css/structure.css' );35 wp_enqueue_style( 'bp-messages-structure', BP_PLUGIN_URL . '/bp-messages/css/structure.css' ); 36 36 } 37 37 add_action( 'bp_styles', 'messages_add_structure_css' ); -
trunk/bp-messages/js/autocomplete/init.php
r1209 r1303 7 7 jQuery(document).ready(function() { 8 8 var acfb = 9 jQuery("ul.first").autoCompletefb({urlLookup:'<?php echo WPMU_PLUGIN_URL . '/bp-messages/autocomplete/bp-messages-autocomplete.php' ?>'});9 jQuery("ul.first").autoCompletefb({urlLookup:'<?php echo BP_PLUGIN_URL . '/bp-messages/autocomplete/bp-messages-autocomplete.php' ?>'}); 10 10 11 11 jQuery('#send_message_form').submit( function() { -
trunk/bp-messages/js/general.php
r1209 r1303 34 34 35 35 var rand = Math.floor(Math.random()*100001); 36 jQuery("form#send-reply").before('<div style="display:none;" class="ajax_reply" id="' + rand + '"><img src="<?php echo WPMU_PLUGIN_URL . '/bp-messages/images/loading.gif' ?>" alt="Loading" /> Sending Message...</div>');36 jQuery("form#send-reply").before('<div style="display:none;" class="ajax_reply" id="' + rand + '"><img src="<?php echo BP_PLUGIN_URL . '/bp-messages/images/loading.gif' ?>" alt="Loading" /> Sending Message...</div>'); 37 37 jQuery("div#" + rand).fadeIn(); 38 38 -
trunk/bp-themes/buddypress-home/functions.php
r1271 r1303 68 68 global $bp, $current_blog; 69 69 70 require ( WPMU_PLUGIN_DIR . '/bp-core/bp-core-signup.php' );70 require ( BP_PLUGIN_DIR . '/bp-core/bp-core-signup.php' ); 71 71 72 72 if ( $bp->current_component == BP_REGISTER_SLUG && $bp->current_action == '' ) { … … 80 80 global $bp, $current_blog; 81 81 82 require ( WPMU_PLUGIN_DIR . '/bp-core/bp-core-activation.php' );82 require ( BP_PLUGIN_DIR . '/bp-core/bp-core-activation.php' ); 83 83 84 84 if ( $bp->current_component == BP_ACTIVATION_SLUG && $bp->current_action == '' ) { … … 89 89 add_action( 'wp', 'bp_show_activation_page', 2 ); 90 90 91 /* Hook for custom theme functions via plugins */92 do_action( 'bp_home_theme_functions' );93 94 91 95 92 ?> -
trunk/bp-themes/buddypress-home/style.css
r1091 r1303 3 3 Theme URI: http://buddypress.com/ 4 4 Description: A widget framework theme for the home of a BuddyPress enabled installation. This theme is not required to use BuddyPress. 5 Version: 1.0-RC 15 Version: 1.0-RC2 6 6 Author: Andy Peatling 7 7 Author URI: http://apeatling.wordpress.com -
trunk/bp-themes/buddypress-member/functions.php
r1249 r1303 1 1 <?php 2 if ( function_exists('register_sidebar') )3 register_sidebar(array(4 'before_widget' => '<li id="%1$s" class="widget %2$s">',5 'after_widget' => '</li>',6 'before_title' => '<h2 class="widgettitle">',7 'after_title' => '</h2>',8 ));9 2 10 3 function bp_get_options_class() { … … 26 19 } 27 20 28 /* Hook for custom theme functions via plugins */29 do_action( 'bp_member_theme_functions' );30 31 21 ?> -
trunk/bp-themes/buddypress-member/style.css
r1091 r1303 3 3 Theme URI: http://buddypress.org 4 4 Description: The default member theme for BuddyPress. This theme handles all non-blog pages. 5 Version: 1.0-RC 15 Version: 1.0-RC2 6 6 Author: Andy Peatling 7 7 Author URI: http://apeatling.wordpress.com 8 BuddyPress Enabled: true9 8 */ 10 9 -
trunk/bp-themes/buddypress-member/userbar.php
r1209 r1303 19 19 20 20 <p class="avatar"> 21 <img src="<?php echo WPMU_PLUGIN_URL . '/bp-core/images/mystery-man.jpg' ?>" alt="No User" width="50" height="50" />21 <img src="<?php echo BP_PLUGIN_URL . '/bp-core/images/mystery-man.jpg' ?>" alt="No User" width="50" height="50" /> 22 22 </p> 23 23 -
trunk/bp-wire.php
r1270 r1303 5 5 Description: Allows users to leave a comment on groups, profiles and custom components. 6 6 Author: BuddyPress 7 Version: 1.0-RC 17 Version: 1.0-RC2 8 8 Author URI: http://buddypress.org 9 9 Site Wide Only: true … … 13 13 14 14 define ( 'BP_WIRE_IS_INSTALLED', 1 ); 15 define ( 'BP_WIRE_VERSION', '1.0-RC 1' );15 define ( 'BP_WIRE_VERSION', '1.0-RC2' ); 16 16 17 17 /* Define the slug for the component */ … … 39 39 global $bp, $wpdb; 40 40 41 $bp->wire->image_base = WPMU_PLUGIN_URL . '/bp-wire/images';41 $bp->wire->image_base = BP_PLUGIN_URL . '/bp-wire/images'; 42 42 $bp->wire->slug = BP_WIRE_SLUG; 43 43 -
trunk/bp-wire/bp-wire-cssjs.php
r1209 r1303 3 3 function bp_wire_add_structure_css() { 4 4 /* Enqueue the structure CSS file to give basic positional formatting for components */ 5 wp_enqueue_style( 'bp-wire-structure', WPMU_PLUGIN_URL . '/bp-wire/css/structure.css' );5 wp_enqueue_style( 'bp-wire-structure', BP_PLUGIN_URL . '/bp-wire/css/structure.css' ); 6 6 } 7 7 add_action( 'bp_styles', 'bp_wire_add_structure_css' ); -
trunk/bp-xprofile.php
r1293 r1303 5 5 Description: Activates customizable profiles and avatars for site users. 6 6 Author: BuddyPress 7 Version: 1.0-RC 17 Version: 1.0-RC2 8 8 Author URI: http://buddypress.org 9 9 Site Wide Only: true … … 13 13 14 14 /* Set the version number */ 15 define ( 'BP_XPROFILE_VERSION', '1.0-RC 1' );16 define ( 'BP_XPROFILE_DB_VERSION', ' 948' );15 define ( 'BP_XPROFILE_VERSION', '1.0-RC2' ); 16 define ( 'BP_XPROFILE_DB_VERSION', '1300' ); 17 17 18 18 /* Define the slug for the component */ … … 150 150 $bp->profile->format_activity_function = 'xprofile_format_activity'; 151 151 $bp->profile->format_notification_function = 'xprofile_format_notifications'; 152 $bp->profile->image_base = WPMU_PLUGIN_URL . '/bp-xprofile/images';152 $bp->profile->image_base = BP_PLUGIN_URL . '/bp-xprofile/images'; 153 153 $bp->profile->slug = BP_XPROFILE_SLUG; 154 154 -
trunk/bp-xprofile/bp-xprofile-classes.php
r1298 r1303 777 777 778 778 // Files in wp-content/themes directory and one subdir down 779 $prebuilt_fields_path = WPMU_PLUGIN_DIR . '/bp-xprofile/prebuilt-fields';779 $prebuilt_fields_path = BP_PLUGIN_DIR . '/bp-xprofile/prebuilt-fields'; 780 780 if( !empty( $prebuilt_fields_path ) ){ 781 781 $prebuilt_fields_dir = @opendir($prebuilt_fields_path); -
trunk/bp-xprofile/bp-xprofile-cssjs.php
r1273 r1303 9 9 function xprofile_add_css() { 10 10 if ( $_SERVER['SCRIPT_NAME'] == '/wp-signup.php' ) 11 wp_enqueue_style( 'bp-xprofile-signup', WPMU_PLUGIN_URL . '/bp-xprofile/css/signup.css' );11 wp_enqueue_style( 'bp-xprofile-signup', BP_PLUGIN_URL . '/bp-xprofile/css/signup.css' ); 12 12 13 13 wp_print_styles(); … … 17 17 function xprofile_add_structure_css() { 18 18 /* Enqueue the structure CSS file to give basic positional formatting for xprofile pages */ 19 wp_enqueue_style( 'bp-xprofile-structure', WPMU_PLUGIN_URL . '/bp-xprofile/css/structure.css' );19 wp_enqueue_style( 'bp-xprofile-structure', BP_PLUGIN_URL . '/bp-xprofile/css/structure.css' ); 20 20 } 21 21 add_action( 'bp_styles', 'xprofile_add_structure_css' ); … … 23 23 function xprofile_add_admin_css() { 24 24 if ( strpos( $_GET['page'], 'xprofile' ) !== false ) { 25 echo '<link rel="stylesheet" href="' . WPMU_PLUGIN_URL . '/bp-xprofile/css/admin.css' . '" type="text/css" />';25 echo '<link rel="stylesheet" href="' . BP_PLUGIN_URL . '/bp-xprofile/css/admin.css' . '" type="text/css" />'; 26 26 } 27 27 } … … 30 30 function xprofile_add_admin_js() { 31 31 if ( strpos( $_GET['page'], 'xprofile' ) !== false ) 32 echo '<script type="text/javascript" src="' . WPMU_PLUGIN_URL . '/bp-xprofile/js/admin.js' . '"></script>';32 echo '<script type="text/javascript" src="' . BP_PLUGIN_URL . '/bp-xprofile/js/admin.js' . '"></script>'; 33 33 } 34 34 add_action( 'admin_head', 'xprofile_add_admin_js' );
Note: See TracChangeset
for help on using the changeset viewer.