Skip to:
Content

BuddyPress.org

Ticket #3741: 3741-move-template-pack-folder.001.patch

File 3741-move-template-pack-folder.001.patch, 580.8 KB (added by DJPaul, 14 years ago)
  • bp-loader.php

    class BuddyPress { 
    343343
    344344                /** Theme Compat ******************************************************/
    345345
    346                 $this->theme_compat   = new stdClass(); // Base theme compatibility class
    347                 $this->filters        = new stdClass(); // Used when adding/removing filters
     346                $this->theme_compat     = new stdClass();                        // Base theme compatibility class
     347                $this->theme_compat_dir = $this->plugin_dir . 'bp-theme-compat';
     348                $this->theme_compat_url = $this->plugin_url . 'bp-theme-compat';
     349                $this->filters          = new stdClass();                        // Used when adding/removing filters
    348350
    349351                /** Users *************************************************************/
    350352
    class BuddyPress { 
    514516                        'id'      => 'legacy',
    515517                        'name'    => __( 'BuddyPress Default', 'buddypress' ),
    516518                        'version' => bp_get_version(),
    517                         'dir'     => trailingslashit( $this->themes_dir . '/bp-legacy' ),
    518                         'url'     => trailingslashit( $this->themes_url . '/bp-legacy' )
     519                        'dir'     => trailingslashit( $this->theme_compat_dir . '/bp-legacy' ),
     520                        'url'     => trailingslashit( $this->theme_compat_url . '/bp-legacy' )
    519521                ) );
    520522        }
    521523       
  • deleted file bp-themes/bp-legacy/buddypress-functions.php

    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress-functions.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress-functions.php	(revision 0)
    @@ -0,0 +1,1117 @@
    +<?php
    +
    +/**
    + * Functions of BuddyPress's Legacy theme
    + *
    + * @package BuddyPress
    + * @subpackage BP_Theme_Compat
    + * @since BuddyPress (1.7)
    + */
    +
    +// Exit if accessed directly
    +if ( !defined( 'ABSPATH' ) ) exit;
    +
    +/** Theme Setup ***************************************************************/
    +
    +if ( !class_exists( 'BP_Legacy' ) ) :
    +
    +/**
    + * Loads BuddyPress Legacy Theme functionality
    + *
    + * This is not a real theme by WordPress standards, and is instead used as the
    + * fallback for any WordPress theme that does not have BuddyPress templates in it.
    + *
    + * To make your custom theme BuddyPress compatible and customize the templates, you
    + * can copy these files into your theme without needing to merge anything
    + * together; BuddyPress should safely handle the rest.
    + *
    + * See @link BP_Theme_Compat() for more.
    + *
    + * @since BuddyPress (1.7)
    + *
    + * @package BuddyPress
    + * @subpackage BP_Theme_Compat
    + */
    +class BP_Legacy extends BP_Theme_Compat {
    +
    +	/** Functions *************************************************************/
    +
    +	/**
    +	 * The main BuddyPress (Legacy) Loader
    +	 *
    +	 * @since BuddyPress (1.7)
    +	 *
    +	 * @uses BP_Legacy::setup_globals()
    +	 * @uses BP_Legacy::setup_actions()
    +	 */
    +	public function __construct() {
    +
    +		// Bail if parent/child themes are bp-default
    +		if ( in_array( 'bp-default', array( get_template(), get_stylesheet() ) ) )
    +			return;
    +
    +		$this->setup_globals();
    +		$this->setup_actions();
    +	}
    +
    +	/**
    +	 * Component global variables
    +	 *
    +	 * Note that this function is currently commented out in the constructor.
    +	 * It will only be used if you copy this file into your current theme and
    +	 * uncomment the line above.
    +	 *
    +	 * You'll want to customize the values in here, so they match whatever your
    +	 * needs are.
    +	 *
    +	 * @since BuddyPress (1.7)
    +	 * @access private
    +	 */
    +	private function setup_globals() {
    +		$bp            = buddypress();
    +		$this->id      = 'legacy';
    +		$this->name    = __( 'BuddyPress Legacy', 'buddypress' );
    +		$this->version = bp_get_version();
    +		$this->dir     = trailingslashit( $bp->theme_compat_dir . '/bp-legacy' );
    +		$this->url     = trailingslashit( $bp->theme_compat_url . '/bp-legacy' );
    +	}
    +
    +	/**
    +	 * Setup the theme hooks
    +	 *
    +	 * @since BuddyPress (1.7)
    +	 * @access private
    +	 *
    +	 * @uses add_filter() To add various filters
    +	 * @uses add_action() To add various actions
    +	 */
    +	private function setup_actions() {
    +
    +		/** Scripts ***********************************************************/
    +
    +		add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_styles'   ) ); // Enqueue theme CSS
    +		add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_scripts'  ) ); // Enqueue theme JS
    +		add_filter( 'bp_enqueue_scripts', array( $this, 'localize_scripts' ) ); // Enqueue theme script localization
    +		add_action( 'bp_head',            array( $this, 'head_scripts'     ) ); // Output some extra JS in the <head>
    +
    +		/** Ajax **************************************************************/
    +
    +		$actions = array(
    +
    +			// Directory filters
    +			'blogs_filter'    => 'bp_legacy_theme_object_template_loader',
    +			'forums_filter'   => 'bp_legacy_theme_object_template_loader',
    +			'groups_filter'   => 'bp_legacy_theme_object_template_loader',
    +			'members_filter'  => 'bp_legacy_theme_object_template_loader',
    +			'messages_filter' => 'bp_legacy_theme_messages_template_loader',
    +
    +			// Friends
    +			'accept_friendship' => 'bp_legacy_theme_ajax_accept_friendship',
    +			'addremove_friend'  => 'bp_legacy_theme_ajax_addremove_friend',
    +			'reject_friendship' => 'bp_legacy_theme_ajax_reject_friendship',
    +
    +			// Activity
    +			'activity_get_older_updates'  => 'bp_legacy_theme_activity_template_loader',
    +			'activity_mark_fav'           => 'bp_legacy_theme_mark_activity_favorite',
    +			'activity_mark_unfav'         => 'bp_legacy_theme_unmark_activity_favorite',
    +			'activity_widget_filter'      => 'bp_legacy_theme_activity_template_loader',
    +			'delete_activity'             => 'bp_legacy_theme_delete_activity',
    +			'delete_activity_comment'     => 'bp_legacy_theme_delete_activity_comment',
    +			'get_single_activity_content' => 'bp_legacy_theme_get_single_activity_content',
    +			'new_activity_comment'        => 'bp_legacy_theme_new_activity_comment',
    +			'post_update'                 => 'bp_legacy_theme_post_update',
    +			'bp_spam_activity'            => 'bp_legacy_theme_spam_activity',
    +			'bp_spam_activity_comment'    => 'bp_legacy_theme_spam_activity',
    +
    +			// Groups
    +			'groups_invite_user' => 'bp_legacy_theme_ajax_invite_user',
    +			'joinleave_group'    => 'bp_legacy_theme_ajax_joinleave_group',
    +
    +			// Messages
    +			'messages_autocomplete_results' => 'bp_legacy_theme_ajax_messages_autocomplete_results',
    +			'messages_close_notice'         => 'bp_legacy_theme_ajax_close_notice',
    +			'messages_delete'               => 'bp_legacy_theme_ajax_messages_delete',
    +			'messages_markread'             => 'bp_legacy_theme_ajax_message_markread',
    +			'messages_markunread'           => 'bp_legacy_theme_ajax_message_markunread',
    +			'messages_send_reply'           => 'bp_legacy_theme_ajax_messages_send_reply',
    +		);
    +
    +		/**
    +		 * Register all of these AJAX handlers
    +		 *
    +		 * The "wp_ajax_" action is used for logged in users, and "wp_ajax_nopriv_"
    +		 * executes for users that aren't logged in. This is for backpat with BP <1.6.
    +		 */
    +		foreach( $actions as $name => $function ) {
    +			add_action( 'wp_ajax_'        . $name, $function );
    +			add_action( 'wp_ajax_nopriv_' . $name, $function );
    +		}
    +
    +		add_filter( 'bp_ajax_querystring', 'bp_legacy_theme_ajax_querystring', 10, 2 );
    +
    +		/** Override **********************************************************/
    +
    +		do_action_ref_array( 'bp_theme_compat_actions', array( &$this ) );
    +	}
    +
    +	/**
    +	 * Load the theme CSS
    +	 *
    +	 * @since BuddyPress (1.7)
    +	 *
    +	 * @uses wp_enqueue_style() To enqueue the styles
    +	 */
    +	public function enqueue_styles() {
    +
    +		// LTR or RTL
    +		$file = is_rtl() ? 'css/buddypress-rtl.css' : 'css/buddypress.css';
    +
    +		// Check child theme
    +		if ( file_exists( trailingslashit( get_stylesheet_directory() ) . $file ) ) {
    +			$location = trailingslashit( get_stylesheet_directory_uri() );
    +			$handle   = 'bp-child-css';
    +
    +		// Check parent theme
    +		} elseif ( file_exists( trailingslashit( get_template_directory() ) . $file ) ) {
    +			$location = trailingslashit( get_template_directory_uri() );
    +			$handle   = 'bp-parent-css';
    +
    +		// BuddyPress Theme Compatibility
    +		} else {
    +			$location = trailingslashit( $this->url );
    +			$handle   = 'bp-legacy-css';
    +		}
    +
    +		// Enqueue the BuddyPress styling
    +		wp_enqueue_style( $handle, $location . $file, array(), $this->version, 'screen' );
    +	}
    +
    +	/**
    +	 * Enqueue the required Javascript files
    +	 *
    +	 * @since BuddyPress (1.7)
    +	 */
    +	public function enqueue_scripts() {
    +
    +		// LTR or RTL
    +		$file = 'js/buddypress.js';
    +
    +		// Check child theme
    +		if ( file_exists( trailingslashit( get_stylesheet_directory() ) . $file ) ) {
    +			$location = trailingslashit( get_stylesheet_directory_uri() );
    +			$handle   = 'bp-child-js';
    +
    +		// Check parent theme
    +		} elseif ( file_exists( trailingslashit( get_template_directory() ) . $file ) ) {
    +			$location = trailingslashit( get_template_directory_uri() );
    +			$handle   = 'bp-parent-js';
    +
    +		// BuddyPress Theme Compatibility
    +		} else {
    +			$location = trailingslashit( $this->url );
    +			$handle   = 'bp-legacy-js';
    +		}
    +
    +		// Enqueue the global JS - Ajax will not work without it
    +		wp_enqueue_script( $handle, $location . $file, array( 'jquery' ), $this->version );
    +
    +		// Add words that we need to use in JS to the end of the page so they can be translated and still used.
    +		$params = array(
    +			'my_favs'           => __( 'My Favorites', 'buddypress' ),
    +			'accepted'          => __( 'Accepted', 'buddypress' ),
    +			'rejected'          => __( 'Rejected', 'buddypress' ),
    +			'show_all_comments' => __( 'Show all comments for this thread', 'buddypress' ),
    +			'show_all'          => __( 'Show all', 'buddypress' ),
    +			'comments'          => __( 'comments', 'buddypress' ),
    +			'close'             => __( 'Close', 'buddypress' ),
    +			'view'              => __( 'View', 'buddypress' ),
    +			'mark_as_fav'	    => __( 'Favorite', 'buddypress' ),
    +			'remove_fav'	    => __( 'Remove Favorite', 'buddypress' )
    +		);
    +		wp_localize_script( $handle, 'BP_DTheme', $params );
    +
    +		// Maybe enqueue comment reply JS
    +		if ( is_singular() && bp_is_blog_page() && get_option( 'thread_comments' ) ) {
    +			wp_enqueue_script( 'comment-reply' );
    +		}
    +	}
    +
    +	/**
    +	 * Put some scripts in the header, like AJAX url for wp-lists
    +	 *
    +	 * @since BuddyPress (1.7)
    +	 */
    +	public function head_scripts() {
    +	?>
    +
    +		<script type="text/javascript" charset="utf-8">
    +			/* <![CDATA[ */
    +			var ajaxurl = '<?php echo admin_url( 'admin-ajax.php' ); ?>';
    +			/* ]]> */
    +		</script>
    +
    +	<?php
    +	}
    +
    +	/**
    +	 * Load localizations for topic script
    +	 *
    +	 * These localizations require information that may not be loaded even by init.
    +	 *
    +	 * @since BuddyPress (1.7)
    +	 */
    +	public function localize_scripts() {
    +
    +	}
    +}
    +new BP_Legacy();
    +endif;
    +
    +/**
    + * This function looks scarier than it actually is. :)
    + * Each object loop (activity/members/groups/blogs/forums) contains default
    + * parameters to show specific information based on the page we are currently
    + * looking at.
    + *
    + * The following function will take into account any cookies set in the JS and
    + * allow us to override the parameters sent. That way we can change the results
    + * returned without reloading the page.
    + *
    + * By using cookies we can also make sure that user settings are retained
    + * across page loads.
    + *
    + * @return string Query string for the component loops
    + * @since BuddyPress (1.2)
    + */
    +function bp_legacy_theme_ajax_querystring( $query_string, $object ) {
    +	if ( empty( $object ) )
    +		return '';
    +
    +	// Set up the cookies passed on this AJAX request. Store a local var to avoid conflicts
    +	if ( ! empty( $_POST['cookie'] ) )
    +		$_BP_COOKIE = wp_parse_args( str_replace( '; ', '&', urldecode( $_POST['cookie'] ) ) );
    +	else
    +		$_BP_COOKIE = &$_COOKIE;
    +
    +	$qs = array();
    +
    +	/**
    +	 * Check if any cookie values are set. If there are then override the
    +	 * default params passed to the template loop.
    +	 */
    +
    +	// Activity stream filtering on action
    +	if ( ! empty( $_BP_COOKIE['bp-' . $object . '-filter'] ) && '-1' != $_BP_COOKIE['bp-' . $object . '-filter'] ) {
    +		$qs[] = 'type='   . $_BP_COOKIE['bp-' . $object . '-filter'];
    +		$qs[] = 'action=' . $_BP_COOKIE['bp-' . $object . '-filter'];
    +	}
    +
    +	if ( ! empty( $_BP_COOKIE['bp-' . $object . '-scope'] ) ) {
    +		if ( 'personal' == $_BP_COOKIE['bp-' . $object . '-scope'] ) {
    +			$user_id = ( bp_displayed_user_id() ) ? bp_displayed_user_id() : bp_loggedin_user_id();
    +			$qs[] = 'user_id=' . $user_id;
    +		}
    +
    +		// Activity stream scope only on activity directory.
    +		if ( 'all' != $_BP_COOKIE['bp-' . $object . '-scope'] && ! bp_displayed_user_id() && ! bp_is_single_item() )
    +			$qs[] = 'scope=' . $_BP_COOKIE['bp-' . $object . '-scope'];
    +	}
    +
    +	// If page and search_terms have been passed via the AJAX post request, use those.
    +	if ( ! empty( $_POST['page'] ) && '-1' != $_POST['page'] )
    +		$qs[] = 'page=' . $_POST['page'];
    +
    +	$object_search_text = bp_get_search_default_text( $object );
    + 	if ( ! empty( $_POST['search_terms'] ) && $object_search_text != $_POST['search_terms'] && 'false' != $_POST['search_terms'] && 'undefined' != $_POST['search_terms'] )
    +		$qs[] = 'search_terms=' . $_POST['search_terms'];
    +
    +	// Now pass the querystring to override default values.
    +	$query_string = empty( $qs ) ? '' : join( '&', (array) $qs );
    +
    +	$object_filter = '';
    +	if ( isset( $_BP_COOKIE['bp-' . $object . '-filter'] ) )
    +		$object_filter = $_BP_COOKIE['bp-' . $object . '-filter'];
    +
    +	$object_scope = '';
    +	if ( isset( $_BP_COOKIE['bp-' . $object . '-scope'] ) )
    +		$object_scope = $_BP_COOKIE['bp-' . $object . '-scope'];
    +
    +	$object_page = '';
    +	if ( isset( $_BP_COOKIE['bp-' . $object . '-page'] ) )
    +		$object_page = $_BP_COOKIE['bp-' . $object . '-page'];
    +
    +	$object_search_terms = '';
    +	if ( isset( $_BP_COOKIE['bp-' . $object . '-search-terms'] ) )
    +		$object_search_terms = $_BP_COOKIE['bp-' . $object . '-search-terms'];
    +
    +	$object_extras = '';
    +	if ( isset( $_BP_COOKIE['bp-' . $object . '-extras'] ) )
    +		$object_extras = $_BP_COOKIE['bp-' . $object . '-extras'];
    +
    +	return apply_filters( 'bp_legacy_theme_ajax_querystring', $query_string, $object, $object_filter, $object_scope, $object_page, $object_search_terms, $object_extras );
    +}
    +
    +/**
    + * Load the template loop for the current object.
    + *
    + * @return string Prints template loop for the specified object
    + * @since BuddyPress (1.2)
    + */
    +function bp_legacy_theme_object_template_loader() {
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    + 	/**
    +	 * AJAX requests happen too early to be seen by bp_update_is_directory()
    +	 * so we do it manually here to ensure templates load with the correct
    +	 * context. Without this check, templates will load the 'single' version
    +	 * of themselves rather than the directory version.
    +	 */
    +
    +	if ( ! bp_current_action() )
    +		bp_update_is_directory( true, bp_current_component() );
    +
    +	// Sanitize the post object
    +	$object = esc_attr( $_POST['object'] );
    +
    +	// Locate the object template
    +	bp_get_template_part( "$object/$object-loop" );
    +	exit();
    +}
    +
    +/**
    + * Load messages template loop when searched on the private message page
    + *
    + * @return string Prints template loop for the Messages component
    + * @since BuddyPress (1.6)
    + */
    +function bp_legacy_theme_messages_template_loader() {
    +	bp_get_template_part( 'members/single/messages/messages-loop' );
    +	exit();
    +}
    +
    +/**
    + * Load the activity loop template when activity is requested via AJAX,
    + *
    + * @return string JSON object containing 'contents' (output of the template loop
    + * for the Activity component) and 'feed_url' (URL to the relevant RSS feed).
    + *
    + * @since BuddyPress (1.2)
    + */
    +function bp_legacy_theme_activity_template_loader() {
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    +	$scope = '';
    +	if ( ! empty( $_POST['scope'] ) )
    +		$scope = $_POST['scope'];
    +
    +	// We need to calculate and return the feed URL for each scope
    +	switch ( $scope ) {
    +		case 'friends':
    +			$feed_url = bp_loggedin_user_domain() . bp_get_activity_slug() . '/friends/feed/';
    +			break;
    +		case 'groups':
    +			$feed_url = bp_loggedin_user_domain() . bp_get_activity_slug() . '/groups/feed/';
    +			break;
    +		case 'favorites':
    +			$feed_url = bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/feed/';
    +			break;
    +		case 'mentions':
    +			$feed_url = bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/feed/';
    +			bp_activity_clear_new_mentions( bp_loggedin_user_id() );
    +			break;
    +		default:
    +			$feed_url = home_url( bp_get_activity_root_slug() . '/feed/' );
    +			break;
    +	}
    +
    +	// Buffer the loop in the template to a var for JS to spit out.
    +	ob_start();
    +	bp_get_template_part( 'activity/activity-loop' );
    +	$result['contents'] = ob_get_contents();
    +	$result['feed_url'] = apply_filters( 'bp_legacy_theme_activity_feed_url', $feed_url, $scope );
    +	ob_end_clean();
    +
    +	exit( json_encode( $result ) );
    +}
    +
    +/**
    + * Processes Activity updates received via a POST request.
    + *
    + * @return string HTML
    + * @since BuddyPress (1.2)
    + */
    +function bp_legacy_theme_post_update() {
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    +	// Check the nonce
    +	check_admin_referer( 'post_update', '_wpnonce_post_update' );
    +
    +	if ( ! is_user_logged_in() )
    +		exit( '-1' );
    +
    +	if ( empty( $_POST['content'] ) )
    +		exit( '-1<div id="message" class="error"><p>' . __( 'Please enter some content to post.', 'buddypress' ) . '</p></div>' );
    +
    +	$activity_id = 0;
    +	if ( empty( $_POST['object'] ) && bp_is_active( 'activity' ) ) {
    +		$activity_id = bp_activity_post_update( array( 'content' => $_POST['content'] ) );
    +
    +	} elseif ( $_POST['object'] == 'groups' ) {
    +		if ( ! empty( $_POST['item_id'] ) && bp_is_active( 'groups' ) )
    +			$activity_id = groups_post_update( array( 'content' => $_POST['content'], 'group_id' => $_POST['item_id'] ) );
    +
    +	} else {
    +		$activity_id = apply_filters( 'bp_activity_custom_update', $_POST['object'], $_POST['item_id'], $_POST['content'] );
    +	}
    +
    +	if ( empty( $activity_id ) )
    +		exit( '-1<div id="message" class="error"><p>' . __( 'There was a problem posting your update, please try again.', 'buddypress' ) . '</p></div>' );
    +
    +	if ( bp_has_activities ( 'include=' . $activity_id ) ) {
    +		while ( bp_activities() ) {
    +			bp_the_activity(); 
    +			bp_get_template_part( 'activity/entry' );
    +		}
    +	}
    +
    +	exit;
    +}
    +
    +/**
    + * Posts new Activity comments received via a POST request.
    + *
    + * @global BP_Activity_Template $activities_template
    + * @return string HTML
    + * @since BuddyPress (1.2)
    + */
    +function bp_legacy_theme_new_activity_comment() {
    +	global $activities_template;
    +
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    +	// Check the nonce
    +	check_admin_referer( 'new_activity_comment', '_wpnonce_new_activity_comment' );
    +
    +	if ( ! is_user_logged_in() )
    +		exit( '-1' );
    +
    +	if ( empty( $_POST['content'] ) )
    +		exit( '-1<div id="message" class="error"><p>' . __( 'Please do not leave the comment area blank.', 'buddypress' ) . '</p></div>' );
    +
    +	if ( empty( $_POST['form_id'] ) || empty( $_POST['comment_id'] ) || ! is_numeric( $_POST['form_id'] ) || ! is_numeric( $_POST['comment_id'] ) )
    +		exit( '-1<div id="message" class="error"><p>' . __( 'There was an error posting that reply, please try again.', 'buddypress' ) . '</p></div>' );
    +
    +	$comment_id = bp_activity_new_comment( array(
    +		'activity_id' => $_POST['form_id'],
    +		'content'     => $_POST['content'],
    +		'parent_id'   => $_POST['comment_id'],
    +	) );
    +
    +	if ( ! $comment_id )
    +		exit( '-1<div id="message" class="error"><p>' . __( 'There was an error posting that reply, please try again.', 'buddypress' ) . '</p></div>' );
    +
    +	// Load the new activity item into the $activities_template global
    +	bp_has_activities( 'display_comments=stream&hide_spam=false&include=' . $comment_id );
    +
    +	// Swap the current comment with the activity item we just loaded
    +	$activities_template->activity->id              = $activities_template->activities[0]->item_id;
    +	$activities_template->activity->current_comment = $activities_template->activities[0];
    +
    +	$template = bp_locate_template( 'activity/comment.php', false, false );
    +
    +	/**
    +	 * Backward compatibility. In older versions of BP, the markup was
    +	 * generated in the PHP instead of a template. This ensures that
    +	 * older themes (which are not children of bp-legacy and won't
    +	 * have the new template) will still work.
    +	 */
    +	if ( empty( $template ) )
    +		$template = "{buddypress()->theme_compat_dir}/bp-legacy/activity/comment.php";
    +
    +	bp_get_template_part( $template );
    +
    +	unset( $activities_template );
    +	exit;
    +}
    +
    +/**
    + * Deletes an Activity item received via a POST request.
    + *
    + * @return mixed String on error, void on success
    + * @since BuddyPress (1.2)
    + */ 
    +function bp_legacy_theme_delete_activity() {
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    +	// Check the nonce
    +	check_admin_referer( 'bp_activity_delete_link' );
    +
    +	if ( ! is_user_logged_in() )
    +		exit( '-1' );
    +
    +	if ( empty( $_POST['id'] ) || ! is_numeric( $_POST['id'] ) )
    +		exit( '-1' );
    +
    +	$activity = new BP_Activity_Activity( (int) $_POST['id'] );
    +
    +	// Check access
    +	if ( empty( $activity->user_id ) || ! bp_activity_user_can_delete( $activity ) )
    +		exit( '-1' );
    +
    +	// Call the action before the delete so plugins can still fetch information about it
    +	do_action( 'bp_activity_before_action_delete_activity', $activity->id, $activity->user_id );
    +
    +	if ( ! bp_activity_delete( array( 'id' => $activity->id, 'user_id' => $activity->user_id ) ) )
    +		exit( '-1<div id="message" class="error"><p>' . __( 'There was a problem when deleting. Please try again.', 'buddypress' ) . '</p></div>' );
    +
    +	do_action( 'bp_activity_action_delete_activity', $activity->id, $activity->user_id );
    +	exit;
    +}
    +
    +/**
    + * Deletes an Activity comment received via a POST request
    + *
    + * @return mixed String on error, void on success
    + * @since BuddyPress (1.2)
    + */
    +function bp_legacy_theme_delete_activity_comment() {
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    +	// Check the nonce
    +	check_admin_referer( 'bp_activity_delete_link' );
    +
    +	if ( ! is_user_logged_in() )
    +		exit( '-1' );
    +
    +	$comment = new BP_Activity_Activity( $_POST['id'] );
    +
    +	// Check access
    +	if ( ! bp_current_user_can( 'bp_moderate' ) && $comment->user_id != bp_loggedin_user_id() )
    +		exit( '-1' );
    +
    +	if ( empty( $_POST['id'] ) || ! is_numeric( $_POST['id'] ) )
    +		exit( '-1' );
    +
    +	// Call the action before the delete so plugins can still fetch information about it
    +	do_action( 'bp_activity_before_action_delete_activity', $_POST['id'], $comment->user_id );
    +
    +	if ( ! bp_activity_delete_comment( $comment->item_id, $comment->id ) )
    +		exit( '-1<div id="message" class="error"><p>' . __( 'There was a problem when deleting. Please try again.', 'buddypress' ) . '</p></div>' );
    +
    +	do_action( 'bp_activity_action_delete_activity', $_POST['id'], $comment->user_id );
    +	exit;
    +}
    +
    +/**
    + * AJAX spam an activity item or comment
    + *
    + * @global BuddyPress $bp The one true BuddyPress instance
    + * @return mixed String on error, void on success
    + * @since BuddyPress (1.6)
    + */
    +function bp_legacy_theme_spam_activity() {
    +	global $bp;
    +
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    +	// Check that user is logged in, Activity Streams are enabled, and Akismet is present.
    +	if ( ! is_user_logged_in() || ! bp_is_active( 'activity' ) || empty( $bp->activity->akismet ) )
    +		exit( '-1' );
    +
    +	// Check an item ID was passed
    +	if ( empty( $_POST['id'] ) || ! is_numeric( $_POST['id'] ) )
    +		exit( '-1' );
    +
    +	// Is the current user allowed to spam items?
    +	if ( ! bp_activity_user_can_mark_spam() )
    +		exit( '-1' );
    +
    +	// Load up the activity item
    +	$activity = new BP_Activity_Activity( (int) $_POST['id'] );
    +	if ( empty( $activity->component ) )
    +		exit( '-1' );
    +
    +	// Check nonce
    +	check_admin_referer( 'bp_activity_akismet_spam_' . $activity->id );
    +
    +	// Call an action before the spamming so plugins can modify things if they want to
    +	do_action( 'bp_activity_before_action_spam_activity', $activity->id, $activity );
    +
    +	// Mark as spam
    +	bp_activity_mark_as_spam( $activity );
    +	$activity->save();
    +
    +	do_action( 'bp_activity_action_spam_activity', $activity->id, $activity->user_id );
    +	exit;
    +}
    +
    +/**
    + * Mark an activity as a favourite via a POST request.
    + *
    + * @return string HTML
    + * @since BuddyPress (1.2)
    + */
    +function bp_legacy_theme_mark_activity_favorite() {
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    +	if ( bp_activity_add_user_favorite( $_POST['id'] ) )
    +		_e( 'Remove Favorite', 'buddypress' );
    +	else
    +		_e( 'Favorite', 'buddypress' );
    +
    +	exit;
    +}
    +
    +/**
    + * Un-favourite an activity via a POST request.
    + *
    + * @return string HTML
    + * @since BuddyPress (1.2)
    + */
    +function bp_legacy_theme_unmark_activity_favorite() {
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    +	if ( bp_activity_remove_user_favorite( $_POST['id'] ) )
    +		_e( 'Favorite', 'buddypress' );
    +	else
    +		_e( 'Remove Favorite', 'buddypress' );
    +
    +	exit;
    +}
    +
    +/**
    + * Fetches full an activity's full, non-excerpted content via a POST request.
    + * Used for the 'Read More' link on long activity items.
    + *
    + * @return string HTML
    + * @since BuddyPress (1.5)
    + */
    +function bp_legacy_theme_get_single_activity_content() {
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    +	$activity_array = bp_activity_get_specific( array(
    +		'activity_ids'     => $_POST['activity_id'],
    +		'display_comments' => 'stream'
    +	) );
    +
    +	$activity = ! empty( $activity_array['activities'][0] ) ? $activity_array['activities'][0] : false;
    +
    +	if ( empty( $activity ) )
    +		exit; // @todo: error?
    +
    +	do_action_ref_array( 'bp_legacy_theme_get_single_activity_content', array( &$activity ) );
    +
    +	// Activity content retrieved through AJAX should run through normal filters, but not be truncated
    +	remove_filter( 'bp_get_activity_content_body', 'bp_activity_truncate_entry', 5 );
    +	$content = apply_filters( 'bp_get_activity_content_body', $activity->content );
    +
    +	exit( $content );
    +}
    +
    +/**
    + * Invites a friend to join a group via a POST request.
    + *
    + * @return unknown
    + * @since BuddyPress (1.2)
    + * @todo Audit return types
    + */
    +function bp_legacy_theme_ajax_invite_user() {
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    +	check_ajax_referer( 'groups_invite_uninvite_user' );
    +
    +	if ( ! $_POST['friend_id'] || ! $_POST['friend_action'] || ! $_POST['group_id'] )
    +		return;
    +
    +	if ( ! bp_groups_user_can_send_invites( $_POST['group_id'] ) )
    +		return;
    +
    +	if ( ! friends_check_friendship( bp_loggedin_user_id(), $_POST['friend_id'] ) )
    +		return;
    +
    +	if ( 'invite' == $_POST['friend_action'] ) {
    +		if ( ! groups_invite_user( array( 'user_id' => $_POST['friend_id'], 'group_id' => $_POST['group_id'] ) ) )
    +			return;
    +
    +		$user = new BP_Core_User( $_POST['friend_id'] );
    +
    +		echo '<li id="uid-' . $user->id . '">';
    +		echo $user->avatar_thumb;
    +		echo '<h4>' . $user->user_link . '</h4>';
    +		echo '<span class="activity">' . esc_attr( $user->last_active ) . '</span>';
    +		echo '<div class="action">
    +				<a class="button remove" href="' . wp_nonce_url( bp_loggedin_user_domain() . bp_get_groups_slug() . '/' . $_POST['group_id'] . '/invites/remove/' . $user->id, 'groups_invite_uninvite_user' ) . '" id="uid-' . esc_attr( $user->id ) . '">' . __( 'Remove Invite', 'buddypress' ) . '</a>
    +			  </div>';
    +		echo '</li>';
    +		exit;
    +
    +	} elseif ( 'uninvite' == $_POST['friend_action'] ) {
    +		if ( ! groups_uninvite_user( $_POST['friend_id'], $_POST['group_id'] ) )
    +			return;
    +
    +		exit;
    +
    +	} else {
    +		return;
    +	}
    +}
    +
    +/**
    + * Friend/un-friend a user via a POST request.
    + *
    + * @return string HTML
    + * @since BuddyPress (1.2)
    + */
    +function bp_legacy_theme_ajax_addremove_friend() {
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    +	if ( 'is_friend' == BP_Friends_Friendship::check_is_friend( bp_loggedin_user_id(), $_POST['fid'] ) ) {
    +		check_ajax_referer( 'friends_remove_friend' );
    +
    +		if ( ! friends_remove_friend( bp_loggedin_user_id(), $_POST['fid'] ) )
    +			echo __( 'Friendship could not be canceled.', 'buddypress' );
    +		else
    +			echo '<a id="friend-' . $_POST['fid'] . '" class="add" rel="add" title="' . __( 'Add Friend', 'buddypress' ) . '" href="' . wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/add-friend/' . $_POST['fid'], 'friends_add_friend' ) . '">' . __( 'Add Friend', 'buddypress' ) . '</a>';
    +
    +	} elseif ( 'not_friends' == BP_Friends_Friendship::check_is_friend( bp_loggedin_user_id(), $_POST['fid'] ) ) {
    +		check_ajax_referer( 'friends_add_friend' );
    +
    +		if ( ! friends_add_friend( bp_loggedin_user_id(), $_POST['fid'] ) )
    +			echo __(' Friendship could not be requested.', 'buddypress' );
    +		else
    +			echo '<a id="friend-' . $_POST['fid'] . '" class="remove" rel="remove" title="' . __( 'Cancel Friendship Request', 'buddypress' ) . '" href="' . wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/cancel/' . (int) $_POST['fid'] . '/', 'friends_withdraw_friendship' ) . '" class="requested">' . __( 'Cancel Friendship Request', 'buddypress' ) . '</a>';
    +
    +	} elseif ( 'pending' == BP_Friends_Friendship::check_is_friend( bp_loggedin_user_id(), (int) $_POST['fid'] ) ) {		
    +		check_ajax_referer( 'friends_withdraw_friendship' );
    +
    +		if ( friends_withdraw_friendship( bp_loggedin_user_id(), (int) $_POST['fid'] ) )
    +			echo '<a id="friend-' . $_POST['fid'] . '" class="add" rel="add" title="' . __( 'Add Friend', 'buddypress' ) . '" href="' . wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/add-friend/' . $_POST['fid'], 'friends_add_friend' ) . '">' . __( 'Add Friend', 'buddypress' ) . '</a>';
    +		else
    +			echo __("Friendship request could not be cancelled.", 'buddypress');
    +
    +	} else {
    +		echo __( 'Request Pending', 'buddypress' );
    +	}
    +
    +	exit;
    +}
    +
    +/**
    + * Accept a user friendship request via a POST request.
    + *
    + * @return mixed String on error, void on success
    + * @since BuddyPress (1.2)
    + */
    +function bp_legacy_theme_ajax_accept_friendship() {
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    +	check_admin_referer( 'friends_accept_friendship' );
    +
    +	if ( ! friends_accept_friendship( $_POST['id'] ) )
    +		echo "-1<div id='message' class='error'><p>" . __( 'There was a problem accepting that request. Please try again.', 'buddypress' ) . '</p></div>';
    +
    +	exit;
    +}
    +
    +/**
    + * Reject a user friendship request via a POST request.
    + *
    + * @return mixed String on error, void on success
    + * @since BuddyPress (1.2)
    + */
    +function bp_legacy_theme_ajax_reject_friendship() {
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    +	check_admin_referer( 'friends_reject_friendship' );
    +
    +	if ( ! friends_reject_friendship( $_POST['id'] ) )
    +		echo "-1<div id='message' class='error'><p>" . __( 'There was a problem rejecting that request. Please try again.', 'buddypress' ) . '</p></div>';
    +
    +	exit;
    +}
    +
    +/**
    + * Join or leave a group when clicking the "join/leave" button via a POST request.
    + *
    + * @return string HTML
    + * @since BuddyPress (1.2)
    + */
    +function bp_legacy_theme_ajax_joinleave_group() {
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    +	if ( groups_is_user_banned( bp_loggedin_user_id(), $_POST['gid'] ) )
    +		return;
    +
    +	if ( ! $group = groups_get_group( array( 'group_id' => $_POST['gid'] ) ) )
    +		return;
    +
    +	if ( ! groups_is_user_member( bp_loggedin_user_id(), $group->id ) ) {
    +		if ( 'public' == $group->status ) {
    +			check_ajax_referer( 'groups_join_group' );
    +
    +			if ( ! groups_join_group( $group->id ) )
    +				_e( 'Error joining group', 'buddypress' );
    +			else
    +				echo '<a id="group-' . esc_attr( $group->id ) . '" class="leave-group" rel="leave" title="' . __( 'Leave Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>';
    +
    +		} elseif ( 'private' == $group->status ) {
    +			check_ajax_referer( 'groups_request_membership' );
    +
    +			if ( ! groups_send_membership_request( bp_loggedin_user_id(), $group->id ) )
    +				_e( 'Error requesting membership', 'buddypress' );
    +			else
    +				echo '<a id="group-' . esc_attr( $group->id ) . '" class="membership-requested" rel="membership-requested" title="' . __( 'Membership Requested', 'buddypress' ) . '" href="' . bp_get_group_permalink( $group ) . '">' . __( 'Membership Requested', 'buddypress' ) . '</a>';
    +		}
    +
    +	} else {
    +		check_ajax_referer( 'groups_leave_group' );
    +
    +		if ( ! groups_leave_group( $group->id ) )
    +			_e( 'Error leaving group', 'buddypress' );
    +		elseif ( 'public' == $group->status )
    +			echo '<a id="group-' . esc_attr( $group->id ) . '" class="join-group" rel="join" title="' . __( 'Join Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'join', 'groups_join_group' ) . '">' . __( 'Join Group', 'buddypress' ) . '</a>';
    +		elseif ( 'private' == $group->status )
    +			echo '<a id="group-' . esc_attr( $group->id ) . '" class="request-membership" rel="join" title="' . __( 'Request Membership', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'request-membership', 'groups_send_membership_request' ) . '">' . __( 'Request Membership', 'buddypress' ) . '</a>';
    +	}
    +
    +	exit;
    +}
    +
    +/**
    + * Close and keep closed site wide notices from an admin in the sidebar, via a POST request.
    + *
    + * @return mixed String on error, void on success
    + * @since BuddyPress (1.2)
    + */
    +function bp_legacy_theme_ajax_close_notice() {
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    +	if ( ! isset( $_POST['notice_id'] ) ) {
    +		echo "-1<div id='message' class='error'><p>" . __( 'There was a problem closing the notice.', 'buddypress' ) . '</p></div>';
    +
    +	} else {
    +		$user_id      = get_current_user_id();
    +		$notice_ids   = bp_get_user_meta( $user_id, 'closed_notices', true );
    +		$notice_ids[] = (int) $_POST['notice_id'];
    +
    +		bp_update_user_meta( $user_id, 'closed_notices', $notice_ids );
    +	}
    +
    +	exit;
    +}
    +
    +/**
    + * Send a private message reply to a thread via a POST request.
    + *
    + * @return string HTML
    + * @since BuddyPress (1.2)
    + */
    +function bp_legacy_theme_ajax_messages_send_reply() {
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    +	check_ajax_referer( 'messages_send_message' );
    +
    +	$result = messages_new_message( array( 'thread_id' => $_REQUEST['thread_id'], 'content' => $_REQUEST['content'] ) );
    +
    +	if ( $result ) { ?>
    +		<div class="message-box new-message">
    +			<div class="message-metadata">
    +				<?php do_action( 'bp_before_message_meta' ); ?>
    +				<?php echo bp_loggedin_user_avatar( 'type=thumb&width=30&height=30' ); ?>
    +
    +				<strong><a href="<?php echo bp_loggedin_user_domain(); ?>"><?php bp_loggedin_user_fullname(); ?></a> <span class="activity"><?php printf( __( 'Sent %s', 'buddypress' ), bp_core_time_since( bp_core_current_time() ) ); ?></span></strong>
    +
    +				<?php do_action( 'bp_after_message_meta' ); ?>
    +			</div>
    +
    +			<?php do_action( 'bp_before_message_content' ); ?>
    +
    +			<div class="message-content">
    +				<?php echo stripslashes( apply_filters( 'bp_get_the_thread_message_content', $_REQUEST['content'] ) ); ?>
    +			</div>
    +
    +			<?php do_action( 'bp_after_message_content' ); ?>
    +
    +			<div class="clear"></div>
    +		</div>
    +	<?php
    +	} else {
    +		echo "-1<div id='message' class='error'><p>" . __( 'There was a problem sending that reply. Please try again.', 'buddypress' ) . '</p></div>';
    +	}
    +
    +	exit;
    +}
    +
    +/**
    + * Mark a private message as unread in your inbox via a POST request.
    + *
    + * @return mixed String on error, void on success
    + * @since BuddyPress (1.2)
    + */
    +function bp_legacy_theme_ajax_message_markunread() {
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    +	if ( ! isset($_POST['thread_ids']) ) {
    +		echo "-1<div id='message' class='error'><p>" . __( 'There was a problem marking messages as unread.', 'buddypress' ) . '</p></div>';
    +
    +	} else {
    +		$thread_ids = explode( ',', $_POST['thread_ids'] );
    +
    +		for ( $i = 0, $count = count( $thread_ids ); $i < $count; ++$i ) {
    +			BP_Messages_Thread::mark_as_unread($thread_ids[$i]);
    +		}
    +	}
    +
    +	exit;
    +}
    +
    +/**
    + * Mark a private message as read in your inbox via a POST request.
    + *
    + * @return mixed String on error, void on success
    + * @since BuddyPress (1.2)
    + */
    +function bp_legacy_theme_ajax_message_markread() {
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    +	if ( ! isset($_POST['thread_ids']) ) {
    +		echo "-1<div id='message' class='error'><p>" . __('There was a problem marking messages as read.', 'buddypress' ) . '</p></div>';
    +
    +	} else {
    +		$thread_ids = explode( ',', $_POST['thread_ids'] );
    +
    +		for ( $i = 0, $count = count( $thread_ids ); $i < $count; ++$i ) {
    +			BP_Messages_Thread::mark_as_read($thread_ids[$i]);
    +		}
    +	}
    +
    +	exit;
    +}
    +
    +/**
    + * Delete a private message(s) in your inbox via a POST request.
    + *
    + * @return string HTML
    + * @since BuddyPress (1.2)
    + */
    +function bp_legacy_theme_ajax_messages_delete() {
    +	// Bail if not a POST action
    +	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    +		return;
    +
    +	if ( ! isset($_POST['thread_ids']) ) {
    +		echo "-1<div id='message' class='error'><p>" . __( 'There was a problem deleting messages.', 'buddypress' ) . '</p></div>';
    +
    +	} else {
    +		$thread_ids = explode( ',', $_POST['thread_ids'] );
    +
    +		for ( $i = 0, $count = count( $thread_ids ); $i < $count; ++$i )
    +			BP_Messages_Thread::delete($thread_ids[$i]);
    +
    +		_e( 'Messages deleted.', 'buddypress' );
    +	}
    +
    +	exit;
    +}
    +
    +/**
    + * AJAX handler for autocomplete. Displays friends only, unless BP_MESSAGES_AUTOCOMPLETE_ALL is defined.
    + *
    + * @global BuddyPress $bp The one true BuddyPress instance
    + * @return string HTML
    + * @since BuddyPress (1.2)
    + */
    +function bp_legacy_theme_ajax_messages_autocomplete_results() {
    +	global $bp;
    +
    +	// Include everyone in the autocomplete, or just friends?
    +	if ( bp_is_current_component( bp_get_messages_slug() ) )
    +		$autocomplete_all = $bp->messages->autocomplete_all;
    +
    +	$pag_page = 1;
    +	$limit    = $_GET['limit'] ? $_GET['limit'] : apply_filters( 'bp_autocomplete_max_results', 10 );
    +
    +	// Get the user ids based on the search terms
    +	if ( ! empty( $autocomplete_all ) ) {
    +		$users = BP_Core_User::search_users( $_GET['q'], $limit, $pag_page );
    +
    +		if ( ! empty( $users['users'] ) ) {
    +			// Build an array with the correct format
    +			$user_ids = array();
    +			foreach( $users['users'] as $user ) {
    +				if ( $user->id != bp_loggedin_user_id() )
    +					$user_ids[] = $user->id;
    +			}
    +
    +			$user_ids = apply_filters( 'bp_core_autocomplete_ids', $user_ids, $_GET['q'], $limit );
    +		}
    +
    +	} else {
    +		if ( bp_is_active( 'friends' ) ) {
    +			$users = friends_search_friends( $_GET['q'], bp_loggedin_user_id(), $limit, 1 );
    +
    +			// Keeping the bp_friends_autocomplete_list filter for backward compatibility
    +			$users = apply_filters( 'bp_friends_autocomplete_list', $users, $_GET['q'], $limit );
    +
    +			if ( ! empty( $users['friends'] ) )
    +				$user_ids = apply_filters( 'bp_friends_autocomplete_ids', $users['friends'], $_GET['q'], $limit );
    +		}
    +	}
    +
    +	if ( ! empty( $user_ids ) ) {
    +		foreach ( $user_ids as $user_id ) {
    +			$ud = get_userdata( $user_id );
    +			if ( ! $ud )
    +				continue;
    +
    +			if ( bp_is_username_compatibility_mode() )
    +				$username = $ud->user_login;
    +			else
    +				$username = $ud->user_nicename;
    +
    +			// Note that the final line break acts as a delimiter for the
    +			// autocomplete javascript and thus should not be removed
    +			echo '<span id="link-' . $username . '" href="' . bp_core_get_user_domain( $user_id ) . '"></span>' . bp_core_fetch_avatar( array( 'item_id' => $user_id, 'type' => 'thumb', 'width' => 15, 'height' => 15, 'alt' => $ud->display_name ) ) . ' &nbsp;' . bp_core_get_user_displayname( $user_id ) . ' (' . $username . ')' . "\n";
    +		}
    +	}
    +
    +	exit;
    +}
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/activity/activity-loop.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/activity/activity-loop.php	(revision 0)
    @@ -0,0 +1,53 @@
    +<?php do_action( 'bp_before_activity_loop' ); ?>
    +
    +<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
    +
    +	<?php /* Show pagination if JS is not enabled, since the "Load More" link will do nothing */ ?>
    +	<noscript>
    +		<div class="pagination">
    +			<div class="pag-count"><?php bp_activity_pagination_count(); ?></div>
    +			<div class="pagination-links"><?php bp_activity_pagination_links(); ?></div>
    +		</div>
    +	</noscript>
    +
    +	<?php if ( empty( $_POST['page'] ) ) : ?>
    +
    +		<ul id="activity-stream" class="activity-list item-list">
    +
    +	<?php endif; ?>
    +
    +	<?php while ( bp_activities() ) : bp_the_activity(); ?>
    +
    +		<?php bp_get_template_part( 'activity/entry' ); ?>
    +
    +	<?php endwhile; ?>
    +
    +	<?php if ( bp_activity_has_more_items() ) : ?>
    +
    +		<li class="load-more">
    +			<a href="#more"><?php _e( 'Load More', 'buddypress' ); ?></a>
    +		</li>
    +
    +	<?php endif; ?>
    +
    +	<?php if ( empty( $_POST['page'] ) ) : ?>
    +
    +		</ul>
    +
    +	<?php endif; ?>
    +
    +<?php else : ?>
    +
    +	<div id="message" class="info">
    +		<p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p>
    +	</div>
    +
    +<?php endif; ?>
    +
    +<?php do_action( 'bp_after_activity_loop' ); ?>
    +
    +<form action="" name="activity-loop-form" id="activity-loop-form" method="post">
    +
    +	<?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?>
    +
    +</form>
    \ No newline at end of file
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/activity/comment.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/activity/comment.php	(revision 0)
    @@ -0,0 +1,54 @@
    +<?php
    +
    +/**
    + * BuddyPress - Activity Stream Comment
    + *
    + * This template is used by bp_activity_comments() functions to show
    + * each activity.
    + *
    + * @package BuddyPress
    + * @subpackage bp-legacy
    + */
    +
    +?>
    +
    +<?php do_action( 'bp_before_activity_comment' ); ?>
    +
    +<li id="acomment-<?php bp_activity_comment_id(); ?>">
    +	<div class="acomment-avatar">
    +		<a href="<?php bp_activity_comment_user_link(); ?>">
    +			<?php bp_activity_avatar( 'type=thumb&user_id=' . bp_get_activity_comment_user_id() ); ?>
    +		</a>
    +	</div>
    +
    +	<div class="acomment-meta">
    +		<?php
    +		/* translators: 1: user profile link, 2: user name, 3: activity permalink, 4: activity timestamp */
    +		printf( __( '<a href="%1$s">%2$s</a> replied <a href="%3$s" class="activity-time-since"><span class="time-since">%4$s</span></a>', 'buddypress' ), bp_get_activity_comment_user_link(), bp_get_activity_comment_name(), bp_get_activity_thread_permalink(), bp_get_activity_comment_date_recorded() );
    +		?>
    +	</div>
    +
    +	<div class="acomment-content"><?php bp_activity_comment_content(); ?></div>
    +
    +	<div class="acomment-options">
    +
    +		<?php if ( is_user_logged_in() && bp_activity_can_comment_reply( bp_activity_current_comment() ) ) : ?>
    +
    +			<a href="#acomment-<?php bp_activity_comment_id(); ?>" class="acomment-reply bp-primary-action" id="acomment-reply-<?php bp_activity_id(); ?>-from-<?php bp_activity_comment_id(); ?>"><?php _e( 'Reply', 'buddypress' ); ?></a>
    +
    +		<?php endif; ?>
    +
    +		<?php if ( bp_activity_user_can_delete() ) : ?>
    +
    +			<a href="<?php bp_activity_comment_delete_link(); ?>" class="delete acomment-delete confirm bp-secondary-action" rel="nofollow"><?php _e( 'Delete', 'buddypress' ); ?></a>
    +
    +		<?php endif; ?>
    +
    +		<?php do_action( 'bp_activity_comment_options' ); ?>
    +
    +	</div>
    +
    +	<?php bp_activity_recurse_comments( bp_activity_current_comment() ); ?>
    +</li>
    +
    +<?php do_action( 'bp_after_activity_comment' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/activity/entry.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/activity/entry.php	(revision 0)
    @@ -0,0 +1,124 @@
    +<?php
    +
    +/**
    + * BuddyPress - Activity Stream (Single Item)
    + *
    + * This template is used by activity-loop.php and AJAX functions to show
    + * each activity.
    + *
    + * @package BuddyPress
    + * @subpackage bp-legacy
    + */
    +
    +?>
    +
    +<?php do_action( 'bp_before_activity_entry' ); ?>
    +
    +<li class="<?php bp_activity_css_class(); ?>" id="activity-<?php bp_activity_id(); ?>">
    +	<div class="activity-avatar">
    +		<a href="<?php bp_activity_user_link(); ?>">
    +
    +			<?php bp_activity_avatar(); ?>
    +
    +		</a>
    +	</div>
    +
    +	<div class="activity-content">
    +
    +		<div class="activity-header">
    +
    +			<?php bp_activity_action(); ?>
    +
    +		</div>
    +
    +		<?php if ( 'activity_comment' == bp_get_activity_type() ) : ?>
    +
    +			<div class="activity-inreplyto">
    +				<strong><?php _e( 'In reply to: ', 'buddypress' ); ?></strong><?php bp_activity_parent_content(); ?> <a href="<?php bp_activity_thread_permalink(); ?>" class="view" title="<?php _e( 'View Thread / Permalink', 'buddypress' ); ?>"><?php _e( 'View', 'buddypress' ); ?></a>
    +			</div>
    +
    +		<?php endif; ?>
    +
    +		<?php if ( bp_activity_has_content() ) : ?>
    +
    +			<div class="activity-inner">
    +
    +				<?php bp_activity_content_body(); ?>
    +
    +			</div>
    +
    +		<?php endif; ?>
    +
    +		<?php do_action( 'bp_activity_entry_content' ); ?>
    +
    +		<?php if ( is_user_logged_in() ) : ?>
    +
    +			<div class="activity-meta">
    +
    +				<?php if ( bp_activity_can_comment() ) : ?>
    +
    +					<a href="<?php bp_get_activity_comment_link(); ?>" class="button acomment-reply bp-primary-action" id="acomment-comment-<?php bp_activity_id(); ?>"><?php printf( __( 'Comment <span>%s</span>', 'buddypress' ), bp_activity_get_comment_count() ); ?></a>
    +
    +				<?php endif; ?>
    +
    +				<?php if ( bp_activity_can_favorite() ) : ?>
    +
    +					<?php if ( !bp_get_activity_is_favorite() ) : ?>
    +
    +						<a href="<?php bp_activity_favorite_link(); ?>" class="button fav bp-secondary-action" title="<?php esc_attr_e( 'Mark as Favorite', 'buddypress' ); ?>"><?php _e( 'Favorite', 'buddypress' ); ?></a>
    +
    +					<?php else : ?>
    +
    +						<a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action" title="<?php esc_attr_e( 'Remove Favorite', 'buddypress' ); ?>"><?php _e( 'Remove Favorite', 'buddypress' ); ?></a>
    +
    +					<?php endif; ?>
    +
    +				<?php endif; ?>
    +
    +				<?php if ( bp_activity_user_can_delete() ) bp_activity_delete_link(); ?>
    +
    +				<?php do_action( 'bp_activity_entry_meta' ); ?>
    +
    +			</div>
    +
    +		<?php endif; ?>
    +
    +	</div>
    +
    +	<?php do_action( 'bp_before_activity_entry_comments' ); ?>
    +
    +	<?php if ( ( is_user_logged_in() && bp_activity_can_comment() ) || bp_activity_get_comment_count() ) : ?>
    +
    +		<div class="activity-comments">
    +
    +			<?php bp_activity_comments(); ?>
    +
    +			<?php if ( is_user_logged_in() ) : ?>
    +
    +				<form action="<?php bp_activity_comment_form_action(); ?>" method="post" id="ac-form-<?php bp_activity_id(); ?>" class="ac-form"<?php bp_activity_comment_form_nojs_display(); ?>>
    +					<div class="ac-reply-avatar"><?php bp_loggedin_user_avatar( 'width=' . BP_AVATAR_THUMB_WIDTH . '&height=' . BP_AVATAR_THUMB_HEIGHT ); ?></div>
    +					<div class="ac-reply-content">
    +						<div class="ac-textarea">
    +							<textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input" name="ac_input_<?php bp_activity_id(); ?>"></textarea>
    +						</div>
    +						<input type="submit" name="ac_form_submit" value="<?php _e( 'Post', 'buddypress' ); ?>" /> &nbsp; <?php _e( 'or press esc to cancel.', 'buddypress' ); ?>
    +						<input type="hidden" name="comment_form_id" value="<?php bp_activity_id(); ?>" />
    +					</div>
    +
    +					<?php do_action( 'bp_activity_entry_comments' ); ?>
    +
    +					<?php wp_nonce_field( 'new_activity_comment', '_wpnonce_new_activity_comment' ); ?>
    +
    +				</form>
    +
    +			<?php endif; ?>
    +
    +		</div>
    +
    +	<?php endif; ?>
    +
    +	<?php do_action( 'bp_after_activity_entry_comments' ); ?>
    +
    +</li>
    +
    +<?php do_action( 'bp_after_activity_entry' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/activity/index.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/activity/index.php	(revision 0)
    @@ -0,0 +1,129 @@
    +<?php do_action( 'bp_before_directory_activity' ); ?>
    +
    +<div id="buddypress">
    +
    +	<?php do_action( 'bp_before_directory_activity_content' ); ?>
    +
    +	<?php if ( is_user_logged_in() ) : ?>
    +
    +		<?php bp_get_template_part( 'activity/post-form' ); ?>
    +
    +	<?php endif; ?>
    +
    +	<?php do_action( 'template_notices' ); ?>
    +
    +	<div class="item-list-tabs activity-type-tabs" role="navigation">
    +		<ul>
    +			<?php do_action( 'bp_before_activity_type_tab_all' ); ?>
    +
    +			<li class="selected" id="activity-all"><a href="<?php bp_activity_directory_permalink(); ?>" title="<?php _e( 'The public activity for everyone on this site.', 'buddypress' ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'buddypress' ), bp_get_total_member_count() ); ?></a></li>
    +
    +			<?php if ( is_user_logged_in() ) : ?>
    +
    +				<?php do_action( 'bp_before_activity_type_tab_friends' ); ?>
    +
    +				<?php if ( bp_is_active( 'friends' ) ) : ?>
    +
    +					<?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    +
    +						<li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?>" title="<?php _e( 'The activity of my friends only.', 'buddypress' ); ?>"><?php printf( __( 'My Friends <span>%s</span>', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a></li>
    +
    +					<?php endif; ?>
    +
    +				<?php endif; ?>
    +
    +				<?php do_action( 'bp_before_activity_type_tab_groups' ); ?>
    +
    +				<?php if ( bp_is_active( 'groups' ) ) : ?>
    +
    +					<?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
    +
    +						<li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() . '/'; ?>" title="<?php _e( 'The activity of groups I am a member of.', 'buddypress' ); ?>"><?php printf( __( 'My Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
    +
    +					<?php endif; ?>
    +
    +				<?php endif; ?>
    +
    +				<?php do_action( 'bp_before_activity_type_tab_favorites' ); ?>
    +
    +				<?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?>
    +
    +					<li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/'; ?>" title="<?php _e( "The activity I've marked as a favorite.", 'buddypress' ); ?>"><?php printf( __( 'My Favorites <span>%s</span>', 'buddypress' ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
    +
    +				<?php endif; ?>
    +
    +				<?php do_action( 'bp_before_activity_type_tab_mentions' ); ?>
    +
    +				<li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/'; ?>" title="<?php _e( 'Activity that I have been mentioned in.', 'buddypress' ); ?>"><?php _e( 'Mentions', 'buddypress' ); ?><?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?> <strong><?php printf( __( '<span>%s new</span>', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ); ?></strong><?php endif; ?></a></li>
    +
    +			<?php endif; ?>
    +
    +			<?php do_action( 'bp_activity_type_tabs' ); ?>
    +		</ul>
    +	</div><!-- .item-list-tabs -->
    +
    +	<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    +		<ul>
    +			<li class="feed"><a href="<?php bp_sitewide_activity_feed_link(); ?>" title="<?php _e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ); ?></a></li>
    +
    +			<?php do_action( 'bp_activity_syndication_options' ); ?>
    +
    +			<li id="activity-filter-select" class="last">
    +				<label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label>
    +				<select id="activity-filter-by">
    +					<option value="-1"><?php _e( 'Everything', 'buddypress' ); ?></option>
    +					<option value="activity_update"><?php _e( 'Updates', 'buddypress' ); ?></option>
    +
    +					<?php if ( bp_is_active( 'blogs' ) ) : ?>
    +
    +						<option value="new_blog_post"><?php _e( 'Posts', 'buddypress' ); ?></option>
    +						<option value="new_blog_comment"><?php _e( 'Comments', 'buddypress' ); ?></option>
    +
    +					<?php endif; ?>
    +
    +					<?php if ( bp_is_active( 'forums' ) ) : ?>
    +
    +						<option value="new_forum_topic"><?php _e( 'Forum Topics', 'buddypress' ); ?></option>
    +						<option value="new_forum_post"><?php _e( 'Forum Replies', 'buddypress' ); ?></option>
    +
    +					<?php endif; ?>
    +
    +					<?php if ( bp_is_active( 'groups' ) ) : ?>
    +
    +						<option value="created_group"><?php _e( 'New Groups', 'buddypress' ); ?></option>
    +						<option value="joined_group"><?php _e( 'Group Memberships', 'buddypress' ); ?></option>
    +
    +					<?php endif; ?>
    +
    +					<?php if ( bp_is_active( 'friends' ) ) : ?>
    +
    +						<option value="friendship_accepted,friendship_created"><?php _e( 'Friendships', 'buddypress' ); ?></option>
    +
    +					<?php endif; ?>
    +
    +					<option value="new_member"><?php _e( 'New Members', 'buddypress' ); ?></option>
    +
    +					<?php do_action( 'bp_activity_filter_options' ); ?>
    +
    +				</select>
    +			</li>
    +		</ul>
    +	</div><!-- .item-list-tabs -->
    +
    +	<?php do_action( 'bp_before_directory_activity_list' ); ?>
    +
    +	<div class="activity" role="main">
    +
    +		<?php bp_get_template_part( 'activity/activity-loop' ); ?>
    +
    +	</div><!-- .activity -->
    +
    +	<?php do_action( 'bp_after_directory_activity_list' ); ?>
    +
    +	<?php do_action( 'bp_directory_activity_content' ); ?>
    +
    +	<?php do_action( 'bp_after_directory_activity_content' ); ?>
    +
    +	<?php do_action( 'bp_after_directory_activity' ); ?>
    +
    +</div>
    \ No newline at end of file
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/activity/post-form.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/activity/post-form.php	(revision 0)
    @@ -0,0 +1,68 @@
    +<?php
    +
    +/**
    + * BuddyPress - Activity Post Form
    + *
    + * @package BuddyPress
    + * @subpackage bp-legacy
    + */
    +
    +?>
    +
    +<form action="<?php bp_activity_post_form_action(); ?>" method="post" id="whats-new-form" name="whats-new-form" role="complementary">
    +
    +	<?php do_action( 'bp_before_activity_post_form' ); ?>
    +
    +	<div id="whats-new-avatar">
    +		<a href="<?php echo bp_loggedin_user_domain(); ?>">
    +			<?php bp_loggedin_user_avatar( 'width=' . bp_core_avatar_thumb_width() . '&height=' . bp_core_avatar_thumb_height() ); ?>
    +		</a>
    +	</div>
    +
    +	<div id="whats-new-content">
    +		<div id="whats-new-textarea">
    +			<textarea name="whats-new" id="whats-new" cols="50" rows="10"><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_attr( $_GET['r'] ); ?> <?php endif; ?></textarea>
    +		</div>
    +
    +		<div id="whats-new-options">
    +			<div id="whats-new-submit">
    +				<input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="<?php _e( 'Post Update', 'buddypress' ); ?>" />
    +			</div>
    +
    +			<?php if ( bp_is_active( 'groups' ) && !bp_is_my_profile() && !bp_is_group() ) : ?>
    +
    +				<div id="whats-new-post-in-box">
    +
    +					<?php _e( 'Post in', 'buddypress' ); ?>:
    +
    +					<select id="whats-new-post-in" name="whats-new-post-in">
    +						<option selected="selected" value="0"><?php _e( 'My Profile', 'buddypress' ); ?></option>
    +
    +						<?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100&populate_extras=0' ) ) :
    +							while ( bp_groups() ) : bp_the_group(); ?>
    +
    +								<option value="<?php bp_group_id(); ?>"><?php bp_group_name(); ?></option>
    +
    +							<?php endwhile;
    +						endif; ?>
    +
    +					</select>
    +				</div>
    +				<input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" />
    +
    +			<?php elseif ( bp_is_group_home() ) : ?>
    +
    +				<input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" />
    +				<input type="hidden" id="whats-new-post-in" name="whats-new-post-in" value="<?php bp_group_id(); ?>" />
    +
    +			<?php endif; ?>
    +
    +			<?php do_action( 'bp_activity_post_form_options' ); ?>
    +
    +		</div><!-- #whats-new-options -->
    +	</div><!-- #whats-new-content -->
    +
    +	<?php wp_nonce_field( 'post_update', '_wpnonce_post_update' ); ?>
    +	<?php do_action( 'bp_after_activity_post_form' ); ?>
    +
    +</form><!-- #whats-new-form -->
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/blogs/blogs-loop.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/blogs/blogs-loop.php	(revision 0)
    @@ -0,0 +1,95 @@
    +<?php
    +
    +/**
    + * BuddyPress - Blogs Loop
    + *
    + * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter()
    + *
    + * @package BuddyPress
    + * @subpackage bp-legacy
    + */
    +
    +?>
    +
    +<?php do_action( 'bp_before_blogs_loop' ); ?>
    +
    +<?php if ( bp_has_blogs( bp_ajax_querystring( 'blogs' ) ) ) : ?>
    +
    +	<div id="pag-top" class="pagination">
    +
    +		<div class="pag-count" id="blog-dir-count-top">
    +			<?php bp_blogs_pagination_count(); ?>
    +		</div>
    +
    +		<div class="pagination-links" id="blog-dir-pag-top">
    +			<?php bp_blogs_pagination_links(); ?>
    +		</div>
    +
    +	</div>
    +
    +	<?php do_action( 'bp_before_directory_blogs_list' ); ?>
    +
    +	<ul id="blogs-list" class="item-list" role="main">
    +
    +	<?php while ( bp_blogs() ) : bp_the_blog(); ?>
    +
    +		<li>
    +			<div class="item-avatar">
    +				<a href="<?php bp_blog_permalink(); ?>"><?php bp_blog_avatar( 'type=thumb' ); ?></a>
    +			</div>
    +
    +			<div class="item">
    +				<div class="item-title"><a href="<?php bp_blog_permalink(); ?>"><?php bp_blog_name(); ?></a></div>
    +				<div class="item-meta"><span class="activity"><?php bp_blog_last_active(); ?></span></div>
    +
    +				<?php do_action( 'bp_directory_blogs_item' ); ?>
    +			</div>
    +
    +			<div class="action">
    +
    +				<?php do_action( 'bp_directory_blogs_actions' ); ?>
    +
    +				<div class="meta">
    +
    +					<?php bp_blog_latest_post(); ?>
    +
    +				</div>
    +
    +			</div>
    +
    +			<div class="clear"></div>
    +		</li>
    +
    +	<?php endwhile; ?>
    +
    +	</ul>
    +
    +	<?php do_action( 'bp_after_directory_blogs_list' ); ?>
    +
    +	<?php bp_blog_hidden_fields(); ?>
    +
    +	<div id="pag-bottom" class="pagination">
    +
    +		<div class="pag-count" id="blog-dir-count-bottom">
    +
    +			<?php bp_blogs_pagination_count(); ?>
    +
    +		</div>
    +
    +		<div class="pagination-links" id="blog-dir-pag-bottom">
    +
    +			<?php bp_blogs_pagination_links(); ?>
    +
    +		</div>
    +
    +	</div>
    +
    +<?php else: ?>
    +
    +	<div id="message" class="info">
    +		<p><?php _e( 'Sorry, there were no sites found.', 'buddypress' ); ?></p>
    +	</div>
    +
    +<?php endif; ?>
    +
    +<?php do_action( 'bp_after_blogs_loop' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/blogs/create.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/blogs/create.php	(revision 0)
    @@ -0,0 +1,21 @@
    +<?php do_action( 'bp_before_create_blog_content_template' ); ?>
    +
    +<?php do_action( 'template_notices' ); ?>
    +
    +<?php do_action( 'bp_before_create_blog_content' ); ?>
    +
    +<?php if ( bp_blog_signup_enabled() ) : ?>
    +
    +	<?php bp_show_blog_signup_form(); ?>
    +
    +<?php else: ?>
    +
    +	<div id="message" class="info">
    +		<p><?php _e( 'Site registration is currently disabled', 'buddypress' ); ?></p>
    +	</div>
    +
    +<?php endif; ?>
    +
    +<?php do_action( 'bp_after_create_blog_content' ); ?>
    +
    +<?php do_action( 'bp_after_create_blog_content_template' ); ?>
    \ No newline at end of file
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/blogs/index.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/blogs/index.php	(revision 0)
    @@ -0,0 +1,65 @@
    +<?php do_action( 'bp_before_directory_blogs' ); ?>
    +
    +<div id="buddypress">
    +	<form action="" method="post" id="blogs-directory-form" class="dir-form">
    +
    +		<?php do_action( 'bp_before_directory_blogs_content' ); ?>
    +
    +		<div id="blog-dir-search" class="dir-search" role="search">
    +
    +			<?php bp_directory_blogs_search_form(); ?>
    +
    +		</div><!-- #blog-dir-search -->
    +
    +		<div class="item-list-tabs" role="navigation">
    +			<ul>
    +				<li class="selected" id="blogs-all"><a href="<?php bp_root_domain(); ?>/<?php bp_blogs_root_slug(); ?>"><?php printf( __( 'All Sites <span>%s</span>', 'buddypress' ), bp_get_total_blog_count() ); ?></a></li>
    +
    +				<?php if ( is_user_logged_in() && bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ) : ?>
    +
    +					<li id="blogs-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_blogs_slug(); ?>"><?php printf( __( 'My Sites <span>%s</span>', 'buddypress' ), bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
    +
    +				<?php endif; ?>
    +
    +				<?php do_action( 'bp_blogs_directory_blog_types' ); ?>
    +
    +			</ul>
    +		</div><!-- .item-list-tabs -->
    +
    +		<div class="item-list-tabs" id="subnav" role="navigation">
    +			<ul>
    +
    +				<?php do_action( 'bp_blogs_directory_blog_sub_types' ); ?>
    +
    +				<li id="blogs-order-select" class="last filter">
    +
    +					<label for="blogs-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
    +					<select id="blogs-order-by">
    +						<option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
    +						<option value="newest"><?php _e( 'Newest', 'buddypress' ); ?></option>
    +						<option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    +
    +						<?php do_action( 'bp_blogs_directory_order_options' ); ?>
    +
    +					</select>
    +				</li>
    +			</ul>
    +		</div>
    +
    +		<div id="blogs-dir-list" class="blogs dir-list">
    +
    +			<?php bp_get_template_part( 'blogs/blogs-loop' ); ?>
    +
    +		</div><!-- #blogs-dir-list -->
    +
    +		<?php do_action( 'bp_directory_blogs_content' ); ?>
    +
    +		<?php wp_nonce_field( 'directory_blogs', '_wpnonce-blogs-filter' ); ?>
    +
    +		<?php do_action( 'bp_after_directory_blogs_content' ); ?>
    +
    +	</form><!-- #blogs-directory-form -->
    +
    +	<?php do_action( 'bp_after_directory_blogs' ); ?>
    +
    +</div>
    \ No newline at end of file
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/forums/forums-loop.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/forums/forums-loop.php	(revision 0)
    @@ -0,0 +1,127 @@
    +<?php
    +
    +/**
    + * BuddyPress - Forums Loop
    + *
    + * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter()
    + *
    + * @package BuddyPress
    + * @subpackage bp-legacy
    + */
    +
    +?>
    +
    +<?php do_action( 'bp_before_forums_loop' ); ?>
    +
    +<?php if ( bp_has_forum_topics( bp_ajax_querystring( 'forums' ) ) ) : ?>
    +
    +	<div id="pag-top" class="pagination">
    +
    +		<div class="pag-count" id="topic-count-top">
    +
    +			<?php bp_forum_pagination_count(); ?>
    +
    +		</div>
    +
    +		<div class="pagination-links" id="topic-pag-top">
    +
    +			<?php bp_forum_pagination(); ?>
    +
    +		</div>
    +
    +	</div>
    +
    +	<?php do_action( 'bp_before_directory_forums_list' ); ?>
    +
    +	<table class="forum">
    +		<thead>
    +			<tr>
    +				<th id="th-title"><?php _e( 'Topic', 'buddypress' ); ?></th>
    +				<th id="th-postcount"><?php _e( 'Posts', 'buddypress' ); ?></th>
    +				<th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ); ?></th>
    +
    +				<?php do_action( 'bp_directory_forums_extra_cell_head' ); ?>
    +
    +			</tr>
    +		</thead>
    +
    +		<tbody>
    +
    +			<?php while ( bp_forum_topics() ) : bp_the_forum_topic(); ?>
    +
    +			<tr class="<?php bp_the_topic_css_class(); ?>">
    +				<td class="td-title">
    +					<a class="topic-title" href="<?php bp_the_topic_permalink(); ?>" title="<?php bp_the_topic_title(); ?> - <?php _e( 'Permalink', 'buddypress' ); ?>">
    +
    +						<?php bp_the_topic_title(); ?>
    +
    +					</a>
    +
    +					<p class="topic-meta">
    +						<span class="topic-by"><?php /* translators: "started by [poster] in [forum]" */ printf( __( 'Started by %1$s', 'buddypress' ), bp_get_the_topic_poster_avatar( 'height=20&width=20') . bp_get_the_topic_poster_name() ); ?></span>
    +
    +						<?php if ( !bp_is_group_forum() ) : ?>
    +
    +							<span class="topic-in">
    +
    +								<?php
    +									$topic_in = '<a href="' . bp_get_the_topic_object_permalink() . '">' . bp_get_the_topic_object_avatar( 'type=thumb&width=20&height=20' ) . '</a>' .
    +													'<a href="' . bp_get_the_topic_object_permalink() . '" title="' . bp_get_the_topic_object_name() . '">' . bp_get_the_topic_object_name() .'</a>';
    +
    +									/* translators: "started by [poster] in [forum]" */
    +									printf( __( 'in %1$s', 'buddypress' ), $topic_in );
    +								?>
    +
    +							</span>
    +
    +						<?php endif; ?>
    +
    +					</p>
    +				</td>
    +				<td class="td-postcount">
    +					<?php bp_the_topic_total_posts(); ?>
    +				</td>
    +				<td class="td-freshness">
    +					<span class="time-since"><?php bp_the_topic_time_since_last_post(); ?></span>
    +					<p class="topic-meta">
    +						<span class="freshness-author">
    +							<a href="<?php bp_the_topic_permalink(); ?>"><?php bp_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ); ?></a>
    +							<?php bp_the_topic_last_poster_name(); ?>
    +						</span>
    +					</p>
    +				</td>
    +
    +				<?php do_action( 'bp_directory_forums_extra_cell' ); ?>
    +
    +			</tr>
    +
    +			<?php do_action( 'bp_directory_forums_extra_row' ); ?>
    +
    +			<?php endwhile; ?>
    +
    +		</tbody>
    +	</table>
    +
    +	<?php do_action( 'bp_after_directory_forums_list' ); ?>
    +
    +	<div id="pag-bottom" class="pagination">
    +
    +		<div class="pag-count" id="topic-count-bottom">
    +			<?php bp_forum_pagination_count(); ?>
    +		</div>
    +
    +		<div class="pagination-links" id="topic-pag-bottom">
    +			<?php bp_forum_pagination(); ?>
    +		</div>
    +
    +	</div>
    +
    +<?php else: ?>
    +
    +	<div id="message" class="info">
    +		<p><?php _e( 'Sorry, there were no forum topics found.', 'buddypress' ); ?></p>
    +	</div>
    +
    +<?php endif; ?>
    +
    +<?php do_action( 'bp_after_forums_loop' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/forums/index.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/forums/index.php	(revision 0)
    @@ -0,0 +1,136 @@
    +<?php do_action( 'bp_before_directory_forums' ); ?>
    +
    +<form action="" method="post" id="forums-search-form" class="dir-form">
    +
    +	<?php do_action( 'bp_before_directory_forums_content' ); ?>
    +
    +	<div id="forums-dir-search" class="dir-search" role="search">
    +
    +		<?php bp_directory_forums_search_form(); ?>
    +
    +	</div>
    +</form>
    +
    +<?php do_action( 'bp_before_topics' ); ?>
    +
    +<form action="" method="post" id="forums-directory-form" class="dir-form">
    +
    +	<div class="item-list-tabs" role="navigation">
    +		<ul>
    +			<li class="selected" id="forums-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_forums_root_slug() ); ?>"><?php printf( __( 'All Topics <span>%s</span>', 'buddypress' ), bp_get_forum_topic_count() ); ?></a></li>
    +
    +			<?php if ( is_user_logged_in() && bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) : ?>
    +
    +				<li id="forums-personal"><a href="<?php echo trailingslashit( bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics' ); ?>"><?php printf( __( 'My Topics <span>%s</span>', 'buddypress' ), bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
    +
    +			<?php endif; ?>
    +
    +			<?php do_action( 'bp_forums_directory_group_types' ); ?>
    +
    +		</ul>
    +	</div>
    +
    +	<div class="item-list-tabs" id="subnav" role="navigation">
    +		<ul>
    +
    +			<?php do_action( 'bp_forums_directory_group_sub_types' ); ?>
    +
    +			<li id="forums-order-select" class="last filter">
    +
    +				<label for="forums-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
    +				<select id="forums-order-by">
    +					<option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
    +					<option value="popular"><?php _e( 'Most Posts', 'buddypress' ); ?></option>
    +					<option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ); ?></option>
    +
    +					<?php do_action( 'bp_forums_directory_order_options' ); ?>
    +
    +				</select>
    +			</li>
    +		</ul>
    +	</div>
    +
    +	<div id="forums-dir-list" class="forums dir-list" role="main">
    +
    +		<?php bp_get_template_part( 'forums/forums-loop' ); ?>
    +
    +	</div>
    +
    +	<?php do_action( 'bp_directory_forums_content' ); ?>
    +
    +	<?php wp_nonce_field( 'directory_forums', '_wpnonce-forums-filter' ); ?>
    +
    +</form>
    +
    +<?php do_action( 'bp_after_directory_forums' ); ?>
    +
    +<?php do_action( 'bp_before_new_topic_form' ); ?>
    +
    +<div id="new-topic-post">
    +
    +	<?php if ( is_user_logged_in() ) : ?>
    +
    +		<?php if ( bp_is_active( 'groups' ) && bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100' ) ) : ?>
    +
    +			<form action="" method="post" id="forum-topic-form" class="standard-form">
    +
    +				<?php do_action( 'groups_forum_new_topic_before' ); ?>
    +
    +				<a name="post-new"></a>
    +				<h5><?php _e( 'Create New Topic:', 'buddypress' ); ?></h5>
    +
    +				<?php do_action( 'template_notices' ); ?>
    +
    +				<label><?php _e( 'Title:', 'buddypress' ); ?></label>
    +				<input type="text" name="topic_title" id="topic_title" value="" maxlength="100" />
    +
    +				<label><?php _e( 'Content:', 'buddypress' ); ?></label>
    +				<textarea name="topic_text" id="topic_text"></textarea>
    +
    +				<label><?php _e( 'Tags (comma separated):', 'buddypress' ); ?></label>
    +				<input type="text" name="topic_tags" id="topic_tags" value="" />
    +
    +				<label><?php _e( 'Post In Group Forum:', 'buddypress' ); ?></label>
    +				<select id="topic_group_id" name="topic_group_id">
    +
    +					<option value=""><?php /* translators: no option picked in select box */ _e( '----', 'buddypress' ); ?></option>
    +
    +					<?php while ( bp_groups() ) : bp_the_group(); ?>
    +
    +						<?php if ( bp_group_is_forum_enabled() && ( bp_current_user_can( 'bp_moderate' ) || 'public' == bp_get_group_status() || bp_group_is_member() ) ) : ?>
    +
    +							<option value="<?php bp_group_id(); ?>"><?php bp_group_name(); ?></option>
    +
    +						<?php endif; ?>
    +
    +					<?php endwhile; ?>
    +
    +				</select><!-- #topic_group_id -->
    +
    +				<?php do_action( 'groups_forum_new_topic_after' ); ?>
    +
    +				<div class="submit">
    +					<input type="submit" name="submit_topic" id="submit" value="<?php _e( 'Post Topic', 'buddypress' ); ?>" />
    +					<input type="button" name="submit_topic_cancel" id="submit_topic_cancel" value="<?php _e( 'Cancel', 'buddypress' ); ?>" />
    +				</div>
    +
    +				<?php wp_nonce_field( 'bp_forums_new_topic' ); ?>
    +
    +			</form><!-- #forum-topic-form -->
    +
    +		<?php elseif ( bp_is_active( 'groups' ) ) : ?>
    +
    +			<div id="message" class="info">
    +
    +				<p><?php printf( __( "You are not a member of any groups so you don't have any group forums you can post in. To start posting, first find a group that matches the topic subject you'd like to start. If this group does not exist, why not <a href='%s'>create a new group</a>? Once you have joined or created the group you can post your topic in that group's forum.", 'buddypress' ), site_url( bp_get_groups_root_slug() . '/create/' ) ); ?></p>
    +
    +			</div>
    +
    +		<?php endif; ?>
    +
    +	<?php endif; ?>
    +</div><!-- #new-topic-post -->
    +
    +<?php do_action( 'bp_after_new_topic_form' ); ?>
    +
    +<?php do_action( 'bp_after_directory_forums_content' ); ?>
    \ No newline at end of file
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/groups/create.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/groups/create.php	(revision 0)
    @@ -0,0 +1,306 @@
    +<?php do_action( 'bp_before_create_group_page' ); ?>
    +
    +<div id="buddypress">
    +
    +	<?php do_action( 'bp_before_create_group_content_template' ); ?>
    +
    +	<form action="<?php bp_group_creation_form_action(); ?>" method="post" id="create-group-form" class="standard-form" enctype="multipart/form-data">
    +
    +		<?php do_action( 'bp_before_create_group' ); ?>
    +
    +		<div class="item-list-tabs no-ajax" id="group-create-tabs" role="navigation">
    +			<ul>
    +
    +				<?php bp_group_creation_tabs(); ?>
    +
    +			</ul>
    +		</div>
    +
    +		<?php do_action( 'template_notices' ); ?>
    +
    +		<div class="item-body" id="group-create-body">
    +
    +			<?php /* Group creation step 1: Basic group details */ ?>
    +			<?php if ( bp_is_group_creation_step( 'group-details' ) ) : ?>
    +
    +				<?php do_action( 'bp_before_group_details_creation_step' ); ?>
    +
    +				<div>
    +					<label for="group-name"><?php _e( 'Group Name (required)', 'buddypress' ); ?></label>
    +					<input type="text" name="group-name" id="group-name" aria-required="true" value="<?php bp_new_group_name(); ?>" />
    +				</div>
    +
    +				<div>
    +					<label for="group-desc"><?php _e( 'Group Description (required)', 'buddypress' ); ?></label>
    +					<textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_new_group_description(); ?></textarea>
    +				</div>
    +
    +				<?php
    +				do_action( 'bp_after_group_details_creation_step' );
    +				do_action( 'groups_custom_group_fields_editable' ); // @Deprecated
    +
    +				wp_nonce_field( 'groups_create_save_group-details' ); ?>
    +
    +			<?php endif; ?>
    +
    +			<?php /* Group creation step 2: Group settings */ ?>
    +			<?php if ( bp_is_group_creation_step( 'group-settings' ) ) : ?>
    +
    +				<?php do_action( 'bp_before_group_settings_creation_step' ); ?>
    +
    +				<h4><?php _e( 'Privacy Options', 'buddypress' ); ?></h4>
    +
    +				<div class="radio">
    +					<label><input type="radio" name="group-status" value="public"<?php if ( 'public' == bp_get_new_group_status() || !bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
    +						<strong><?php _e( 'This is a public group', 'buddypress' ); ?></strong>
    +						<ul>
    +							<li><?php _e( 'Any site member can join this group.', 'buddypress' ); ?></li>
    +							<li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
    +							<li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li>
    +						</ul>
    +					</label>
    +
    +					<label><input type="radio" name="group-status" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
    +						<strong><?php _e( 'This is a private group', 'buddypress' ); ?></strong>
    +						<ul>
    +							<li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ); ?></li>
    +							<li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
    +							<li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    +						</ul>
    +					</label>
    +
    +					<label><input type="radio" name="group-status" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
    +						<strong><?php _e('This is a hidden group', 'buddypress' ); ?></strong>
    +						<ul>
    +							<li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li>
    +							<li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>
    +							<li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    +						</ul>
    +					</label>
    +				</div>
    +
    +				<h4><?php _e( 'Group Invitations', 'buddypress' ); ?></h4>
    +
    +				<p><?php _e( 'Which members of this group are allowed to invite others?', 'buddypress' ); ?></p>
    +
    +				<div class="radio">
    +					<label>
    +						<input type="radio" name="group-invite-status" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> />
    +						<strong><?php _e( 'All group members', 'buddypress' ); ?></strong>
    +					</label>
    +
    +					<label>
    +						<input type="radio" name="group-invite-status" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> />
    +						<strong><?php _e( 'Group admins and mods only', 'buddypress' ); ?></strong>
    +					</label>
    +
    +					<label>
    +						<input type="radio" name="group-invite-status" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> />
    +						<strong><?php _e( 'Group admins only', 'buddypress' ); ?></strong>
    +					</label>
    +				</div>
    +
    +				<?php if ( bp_is_active( 'forums' ) ) : ?>
    +
    +					<h4><?php _e( 'Group Forums', 'buddypress' ); ?></h4>
    +
    +					<?php if ( bp_forums_is_installed_correctly() ) : ?>
    +
    +						<p><?php _e( 'Should this group have a forum?', 'buddypress' ); ?></p>
    +
    +						<div class="checkbox">
    +							<label><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php checked( bp_get_new_group_enable_forum(), true, true ); ?> /> <?php _e( 'Enable discussion forum', 'buddypress' ); ?></label>
    +						</div>
    +					<?php elseif ( is_super_admin() ) : ?>
    +
    +						<p><?php printf( __( '<strong>Attention Site Admin:</strong> Group forums require the <a href="%s">correct setup and configuration</a> of a bbPress installation.', 'buddypress' ), bp_core_do_network_admin() ? network_admin_url( 'settings.php?page=bb-forums-setup' ) :  admin_url( 'admin.php?page=bb-forums-setup' ) ); ?></p>
    +
    +					<?php endif; ?>
    +
    +				<?php endif; ?>
    +
    +				<?php do_action( 'bp_after_group_settings_creation_step' ); ?>
    +
    +				<?php wp_nonce_field( 'groups_create_save_group-settings' ); ?>
    +
    +			<?php endif; ?>
    +
    +			<?php /* Group creation step 3: Avatar Uploads */ ?>
    +			<?php if ( bp_is_group_creation_step( 'group-avatar' ) ) : ?>
    +
    +				<?php do_action( 'bp_before_group_avatar_creation_step' ); ?>
    +
    +				<?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?>
    +
    +					<div class="left-menu">
    +
    +						<?php bp_new_group_avatar(); ?>
    +
    +					</div><!-- .left-menu -->
    +
    +					<div class="main-column">
    +						<p><?php _e( "Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress' ); ?></p>
    +
    +						<p>
    +							<input type="file" name="file" id="file" />
    +							<input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ); ?>" />
    +							<input type="hidden" name="action" id="action" value="bp_avatar_upload" />
    +						</p>
    +
    +						<p><?php _e( 'To skip the avatar upload process, hit the "Next Step" button.', 'buddypress' ); ?></p>
    +					</div><!-- .main-column -->
    +
    +				<?php endif; ?>
    +
    +				<?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>
    +
    +					<h4><?php _e( 'Crop Group Avatar', 'buddypress' ); ?></h4>
    +
    +					<img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ); ?>" />
    +
    +					<div id="avatar-crop-pane">
    +						<img src="<?php bp_avatar_to_crop(); ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ); ?>" />
    +					</div>
    +
    +					<input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ); ?>" />
    +
    +					<input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src(); ?>" />
    +					<input type="hidden" name="upload" id="upload" />
    +					<input type="hidden" id="x" name="x" />
    +					<input type="hidden" id="y" name="y" />
    +					<input type="hidden" id="w" name="w" />
    +					<input type="hidden" id="h" name="h" />
    +
    +				<?php endif; ?>
    +
    +				<?php do_action( 'bp_after_group_avatar_creation_step' ); ?>
    +
    +				<?php wp_nonce_field( 'groups_create_save_group-avatar' ); ?>
    +
    +			<?php endif; ?>
    +
    +			<?php /* Group creation step 4: Invite friends to group */ ?>
    +			<?php if ( bp_is_group_creation_step( 'group-invites' ) ) : ?>
    +
    +				<?php do_action( 'bp_before_group_invites_creation_step' ); ?>
    +
    +				<?php if ( bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    +
    +					<div class="left-menu">
    +
    +						<div id="invite-list">
    +							<ul>
    +								<?php bp_new_group_invite_friend_list(); ?>
    +							</ul>
    +
    +							<?php wp_nonce_field( 'groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user' ); ?>
    +						</div>
    +
    +					</div><!-- .left-menu -->
    +
    +					<div class="main-column">
    +
    +						<div id="message" class="info">
    +							<p><?php _e('Select people to invite from your friends list.', 'buddypress' ); ?></p>
    +						</div>
    +
    +						<?php /* The ID 'friend-list' is important for AJAX support. */ ?>
    +						<ul id="friend-list" class="item-list" role="main">
    +
    +						<?php if ( bp_group_has_invites() ) : ?>
    +
    +							<?php while ( bp_group_invites() ) : bp_group_the_invite(); ?>
    +
    +								<li id="<?php bp_group_invite_item_id(); ?>">
    +
    +									<?php bp_group_invite_user_avatar(); ?>
    +
    +									<h4><?php bp_group_invite_user_link(); ?></h4>
    +									<span class="activity"><?php bp_group_invite_user_last_active(); ?></span>
    +
    +									<div class="action">
    +										<a class="remove" href="<?php bp_group_invite_user_remove_invite_url(); ?>" id="<?php bp_group_invite_item_id(); ?>"><?php _e( 'Remove Invite', 'buddypress' ); ?></a>
    +									</div>
    +								</li>
    +
    +							<?php endwhile; ?>
    +
    +							<?php wp_nonce_field( 'groups_send_invites', '_wpnonce_send_invites' ); ?>
    +
    +						<?php endif; ?>
    +
    +						</ul>
    +
    +					</div><!-- .main-column -->
    +
    +				<?php else : ?>
    +
    +					<div id="message" class="info">
    +						<p><?php _e( 'Once you have built up friend connections you will be able to invite others to your group. You can send invites any time in the future by selecting the "Send Invites" option when viewing your new group.', 'buddypress' ); ?></p>
    +					</div>
    +
    +				<?php endif; ?>
    +
    +				<?php wp_nonce_field( 'groups_create_save_group-invites' ); ?>
    +
    +				<?php do_action( 'bp_after_group_invites_creation_step' ); ?>
    +
    +			<?php endif; ?>
    +
    +			<?php do_action( 'groups_custom_create_steps' ); // Allow plugins to add custom group creation steps ?>
    +
    +			<?php do_action( 'bp_before_group_creation_step_buttons' ); ?>
    +
    +			<?php if ( 'crop-image' != bp_get_avatar_admin_step() ) : ?>
    +
    +				<div class="submit" id="previous-next">
    +
    +					<?php /* Previous Button */ ?>
    +					<?php if ( !bp_is_first_group_creation_step() ) : ?>
    +
    +						<input type="button" value="<?php _e( 'Back to Previous Step', 'buddypress' ); ?>" id="group-creation-previous" name="previous" onclick="location.href='<?php bp_group_creation_previous_link(); ?>'" />
    +
    +					<?php endif; ?>
    +
    +					<?php /* Next Button */ ?>
    +					<?php if ( !bp_is_last_group_creation_step() && !bp_is_first_group_creation_step() ) : ?>
    +
    +						<input type="submit" value="<?php _e( 'Next Step', 'buddypress' ); ?>" id="group-creation-next" name="save" />
    +
    +					<?php endif;?>
    +
    +					<?php /* Create Button */ ?>
    +					<?php if ( bp_is_first_group_creation_step() ) : ?>
    +
    +						<input type="submit" value="<?php _e( 'Create Group and Continue', 'buddypress' ); ?>" id="group-creation-create" name="save" />
    +
    +					<?php endif; ?>
    +
    +					<?php /* Finish Button */ ?>
    +					<?php if ( bp_is_last_group_creation_step() ) : ?>
    +
    +						<input type="submit" value="<?php _e( 'Finish', 'buddypress' ); ?>" id="group-creation-finish" name="save" />
    +
    +					<?php endif; ?>
    +				</div>
    +
    +			<?php endif;?>
    +
    +			<?php do_action( 'bp_after_group_creation_step_buttons' ); ?>
    +
    +			<?php /* Don't leave out this hidden field */ ?>
    +			<input type="hidden" name="group_id" id="group_id" value="<?php bp_new_group_id(); ?>" />
    +
    +			<?php do_action( 'bp_directory_groups_content' ); ?>
    +
    +		</div><!-- .item-body -->
    +
    +		<?php do_action( 'bp_after_create_group' ); ?>
    +
    +	</form>
    +
    +	<?php do_action( 'bp_after_create_group_content_template' ); ?>
    +
    +</div>
    +
    +<?php do_action( 'bp_after_create_group_page' ); ?>
    \ No newline at end of file
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/groups/groups-loop.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/groups/groups-loop.php	(revision 0)
    @@ -0,0 +1,100 @@
    +<?php
    +
    +/**
    + * BuddyPress - Groups Loop
    + *
    + * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter()
    + *
    + * @package BuddyPress
    + * @subpackage bp-legacy
    + */
    +
    +?>
    +
    +<?php do_action( 'bp_before_groups_loop' ); ?>
    +
    +<?php if ( bp_has_groups( bp_ajax_querystring( 'groups' ) ) ) : ?>
    +
    +	<div id="pag-top" class="pagination">
    +
    +		<div class="pag-count" id="group-dir-count-top">
    +
    +			<?php bp_groups_pagination_count(); ?>
    +
    +		</div>
    +
    +		<div class="pagination-links" id="group-dir-pag-top">
    +
    +			<?php bp_groups_pagination_links(); ?>
    +
    +		</div>
    +
    +	</div>
    +
    +	<?php do_action( 'bp_before_directory_groups_list' ); ?>
    +
    +	<ul id="groups-list" class="item-list" role="main">
    +
    +	<?php while ( bp_groups() ) : bp_the_group(); ?>
    +
    +		<li>
    +			<div class="item-avatar">
    +				<a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ); ?></a>
    +			</div>
    +
    +			<div class="item">
    +				<div class="item-title"><a href="<?php bp_group_permalink(); ?>"><?php bp_group_name(); ?></a></div>
    +				<div class="item-meta"><span class="activity"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span></div>
    +
    +				<div class="item-desc"><?php bp_group_description_excerpt(); ?></div>
    +
    +				<?php do_action( 'bp_directory_groups_item' ); ?>
    +
    +			</div>
    +
    +			<div class="action">
    +
    +				<?php do_action( 'bp_directory_groups_actions' ); ?>
    +
    +				<div class="meta">
    +
    +					<?php bp_group_type(); ?> / <?php bp_group_member_count(); ?>
    +
    +				</div>
    +
    +			</div>
    +
    +			<div class="clear"></div>
    +		</li>
    +
    +	<?php endwhile; ?>
    +
    +	</ul>
    +
    +	<?php do_action( 'bp_after_directory_groups_list' ); ?>
    +
    +	<div id="pag-bottom" class="pagination">
    +
    +		<div class="pag-count" id="group-dir-count-bottom">
    +
    +			<?php bp_groups_pagination_count(); ?>
    +
    +		</div>
    +
    +		<div class="pagination-links" id="group-dir-pag-bottom">
    +
    +			<?php bp_groups_pagination_links(); ?>
    +
    +		</div>
    +
    +	</div>
    +
    +<?php else: ?>
    +
    +	<div id="message" class="info">
    +		<p><?php _e( 'There were no groups found.', 'buddypress' ); ?></p>
    +	</div>
    +
    +<?php endif; ?>
    +
    +<?php do_action( 'bp_after_groups_loop' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/groups/index.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/groups/index.php	(revision 0)
    @@ -0,0 +1,73 @@
    +<?php do_action( 'bp_before_directory_groups_page' ); ?>
    +
    +<div id="buddypress">
    +
    +	<?php do_action( 'bp_before_directory_groups' ); ?>
    +
    +	<form action="" method="post" id="groups-directory-form" class="dir-form">
    +
    +		<?php do_action( 'bp_before_directory_groups_content' ); ?>
    +
    +		<div id="group-dir-search" class="dir-search" role="search">
    +
    +			<?php bp_directory_groups_search_form(); ?>
    +
    +		</div><!-- #group-dir-search -->
    +
    +		<?php do_action( 'template_notices' ); ?>
    +
    +		<div class="item-list-tabs" role="navigation">
    +			<ul>
    +				<li class="selected" id="groups-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() ); ?>"><?php printf( __( 'All Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count() ); ?></a></li>
    +
    +				<?php if ( is_user_logged_in() && bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
    +
    +					<li id="groups-personal"><a href="<?php echo trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() . '/my-groups' ); ?>"><?php printf( __( 'My Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
    +
    +				<?php endif; ?>
    +
    +				<?php do_action( 'bp_groups_directory_group_filter' ); ?>
    +
    +			</ul>
    +		</div><!-- .item-list-tabs -->
    +
    +		<div class="item-list-tabs" id="subnav" role="navigation">
    +			<ul>
    +
    +				<?php do_action( 'bp_groups_directory_group_types' ); ?>
    +
    +				<li id="groups-order-select" class="last filter">
    +
    +					<label for="groups-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
    +					<select id="groups-order-by">
    +						<option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
    +						<option value="popular"><?php _e( 'Most Members', 'buddypress' ); ?></option>
    +						<option value="newest"><?php _e( 'Newly Created', 'buddypress' ); ?></option>
    +						<option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    +
    +						<?php do_action( 'bp_groups_directory_order_options' ); ?>
    +
    +					</select>
    +				</li>
    +			</ul>
    +		</div>
    +
    +		<div id="groups-dir-list" class="groups dir-list">
    +
    +			<?php bp_get_template_part( 'groups/groups-loop' ); ?>
    +
    +		</div><!-- #groups-dir-list -->
    +
    +		<?php do_action( 'bp_directory_groups_content' ); ?>
    +
    +		<?php wp_nonce_field( 'directory_groups', '_wpnonce-groups-filter' ); ?>
    +
    +		<?php do_action( 'bp_after_directory_groups_content' ); ?>
    +
    +	</form><!-- #groups-directory-form -->
    +
    +	<?php do_action( 'bp_after_directory_groups' ); ?>
    +
    +</div><!-- #buddypress -->
    +
    +<?php do_action( 'bp_after_directory_groups_page' ); ?>
    \ No newline at end of file
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/groups/single/activity.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/groups/single/activity.php	(revision 0)
    @@ -0,0 +1,43 @@
    +<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    +	<ul>
    +		<li class="feed"><a href="<?php bp_group_activity_feed_link(); ?>" title="<?php _e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ); ?></a></li>
    +
    +		<?php do_action( 'bp_group_activity_syndication_options' ); ?>
    +
    +		<li id="activity-filter-select" class="last">
    +			<label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label> 
    +			<select id="activity-filter-by">
    +				<option value="-1"><?php _e( 'Everything', 'buddypress' ); ?></option>
    +				<option value="activity_update"><?php _e( 'Updates', 'buddypress' ); ?></option>
    +
    +				<?php if ( bp_is_active( 'forums' ) ) : ?>
    +					<option value="new_forum_topic"><?php _e( 'Forum Topics', 'buddypress' ); ?></option>
    +					<option value="new_forum_post"><?php _e( 'Forum Replies', 'buddypress' ); ?></option>
    +				<?php endif; ?>
    +
    +				<option value="joined_group"><?php _e( 'Group Memberships', 'buddypress' ); ?></option>
    +
    +				<?php do_action( 'bp_group_activity_filter_options' ); ?>
    +			</select>
    +		</li>
    +	</ul>
    +</div><!-- .item-list-tabs -->
    +
    +<?php do_action( 'bp_before_group_activity_post_form' ); ?>
    +
    +<?php if ( is_user_logged_in() && bp_group_is_member() ) : ?>
    +
    +	<?php bp_get_template_part( 'activity/post-form' ); ?>
    +
    +<?php endif; ?>
    +
    +<?php do_action( 'bp_after_group_activity_post_form' ); ?>
    +<?php do_action( 'bp_before_group_activity_content' ); ?>
    +
    +<div class="activity single-group" role="main">
    +
    +	<?php bp_get_template_part( 'activity/activity-loop' ); ?>
    +
    +</div><!-- .activity.single-group -->
    +
    +<?php do_action( 'bp_after_group_activity_content' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/groups/single/admin.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/groups/single/admin.php	(revision 0)
    @@ -0,0 +1,373 @@
    +<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    +	<ul>
    +		<?php bp_group_admin_tabs(); ?>
    +	</ul>
    +</div><!-- .item-list-tabs -->
    +
    +<form action="<?php bp_group_admin_form_action(); ?>" name="group-settings-form" id="group-settings-form" class="standard-form" method="post" enctype="multipart/form-data" role="main">
    +
    +<?php do_action( 'bp_before_group_admin_content' ); ?>
    +
    +<?php /* Edit Group Details */ ?>
    +<?php if ( bp_is_group_admin_screen( 'edit-details' ) ) : ?>
    +
    +	<?php do_action( 'bp_before_group_details_admin' ); ?>
    +
    +	<label for="group-name"><?php _e( 'Group Name (required)', 'buddypress' ); ?></label>
    +	<input type="text" name="group-name" id="group-name" value="<?php bp_group_name(); ?>" aria-required="true" />
    +
    +	<label for="group-desc"><?php _e( 'Group Description (required)', 'buddypress' ); ?></label>
    +	<textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_group_description_editable(); ?></textarea>
    +
    +	<?php do_action( 'groups_custom_group_fields_editable' ); ?>
    +
    +	<p>
    +		<label for="group-notifiy-members"><?php _e( 'Notify group members of changes via email', 'buddypress' ); ?></label>
    +		<input type="radio" name="group-notify-members" value="1" /> <?php _e( 'Yes', 'buddypress' ); ?>&nbsp;
    +		<input type="radio" name="group-notify-members" value="0" checked="checked" /> <?php _e( 'No', 'buddypress' ); ?>&nbsp;
    +	</p>
    +
    +	<?php do_action( 'bp_after_group_details_admin' ); ?>
    +
    +	<p><input type="submit" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" id="save" name="save" /></p>
    +	<?php wp_nonce_field( 'groups_edit_group_details' ); ?>
    +
    +<?php endif; ?>
    +
    +<?php /* Manage Group Settings */ ?>
    +<?php if ( bp_is_group_admin_screen( 'group-settings' ) ) : ?>
    +
    +	<?php do_action( 'bp_before_group_settings_admin' ); ?>
    +
    +	<?php if ( bp_is_active( 'forums' ) ) : ?>
    +
    +		<?php if ( bp_forums_is_installed_correctly() ) : ?>
    +
    +			<div class="checkbox">
    +				<label><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php bp_group_show_forum_setting(); ?> /> <?php _e( 'Enable discussion forum', 'buddypress' ); ?></label>
    +			</div>
    +
    +			<hr />
    +
    +		<?php endif; ?>
    +
    +	<?php endif; ?>
    +
    +	<h4><?php _e( 'Privacy Options', 'buddypress' ); ?></h4>
    +
    +	<div class="radio">
    +		<label>
    +			<input type="radio" name="group-status" value="public"<?php bp_group_show_status_setting( 'public' ); ?> />
    +			<strong><?php _e( 'This is a public group', 'buddypress' ); ?></strong>
    +			<ul>
    +				<li><?php _e( 'Any site member can join this group.', 'buddypress' ); ?></li>
    +				<li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
    +				<li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li>
    +			</ul>
    +		</label>
    +
    +		<label>
    +			<input type="radio" name="group-status" value="private"<?php bp_group_show_status_setting( 'private' ); ?> />
    +			<strong><?php _e( 'This is a private group', 'buddypress' ); ?></strong>
    +			<ul>
    +				<li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ); ?></li>
    +				<li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
    +				<li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    +			</ul>
    +		</label>
    +
    +		<label>
    +			<input type="radio" name="group-status" value="hidden"<?php bp_group_show_status_setting( 'hidden' ); ?> />
    +			<strong><?php _e( 'This is a hidden group', 'buddypress' ); ?></strong>
    +			<ul>
    +				<li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li>
    +				<li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>
    +				<li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    +			</ul>
    +		</label>
    +	</div>
    +
    +	<hr /> 
    +	 
    +	<h4><?php _e( 'Group Invitations', 'buddypress' ); ?></h4> 
    +
    +	<p><?php _e( 'Which members of this group are allowed to invite others?', 'buddypress' ); ?></p> 
    +
    +	<div class="radio"> 
    +		<label> 
    +			<input type="radio" name="group-invite-status" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> /> 
    +			<strong><?php _e( 'All group members', 'buddypress' ); ?></strong> 
    +		</label> 
    +
    +		<label> 
    +			<input type="radio" name="group-invite-status" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> /> 
    +			<strong><?php _e( 'Group admins and mods only', 'buddypress' ); ?></strong> 
    +		</label>
    +		
    +		<label> 
    +			<input type="radio" name="group-invite-status" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> /> 
    +			<strong><?php _e( 'Group admins only', 'buddypress' ); ?></strong> 
    +		</label> 
    + 	</div> 
    +
    +	<hr /> 
    +
    +	<?php do_action( 'bp_after_group_settings_admin' ); ?>
    +
    +	<p><input type="submit" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" id="save" name="save" /></p>
    +	<?php wp_nonce_field( 'groups_edit_group_settings' ); ?>
    +
    +<?php endif; ?>
    +
    +<?php /* Group Avatar Settings */ ?>
    +<?php if ( bp_is_group_admin_screen( 'group-avatar' ) ) : ?>
    +
    +	<?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?>
    +
    +			<p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress' ); ?></p>
    +
    +			<p>
    +				<input type="file" name="file" id="file" />
    +				<input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ); ?>" />
    +				<input type="hidden" name="action" id="action" value="bp_avatar_upload" />
    +			</p>
    +
    +			<?php if ( bp_get_group_has_avatar() ) : ?>
    +
    +				<p><?php _e( "If you'd like to remove the existing avatar but not upload a new one, please use the delete avatar button.", 'buddypress' ); ?></p>
    +
    +				<?php bp_button( array( 'id' => 'delete_group_avatar', 'component' => 'groups', 'wrapper_id' => 'delete-group-avatar-button', 'link_class' => 'edit', 'link_href' => bp_get_group_avatar_delete_link(), 'link_title' => __( 'Delete Avatar', 'buddypress' ), 'link_text' => __( 'Delete Avatar', 'buddypress' ) ) ); ?>
    +
    +			<?php endif; ?>
    +
    +			<?php wp_nonce_field( 'bp_avatar_upload' ); ?>
    +
    +	<?php endif; ?>
    +
    +	<?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>
    +
    +		<h4><?php _e( 'Crop Avatar', 'buddypress' ); ?></h4>
    +
    +		<img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ); ?>" />
    +
    +		<div id="avatar-crop-pane">
    +			<img src="<?php bp_avatar_to_crop(); ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ); ?>" />
    +		</div>
    +
    +		<input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ); ?>" />
    +
    +		<input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src(); ?>" />
    +		<input type="hidden" id="x" name="x" />
    +		<input type="hidden" id="y" name="y" />
    +		<input type="hidden" id="w" name="w" />
    +		<input type="hidden" id="h" name="h" />
    +
    +		<?php wp_nonce_field( 'bp_avatar_cropstore' ); ?>
    +
    +	<?php endif; ?>
    +
    +<?php endif; ?>
    +
    +<?php /* Manage Group Members */ ?>
    +<?php if ( bp_is_group_admin_screen( 'manage-members' ) ) : ?>
    +
    +	<?php do_action( 'bp_before_group_manage_members_admin' ); ?>
    +	
    +	<div class="bp-widget">
    +		<h4><?php _e( 'Administrators', 'buddypress' ); ?></h4>
    +
    +		<?php if ( bp_has_members( '&include='. bp_group_admin_ids() ) ) : ?>
    +		
    +		<ul id="admins-list" class="item-list single-line">
    +			
    +			<?php while ( bp_members() ) : bp_the_member(); ?>
    +			<li>
    +				<?php echo bp_core_fetch_avatar( array( 'item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_member_name() ) ) ); ?>
    +				<h5>
    +					<a href="<?php bp_member_permalink(); ?>"> <?php bp_member_name(); ?></a>
    +					<?php if ( count( bp_group_admin_ids( false, 'array' ) ) > 1 ) : ?>
    +					<span class="small">
    +						<a class="button confirm admin-demote-to-member" href="<?php bp_group_member_demote_link( bp_get_member_user_id() ); ?>"><?php _e( 'Demote to Member', 'buddypress' ); ?></a>
    +					</span>			
    +					<?php endif; ?>
    +				</h5>		
    +			</li>
    +			<?php endwhile; ?>
    +		
    +		</ul>
    +		
    +		<?php endif; ?>
    +
    +	</div>
    +	
    +	<?php if ( bp_group_has_moderators() ) : ?>
    +		<div class="bp-widget">
    +			<h4><?php _e( 'Moderators', 'buddypress' ); ?></h4>		
    +			
    +			<?php if ( bp_has_members( '&include=' . bp_group_mod_ids() ) ) : ?>
    +				<ul id="mods-list" class="item-list single-line">
    +				
    +					<?php while ( bp_members() ) : bp_the_member(); ?>					
    +					<li>
    +						<?php echo bp_core_fetch_avatar( array( 'item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_member_name() ) ) ); ?>
    +						<h5>
    +							<a href="<?php bp_member_permalink(); ?>"> <?php bp_member_name(); ?></a>
    +							<span class="small">
    +								<a href="<?php bp_group_member_promote_admin_link( array( 'user_id' => bp_get_member_user_id() ) ); ?>" class="button confirm mod-promote-to-admin" title="<?php _e( 'Promote to Admin', 'buddypress' ); ?>"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a>
    +								<a class="button confirm mod-demote-to-member" href="<?php bp_group_member_demote_link( bp_get_member_user_id() ); ?>"><?php _e( 'Demote to Member', 'buddypress' ); ?></a>
    +							</span>		
    +						</h5>		
    +					</li>	
    +					<?php endwhile; ?>			
    +				
    +				</ul>
    +			
    +			<?php endif; ?>
    +		</div>
    +	<?php endif ?>
    +
    +
    +	<div class="bp-widget">
    +		<h4><?php _e("Members", "buddypress"); ?></h4>
    +
    +		<?php if ( bp_group_has_members( 'per_page=15&exclude_banned=false' ) ) : ?>
    +
    +			<?php if ( bp_group_member_needs_pagination() ) : ?>
    +
    +				<div class="pagination no-ajax">
    +
    +					<div id="member-count" class="pag-count">
    +						<?php bp_group_member_pagination_count(); ?>
    +					</div>
    +
    +					<div id="member-admin-pagination" class="pagination-links">
    +						<?php bp_group_member_admin_pagination(); ?>
    +					</div>
    +
    +				</div>
    +
    +			<?php endif; ?>
    +
    +			<ul id="members-list" class="item-list single-line">
    +				<?php while ( bp_group_members() ) : bp_group_the_member(); ?>
    +
    +					<li class="<?php bp_group_member_css_class(); ?>">
    +						<?php bp_group_member_avatar_mini(); ?>
    +
    +						<h5>
    +							<?php bp_group_member_link(); ?>
    +
    +							<?php if ( bp_get_group_member_is_banned() ) _e( '(banned)', 'buddypress' ); ?>
    +
    +							<span class="small">
    +
    +							<?php if ( bp_get_group_member_is_banned() ) : ?>
    +
    +								<a href="<?php bp_group_member_unban_link(); ?>" class="button confirm member-unban" title="<?php _e( 'Unban this member', 'buddypress' ); ?>"><?php _e( 'Remove Ban', 'buddypress' ); ?></a>
    +
    +							<?php else : ?>
    +
    +								<a href="<?php bp_group_member_ban_link(); ?>" class="button confirm member-ban" title="<?php _e( 'Kick and ban this member', 'buddypress' ); ?>"><?php _e( 'Kick &amp; Ban', 'buddypress' ); ?></a>
    +								<a href="<?php bp_group_member_promote_mod_link(); ?>" class="button confirm member-promote-to-mod" title="<?php _e( 'Promote to Mod', 'buddypress' ); ?>"><?php _e( 'Promote to Mod', 'buddypress' ); ?></a>
    +								<a href="<?php bp_group_member_promote_admin_link(); ?>" class="button confirm member-promote-to-admin" title="<?php _e( 'Promote to Admin', 'buddypress' ); ?>"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a>
    +
    +							<?php endif; ?>
    +
    +								<a href="<?php bp_group_member_remove_link(); ?>" class="button confirm" title="<?php _e( 'Remove this member', 'buddypress' ); ?>"><?php _e( 'Remove from group', 'buddypress' ); ?></a>
    +
    +								<?php do_action( 'bp_group_manage_members_admin_item' ); ?>
    +
    +							</span>
    +						</h5>
    +					</li>
    +
    +				<?php endwhile; ?>
    +			</ul>
    +
    +		<?php else: ?>
    +
    +			<div id="message" class="info">
    +				<p><?php _e( 'This group has no members.', 'buddypress' ); ?></p>
    +			</div>
    +
    +		<?php endif; ?>
    +
    +	</div>
    +
    +	<?php do_action( 'bp_after_group_manage_members_admin' ); ?>
    +
    +<?php endif; ?>
    +
    +<?php /* Manage Membership Requests */ ?>
    +<?php if ( bp_is_group_admin_screen( 'membership-requests' ) ) : ?>
    +
    +	<?php do_action( 'bp_before_group_membership_requests_admin' ); ?>
    +
    +	<?php if ( bp_group_has_membership_requests() ) : ?>
    +
    +		<ul id="request-list" class="item-list">
    +			<?php while ( bp_group_membership_requests() ) : bp_group_the_membership_request(); ?>
    +
    +				<li>
    +					<?php bp_group_request_user_avatar_thumb(); ?>
    +					<h4><?php bp_group_request_user_link(); ?> <span class="comments"><?php bp_group_request_comment(); ?></span></h4>
    +					<span class="activity"><?php bp_group_request_time_since_requested(); ?></span>
    +
    +					<?php do_action( 'bp_group_membership_requests_admin_item' ); ?>
    +
    +					<div class="action">
    +
    +						<?php bp_button( array( 'id' => 'group_membership_accept', 'component' => 'groups', 'wrapper_class' => 'accept', 'link_href' => bp_get_group_request_accept_link(), 'link_title' => __( 'Accept', 'buddypress' ), 'link_text' => __( 'Accept', 'buddypress' ) ) ); ?>
    +
    +						<?php bp_button( array( 'id' => 'group_membership_reject', 'component' => 'groups', 'wrapper_class' => 'reject', 'link_href' => bp_get_group_request_reject_link(), 'link_title' => __( 'Reject', 'buddypress' ), 'link_text' => __( 'Reject', 'buddypress' ) ) ); ?>
    +
    +						<?php do_action( 'bp_group_membership_requests_admin_item_action' ); ?>
    +
    +					</div>
    +				</li>
    +
    +			<?php endwhile; ?>
    +		</ul>
    +
    +	<?php else: ?>
    +
    +		<div id="message" class="info">
    +			<p><?php _e( 'There are no pending membership requests.', 'buddypress' ); ?></p>
    +		</div>
    +
    +	<?php endif; ?>
    +
    +	<?php do_action( 'bp_after_group_membership_requests_admin' ); ?>
    +
    +<?php endif; ?>
    +
    +<?php do_action( 'groups_custom_edit_steps' ) // Allow plugins to add custom group edit screens ?>
    +
    +<?php /* Delete Group Option */ ?>
    +<?php if ( bp_is_group_admin_screen( 'delete-group' ) ) : ?>
    +
    +	<?php do_action( 'bp_before_group_delete_admin' ); ?>
    +
    +	<div id="message" class="info">
    +		<p><?php _e( 'WARNING: Deleting this group will completely remove ALL content associated with it. There is no way back, please be careful with this option.', 'buddypress' ); ?></p>
    +	</div>
    +
    +	<label><input type="checkbox" name="delete-group-understand" id="delete-group-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-group-button').disabled = ''; } else { document.getElementById('delete-group-button').disabled = 'disabled'; }" /> <?php _e( 'I understand the consequences of deleting this group.', 'buddypress' ); ?></label>
    +
    +	<?php do_action( 'bp_after_group_delete_admin' ); ?>
    +
    +	<div class="submit">
    +		<input type="submit" disabled="disabled" value="<?php _e( 'Delete Group', 'buddypress' ); ?>" id="delete-group-button" name="delete-group-button" />
    +	</div>
    +
    +	<?php wp_nonce_field( 'groups_delete_group' ); ?>
    +
    +<?php endif; ?>
    +
    +<?php /* This is important, don't forget it */ ?>
    +	<input type="hidden" name="group-id" id="group-id" value="<?php bp_group_id(); ?>" />
    +
    +<?php do_action( 'bp_after_group_admin_content' ); ?>
    +
    +</form><!-- #group-settings-form -->
    +
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/groups/single/forum.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/groups/single/forum.php	(revision 0)
    @@ -0,0 +1,97 @@
    +<?php
    +
    +do_action( 'bp_before_group_forum_content' );
    +
    +if ( bp_is_group_forum_topic_edit() ) :
    +	bp_get_template_part( 'groups/single/forum/edit' );
    +
    +elseif ( bp_is_group_forum_topic() ) :
    +	bp_get_template_part( 'groups/single/forum/topic' );
    +
    +else : ?>
    +
    +	<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    +		<ul>
    +
    +			<?php if ( is_user_logged_in() ) : ?>
    +
    +				<li>
    +					<a href="#post-new" class="show-hide-new"><?php _e( 'New Topic', 'buddypress' ); ?></a>
    +				</li>
    +
    +			<?php endif; ?>
    +
    +			<?php if ( bp_forums_has_directory() ) : ?>
    +
    +				<li>
    +					<a href="<?php bp_forums_directory_permalink(); ?>"><?php _e( 'Forum Directory', 'buddypress' ); ?></a>
    +				</li>
    +
    +			<?php endif; ?>
    +
    +			<?php do_action( 'bp_forums_directory_group_sub_types' ); ?>
    +
    +			<li id="forums-order-select" class="last filter">
    +
    +				<label for="forums-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
    +				<select id="forums-order-by">
    +					<option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
    +					<option value="popular"><?php _e( 'Most Posts', 'buddypress' ); ?></option>
    +					<option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ); ?></option>
    +
    +					<?php do_action( 'bp_forums_directory_order_options' ); ?>
    +
    +				</select>
    +			</li>
    +		</ul>
    +	</div>
    +
    +	<div class="forums single-forum" role="main">
    +
    +		<?php bp_get_template_part( 'forums/forums-loop' ) ?>
    +
    +	</div><!-- .forums.single-forum -->
    +
    +<?php endif; ?>
    +
    +<?php do_action( 'bp_after_group_forum_content' ); ?>
    +
    +<?php if ( !bp_is_group_forum_topic_edit() && !bp_is_group_forum_topic() ) : ?>
    +
    +	<?php if ( !bp_group_is_user_banned() && ( ( is_user_logged_in() && 'public' == bp_get_group_status() ) || bp_group_is_member() ) ) : ?>
    +
    +		<form action="" method="post" id="forum-topic-form" class="standard-form">
    +			<div id="new-topic-post">
    +
    +				<?php do_action( 'bp_before_group_forum_post_new' ); ?>
    +
    +				<?php if ( bp_groups_auto_join() && !bp_group_is_member() ) : ?>
    +					<p><?php _e( 'You will auto join this group when you start a new topic.', 'buddypress' ); ?></p>
    +				<?php endif; ?>
    +
    +				<p id="post-new"></p>
    +				<h4><?php _e( 'Post a New Topic:', 'buddypress' ); ?></h4>
    +
    +				<label><?php _e( 'Title:', 'buddypress' ); ?></label>
    +				<input type="text" name="topic_title" id="topic_title" value="" maxlength="100" />
    +
    +				<label><?php _e( 'Content:', 'buddypress' ); ?></label>
    +				<textarea name="topic_text" id="topic_text"></textarea>
    +
    +				<label><?php _e( 'Tags (comma separated):', 'buddypress' ); ?></label>
    +				<input type="text" name="topic_tags" id="topic_tags" value="" />
    +
    +				<?php do_action( 'bp_after_group_forum_post_new' ); ?>
    +
    +				<div class="submit">
    +					<input type="submit" name="submit_topic" id="submit" value="<?php _e( 'Post Topic', 'buddypress' ); ?>" />
    +				</div>
    +
    +				<?php wp_nonce_field( 'bp_forums_new_topic' ); ?>
    +			</div><!-- #new-topic-post -->
    +		</form><!-- #forum-topic-form -->
    +
    +	<?php endif; ?>
    +
    +<?php endif; ?>
    +
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/groups/single/forum/edit.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/groups/single/forum/edit.php	(revision 0)
    @@ -0,0 +1,92 @@
    +<?php do_action( 'bp_before_group_forum_edit_form' ); ?>
    +
    +<?php if ( bp_has_forum_topic_posts() ) : ?>
    +
    +	<form action="<?php bp_forum_topic_action(); ?>" method="post" id="forum-topic-form" class="standard-form">
    +
    +		<div class="item-list-tabs" id="subnav" role="navigation">
    +			<ul>
    +				<li>
    +					<a href="#post-topic-reply"><?php _e( 'Reply', 'buddypress' ); ?></a>
    +				</li>
    +
    +				<?php if ( bp_forums_has_directory() ) : ?>
    +
    +					<li>
    +						<a href="<?php bp_forums_directory_permalink(); ?>"><?php _e( 'Forum Directory', 'buddypress' ); ?></a>
    +					</li>
    +
    +				<?php endif; ?>
    +
    +			</ul>
    +		</div>
    +
    +		<div id="topic-meta">
    +			<h3><?php _e( 'Edit:', 'buddypress' ); ?> <?php bp_the_topic_title(); ?> (<?php bp_the_topic_total_post_count(); ?>)</h3>
    +
    +			<?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?>
    +
    +				<div class="last admin-links">
    +
    +					<?php bp_the_topic_admin_links(); ?>
    +
    +				</div>
    +
    +			<?php endif; ?>
    +
    +			<?php do_action( 'bp_group_forum_topic_meta' ); ?>
    +
    +		</div>
    +
    +		<?php if ( bp_is_edit_topic() ) : ?>
    +
    +			<div id="edit-topic">
    +
    +				<?php do_action( 'bp_group_before_edit_forum_topic' ); ?>
    +
    +				<label for="topic_title"><?php _e( 'Title:', 'buddypress' ); ?></label>
    +				<input type="text" name="topic_title" id="topic_title" value="<?php bp_the_topic_title(); ?>" maxlength="100" />
    +
    +				<label for="topic_text"><?php _e( 'Content:', 'buddypress' ); ?></label>
    +				<textarea name="topic_text" id="topic_text"><?php bp_the_topic_text(); ?></textarea>
    +
    +				<label><?php _e( 'Tags (comma separated):', 'buddypress' ); ?></label>
    +				<input type="text" name="topic_tags" id="topic_tags" value="<?php bp_forum_topic_tag_list(); ?>" />
    +
    +				<?php do_action( 'bp_group_after_edit_forum_topic' ); ?>
    +
    +				<p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" /></p>
    +
    +				<?php wp_nonce_field( 'bp_forums_edit_topic' ); ?>
    +
    +			</div>
    +
    +		<?php else : ?>
    +
    +			<div id="edit-post">
    +
    +				<?php do_action( 'bp_group_before_edit_forum_post' ); ?>
    +
    +				<textarea name="post_text" id="post_text"><?php bp_the_topic_post_edit_text(); ?></textarea>
    +
    +				<?php do_action( 'bp_group_after_edit_forum_post' ); ?>
    +
    +				<p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" /></p>
    +
    +				<?php wp_nonce_field( 'bp_forums_edit_post' ); ?>
    +
    +			</div>
    +
    +		<?php endif; ?>
    +
    +	</form><!-- #forum-topic-form -->
    +
    +<?php else: ?>
    +
    +	<div id="message" class="info">
    +		<p><?php _e( 'This topic does not exist.', 'buddypress' ); ?></p>
    +	</div>
    +
    +<?php endif;?>
    +
    +<?php do_action( 'bp_after_group_forum_edit_form' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/groups/single/forum/topic.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/groups/single/forum/topic.php	(revision 0)
    @@ -0,0 +1,166 @@
    +<?php do_action( 'bp_before_group_forum_topic' ); ?>
    +
    +<form action="<?php bp_forum_topic_action(); ?>" method="post" id="forum-topic-form" class="standard-form">
    +	<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    +		<ul>
    +			<?php if ( is_user_logged_in() ) : ?>
    +	
    +				<li>
    +					<a href="<?php bp_forum_topic_new_reply_link(); ?>" class="new-reply-link"><?php _e( 'New Reply', 'buddypress' ); ?></a>
    +				</li>
    +	
    +			<?php endif; ?>
    +	
    +			<?php if ( bp_forums_has_directory() ) : ?>
    +	
    +				<li>
    +					<a href="<?php bp_forums_directory_permalink(); ?>"><?php _e( 'Forum Directory', 'buddypress' ); ?></a>
    +				</li>
    +	
    +			<?php endif; ?>
    +	
    +		</ul>
    +	</div>
    +	
    +	<div id="topic-meta">
    +		<h3><?php bp_the_topic_title(); ?> (<?php bp_the_topic_total_post_count(); ?>)</h3>
    +	
    +		<?php if ( bp_forum_topic_has_tags() ) : ?>
    +	
    +			<div class="topic-tags">
    +	
    +				<?php _e( 'Topic tags:', 'buddypress' ); ?> <?php bp_forum_topic_tag_list(); ?>
    +	
    +			</div>
    +	
    +		<?php endif; ?>
    +	
    +		<?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?>
    +	
    +			<div class="last admin-links">
    +	
    +				<?php bp_the_topic_admin_links(); ?>
    +	
    +			</div>
    +	
    +		<?php endif; ?>
    +	
    +		<?php do_action( 'bp_group_forum_topic_meta' ); ?>
    +	
    +	</div>
    +
    +
    +	<?php if ( bp_has_forum_topic_posts() ) : ?>
    +
    +		<div class="pagination no-ajax">
    +
    +			<div id="post-count-top" class="pag-count">
    +
    +				<?php bp_the_topic_pagination_count(); ?>
    +
    +			</div>
    +
    +			<div class="pagination-links" id="topic-pag-top">
    +
    +				<?php bp_the_topic_pagination(); ?>
    +
    +			</div>
    +
    +		</div>
    +
    +		<?php do_action( 'bp_before_group_forum_topic_posts' ); ?>
    +
    +		<ul id="topic-post-list" class="item-list" role="main">
    +			<?php while ( bp_forum_topic_posts() ) : bp_the_forum_topic_post(); ?>
    +
    +				<li id="post-<?php bp_the_topic_post_id(); ?>" class="<?php bp_the_topic_post_css_class(); ?>">
    +					<div class="poster-meta">
    +						<a href="<?php bp_the_topic_post_poster_link(); ?>">
    +							<?php bp_the_topic_post_poster_avatar( 'width=40&height=40' ); ?>
    +						</a>
    +						<?php echo sprintf( __( '%1$s said %2$s:', 'buddypress' ), bp_get_the_topic_post_poster_name(), bp_get_the_topic_post_time_since() ); ?>
    +					</div>
    +
    +					<div class="post-content">
    +						<?php bp_the_topic_post_content(); ?>
    +					</div>
    +
    +					<div class="admin-links">
    +						<?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_post_is_mine() ) : ?>
    +							<?php bp_the_topic_post_admin_links(); ?>
    +						<?php endif; ?>
    +
    +						<?php do_action( 'bp_group_forum_post_meta' ); ?>
    +
    +						<a href="#post-<?php bp_the_topic_post_id(); ?>" title="<?php _e( 'Permanent link to this post', 'buddypress' ); ?>">#</a>
    +					</div>
    +				</li>
    +
    +			<?php endwhile; ?>
    +		</ul><!-- #topic-post-list -->
    +
    +		<?php do_action( 'bp_after_group_forum_topic_posts' ); ?>
    +
    +		<div class="pagination no-ajax">
    +
    +			<div id="post-count-bottom" class="pag-count">
    +				<?php bp_the_topic_pagination_count(); ?>
    +			</div>
    +
    +			<div class="pagination-links" id="topic-pag-bottom">
    +				<?php bp_the_topic_pagination(); ?>
    +			</div>
    +
    +		</div>
    +
    +	<?php else: ?>
    +	
    +		<div id="message" class="info">
    +			<p><?php _e( 'There are no posts for this topic.', 'buddypress' ); ?></p>
    +		</div>
    +	
    +	<?php endif;?>
    +
    +	<?php if ( ( is_user_logged_in() && 'public' == bp_get_group_status() ) || bp_group_is_member() ) : ?>
    +
    +		<?php if ( bp_get_the_topic_is_last_page() ) : ?>
    +
    +			<?php if ( bp_get_the_topic_is_topic_open() && !bp_group_is_user_banned() ) : ?>
    +
    +				<div id="post-topic-reply">
    +					<p id="post-reply"></p>
    +
    +					<?php if ( bp_groups_auto_join() && !bp_group_is_member() ) : ?>
    +						<p><?php _e( 'You will auto join this group when you reply to this topic.', 'buddypress' ); ?></p>
    +					<?php endif; ?>
    +
    +					<?php do_action( 'groups_forum_new_reply_before' ); ?>
    +
    +					<h4><?php _e( 'Add a reply:', 'buddypress' ); ?></h4>
    +
    +					<textarea name="reply_text" id="reply_text"></textarea>
    +
    +					<div class="submit">
    +						<input type="submit" name="submit_reply" id="submit" value="<?php _e( 'Post Reply', 'buddypress' ); ?>" />
    +					</div>
    +
    +					<?php do_action( 'groups_forum_new_reply_after' ); ?>
    +
    +					<?php wp_nonce_field( 'bp_forums_new_reply' ); ?>
    +				</div>
    +
    +			<?php elseif ( !bp_group_is_user_banned() ) : ?>
    +
    +				<div id="message" class="info">
    +					<p><?php _e( 'This topic is closed, replies are no longer accepted.', 'buddypress' ); ?></p>
    +				</div>
    +
    +			<?php endif; ?>
    +
    +		<?php endif; ?>
    +
    +	<?php endif; ?>
    +
    +</form><!-- #forum-topic-form -->
    +
    +<?php do_action( 'bp_after_group_forum_topic' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/groups/single/group-header.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/groups/single/group-header.php	(revision 0)
    @@ -0,0 +1,64 @@
    +<?php
    +
    +do_action( 'bp_before_group_header' );
    +
    +?>
    +
    +<div id="item-actions">
    +
    +	<?php if ( bp_group_is_visible() ) : ?>
    +
    +		<h3><?php _e( 'Group Admins', 'buddypress' ); ?></h3>
    +
    +		<?php bp_group_list_admins();
    +
    +		do_action( 'bp_after_group_menu_admins' );
    +
    +		if ( bp_group_has_moderators() ) :
    +			do_action( 'bp_before_group_menu_mods' ); ?>
    +
    +			<h3><?php _e( 'Group Mods' , 'buddypress' ); ?></h3>
    +
    +			<?php bp_group_list_mods();
    +
    +			do_action( 'bp_after_group_menu_mods' );
    +
    +		endif;
    +
    +	endif; ?>
    +
    +</div><!-- #item-actions -->
    +
    +<div id="item-header-avatar">
    +	<a href="<?php bp_group_permalink(); ?>" title="<?php bp_group_name(); ?>">
    +
    +		<?php bp_group_avatar(); ?>
    +
    +	</a>
    +</div><!-- #item-header-avatar -->
    +
    +<div id="item-header-content">
    +	<h2><a href="<?php bp_group_permalink(); ?>" title="<?php bp_group_name(); ?>"><?php bp_group_name(); ?></a></h2>
    +	<span class="highlight"><?php bp_group_type(); ?></span> <span class="activity"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span>
    +
    +	<?php do_action( 'bp_before_group_header_meta' ); ?>
    +
    +	<div id="item-meta">
    +
    +		<?php bp_group_description(); ?>
    +
    +		<div id="item-buttons">
    +
    +			<?php do_action( 'bp_group_header_actions' ); ?>
    +
    +		</div><!-- #item-buttons -->
    +
    +		<?php do_action( 'bp_group_header_meta' ); ?>
    +
    +	</div>
    +</div><!-- #item-header-content -->
    +
    +<?php
    +do_action( 'bp_after_group_header' );
    +do_action( 'template_notices' );
    +?>
    \ No newline at end of file
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/groups/single/home.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/groups/single/home.php	(revision 0)
    @@ -0,0 +1,75 @@
    +<div id="buddypress">
    +
    +	<?php if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group(); ?>
    +
    +	<?php do_action( 'bp_before_group_home_content' ); ?>
    +
    +	<div id="item-header" role="complementary">
    +
    +		<?php bp_get_template_part( 'groups/single/group-header' ); ?>
    +
    +	</div><!-- #item-header -->
    +
    +	<div id="item-nav">
    +		<div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
    +			<ul>
    +
    +				<?php bp_get_options_nav(); ?>
    +
    +				<?php do_action( 'bp_group_options_nav' ); ?>
    +
    +			</ul>
    +		</div>
    +	</div><!-- #item-nav -->
    +
    +	<div id="item-body">
    +
    +		<?php do_action( 'bp_before_group_body' );
    +
    +		if ( bp_is_group_admin_page() && bp_group_is_visible() ) :
    +			bp_get_template_part( 'groups/single/admin' );
    +
    +		elseif ( bp_is_group_members() && bp_group_is_visible() ) :
    +			bp_get_template_part( 'groups/single/members' );
    +
    +		elseif ( bp_is_group_invites() && bp_group_is_visible() ) :
    +			bp_get_template_part( 'groups/single/send-invites' );
    +
    +		elseif ( bp_is_group_forum() && bp_group_is_visible() && bp_is_active( 'forums' ) && bp_forums_is_installed_correctly() ) :
    +			bp_get_template_part( 'groups/single/forum' );
    +
    +		elseif ( bp_is_group_membership_request() ) :
    +			bp_get_template_part( 'groups/single/request-membership' );
    +
    +		elseif ( bp_group_is_visible() && bp_is_active( 'activity' ) ) :
    +			bp_get_template_part( 'groups/single/activity' );
    +
    +		elseif ( bp_group_is_visible() ) :
    +			bp_get_template_part( 'groups/single/members' );
    +
    +		// The group is not visible, show the status message
    +		elseif ( !bp_group_is_visible() ) :
    +
    +			do_action( 'bp_before_group_status_message' ); ?>
    +
    +			<div id="message" class="info">
    +				<p><?php bp_group_status_message(); ?></p>
    +			</div>
    +
    +			<?php do_action( 'bp_after_group_status_message' );
    +
    +		// If nothing sticks, just load a group front template if one exists.
    +		else :
    +			bp_get_template_part( 'groups/single/plugins' );
    +
    +		endif;
    +
    +		do_action( 'bp_after_group_body' ); ?>
    +
    +	</div><!-- #item-body -->
    +
    +	<?php do_action( 'bp_after_group_home_content' ); ?>
    +
    +	<?php endwhile; endif; ?>
    +
    +</div><!-- #buddypress -->
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/groups/single/members.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/groups/single/members.php	(revision 0)
    @@ -0,0 +1,90 @@
    +<?php if ( bp_group_has_members( 'exclude_admins_mods=0' ) ) : ?>
    +
    +	<?php do_action( 'bp_before_group_members_content' ); ?>
    +
    +	<div class="item-list-tabs" id="subnav" role="navigation">
    +		<ul>
    +
    +			<?php do_action( 'bp_members_directory_member_sub_types' ); ?>
    +
    +		</ul>
    +	</div>
    +
    +	<div id="pag-top" class="pagination no-ajax">
    +
    +		<div class="pag-count" id="member-count-top">
    +
    +			<?php bp_members_pagination_count(); ?>
    +
    +		</div>
    +
    +		<div class="pagination-links" id="member-pag-top">
    +
    +			<?php bp_members_pagination_links(); ?>
    +
    +		</div>
    +
    +	</div>
    +
    +	<?php do_action( 'bp_before_group_members_list' ); ?>
    +
    +	<ul id="member-list" class="item-list" role="main">
    +
    +		<?php while ( bp_group_members() ) : bp_group_the_member(); ?>
    +
    +			<li>
    +				<a href="<?php bp_group_member_domain(); ?>">
    +
    +					<?php bp_group_member_avatar_thumb(); ?>
    +
    +				</a>
    +
    +				<h5><?php bp_group_member_link(); ?></h5>
    +				<span class="activity"><?php bp_group_member_joined_since(); ?></span>
    +
    +				<?php do_action( 'bp_group_members_list_item' ); ?>
    +
    +				<?php if ( bp_is_active( 'friends' ) ) : ?>
    +
    +					<div class="action">
    +
    +						<?php bp_add_friend_button( bp_get_group_member_id(), bp_get_group_member_is_friend() ); ?>
    +
    +						<?php do_action( 'bp_group_members_list_item_action' ); ?>
    +
    +					</div>
    +
    +				<?php endif; ?>
    +			</li>
    +
    +		<?php endwhile; ?>
    +
    +	</ul>
    +
    +	<?php do_action( 'bp_after_group_members_list' ); ?>
    +
    +	<div id="pag-bottom" class="pagination no-ajax">
    +
    +		<div class="pag-count" id="member-count-bottom">
    +
    +			<?php bp_members_pagination_count(); ?>
    +
    +		</div>
    +
    +		<div class="pagination-links" id="member-pag-bottom">
    +
    +			<?php bp_members_pagination_links(); ?>
    +
    +		</div>
    +
    +	</div>
    +
    +	<?php do_action( 'bp_after_group_members_content' ); ?>
    +
    +<?php else: ?>
    +
    +	<div id="message" class="info">
    +		<p><?php _e( 'This group has no members.', 'buddypress' ); ?></p>
    +	</div>
    +
    +<?php endif; ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/groups/single/plugins.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/groups/single/plugins.php	(revision 0)
    @@ -0,0 +1,35 @@
    +<div id="buddypress">
    +
    +	<?php do_action( 'bp_before_group_plugin_template' ); ?>
    +
    +	<div id="item-header">
    +
    +		<?php bp_get_template_part( 'groups/single/group-header' ); ?>
    +
    +	</div><!-- #item-header -->
    +
    +	<div id="item-nav">
    +		<div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
    +			<ul>
    +
    +				<?php bp_get_options_nav(); ?>
    +
    +				<?php do_action( 'bp_group_plugin_options_nav' ); ?>
    +
    +			</ul>
    +		</div>
    +	</div><!-- #item-nav -->
    +
    +	<div id="item-body">
    +
    +		<?php do_action( 'bp_before_group_body' ); ?>
    +
    +		<?php do_action( 'bp_template_content' ); ?>
    +
    +		<?php do_action( 'bp_after_group_body' ); ?>
    +
    +	</div><!-- #item-body -->
    +
    +	<?php do_action( 'bp_after_group_plugin_template' ); ?>
    +
    +</div><!-- #buddypress -->
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/groups/single/request-membership.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/groups/single/request-membership.php	(revision 0)
    @@ -0,0 +1,18 @@
    +<?php do_action( 'bp_before_group_request_membership_content' ); ?>
    +
    +<?php if ( !bp_group_has_requested_membership() ) : ?>
    +	<p><?php printf( __( "You are requesting to become a member of the group '%s'.", "buddypress" ), bp_get_group_name( false ) ); ?></p>
    +
    +	<form action="<?php bp_group_form_action('request-membership' ); ?>" method="post" name="request-membership-form" id="request-membership-form" class="standard-form">
    +		<label for="group-request-membership-comments"><?php _e( 'Comments (optional)', 'buddypress' ); ?></label>
    +		<textarea name="group-request-membership-comments" id="group-request-membership-comments"></textarea>
    +
    +		<?php do_action( 'bp_group_request_membership_content' ); ?>
    +
    +		<p><input type="submit" name="group-request-send" id="group-request-send" value="<?php _e( 'Send Request', 'buddypress' ); ?>" />
    +
    +		<?php wp_nonce_field( 'groups_request_membership' ); ?>
    +	</form><!-- #request-membership-form -->
    +<?php endif; ?>
    +
    +<?php do_action( 'bp_after_group_request_membership_content' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/groups/single/send-invites.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/groups/single/send-invites.php	(revision 0)
    @@ -0,0 +1,78 @@
    +<?php do_action( 'bp_before_group_send_invites_content' ); ?>
    +
    +<?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    +
    +	<form action="<?php bp_group_send_invite_form_action(); ?>" method="post" id="send-invite-form" class="standard-form" role="main">
    +
    +		<div class="left-menu">
    +
    +			<div id="invite-list">
    +				<ul>
    +					<?php bp_new_group_invite_friend_list(); ?>
    +				</ul>
    +
    +				<?php wp_nonce_field( 'groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user' ); ?>
    +			</div>
    +
    +		</div><!-- .left-menu -->
    +
    +		<div class="main-column">
    +
    +			<div id="message" class="info">
    +				<p><?php _e('Select people to invite from your friends list.', 'buddypress' ); ?></p>
    +			</div>
    +
    +			<?php do_action( 'bp_before_group_send_invites_list' ); ?>
    +
    +			<?php /* The ID 'friend-list' is important for AJAX support. */ ?>
    +			<ul id="friend-list" class="item-list">
    +			<?php if ( bp_group_has_invites() ) : ?>
    +
    +				<?php while ( bp_group_invites() ) : bp_group_the_invite(); ?>
    +
    +					<li id="<?php bp_group_invite_item_id(); ?>">
    +						<?php bp_group_invite_user_avatar(); ?>
    +
    +						<h4><?php bp_group_invite_user_link(); ?></h4>
    +						<span class="activity"><?php bp_group_invite_user_last_active(); ?></span>
    +
    +						<?php do_action( 'bp_group_send_invites_item' ); ?>
    +
    +						<div class="action">
    +							<a class="button remove" href="<?php bp_group_invite_user_remove_invite_url(); ?>" id="<?php bp_group_invite_item_id(); ?>"><?php _e( 'Remove Invite', 'buddypress' ); ?></a>
    +
    +							<?php do_action( 'bp_group_send_invites_item_action' ); ?>
    +						</div>
    +					</li>
    +
    +				<?php endwhile; ?>
    +
    +			<?php endif; ?>
    +			</ul><!-- #friend-list -->
    +
    +			<?php do_action( 'bp_after_group_send_invites_list' ); ?>
    +
    +		</div><!-- .main-column -->
    +
    +		<div class="clear"></div>
    +
    +		<div class="submit">
    +			<input type="submit" name="submit" id="submit" value="<?php _e( 'Send Invites', 'buddypress' ); ?>" />
    +		</div>
    +
    +		<?php wp_nonce_field( 'groups_send_invites', '_wpnonce_send_invites' ); ?>
    +
    +		<?php /* This is important, don't forget it */ ?>
    +		<input type="hidden" name="group_id" id="group_id" value="<?php bp_group_id(); ?>" />
    +
    +	</form><!-- #send-invite-form -->
    +
    +<?php else : ?>
    +
    +	<div id="message" class="info" role="main">
    +		<p><?php _e( 'Once you have built up friend connections you will be able to invite others to your group. You can send invites any time in the future by selecting the "Send Invites" option when viewing your new group.', 'buddypress' ); ?></p>
    +	</div>
    +
    +<?php endif; ?>
    +
    +<?php do_action( 'bp_after_group_send_invites_content' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/activate.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/activate.php	(revision 0)
    @@ -0,0 +1,46 @@
    +<div id="buddypress">
    +
    +	<?php do_action( 'bp_before_activation_page' ); ?>
    +
    +	<div class="page" id="activate-page">
    +
    +		<?php if ( bp_account_was_activated() ) : ?>
    +
    +			<h2 class="widgettitle"><?php _e( 'Account Activated', 'buddypress' ); ?></h2>
    +
    +			<?php do_action( 'bp_before_activate_content' ); ?>
    +
    +			<?php if ( isset( $_GET['e'] ) ) : ?>
    +				<p><?php _e( 'Your account was activated successfully! Your account details have been sent to you in a separate email.', 'buddypress' ); ?></p>
    +			<?php else : ?>
    +				<p><?php _e( 'Your account was activated successfully! You can now log in with the username and password you provided when you signed up.', 'buddypress' ); ?></p>
    +			<?php endif; ?>
    +
    +		<?php else : ?>
    +
    +			<h3><?php _e( 'Activate your Account', 'buddypress' ); ?></h3>
    +
    +			<?php do_action( 'bp_before_activate_content' ); ?>
    +
    +			<p><?php _e( 'Please provide a valid activation key.', 'buddypress' ); ?></p>
    +
    +			<form action="" method="get" class="standard-form" id="activation-form">
    +
    +				<label for="key"><?php _e( 'Activation Key:', 'buddypress' ); ?></label>
    +				<input type="text" name="key" id="key" value="" />
    +
    +				<p class="submit">
    +					<input type="submit" name="submit" value="<?php _e( 'Activate', 'buddypress' ); ?>" />
    +				</p>
    +
    +			</form>
    +
    +		<?php endif; ?>
    +
    +		<?php do_action( 'bp_after_activate_content' ); ?>
    +
    +	</div><!-- .page -->
    +
    +	<?php do_action( 'bp_after_activation_page' ); ?>
    +
    +</div><!-- #buddypress -->
    \ No newline at end of file
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/index.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/index.php	(revision 0)
    @@ -0,0 +1,75 @@
    +<?php do_action( 'bp_before_directory_members_page' ); ?>
    +
    +<div id="buddypress">
    +
    +	<?php do_action( 'bp_before_directory_members' ); ?>
    +
    +	<form action="" method="post" id="members-directory-form" class="dir-form">
    +
    +		<?php do_action( 'bp_before_directory_members_content' ); ?>
    +
    +		<div id="members-dir-search" class="dir-search" role="search">
    +
    +			<?php bp_directory_members_search_form(); ?>
    +
    +		</div><!-- #members-dir-search -->
    +
    +		<div class="item-list-tabs" role="navigation">
    +			<ul>
    +				<li class="selected" id="members-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_members_root_slug() ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'buddypress' ), bp_get_total_member_count() ); ?></a></li>
    +
    +				<?php if ( is_user_logged_in() && bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    +
    +					<li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/' ?>"><?php printf( __( 'My Friends <span>%s</span>', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a></li>
    +
    +				<?php endif; ?>
    +
    +				<?php do_action( 'bp_members_directory_member_types' ); ?>
    +
    +			</ul>
    +		</div><!-- .item-list-tabs -->
    +
    +		<div class="item-list-tabs" id="subnav" role="navigation">
    +			<ul>
    +
    +				<?php do_action( 'bp_members_directory_member_sub_types' ); ?>
    +
    +				<li id="members-order-select" class="last filter">
    +
    +					<label for="members-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
    +					<select id="members-order-by">
    +						<option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
    +						<option value="newest"><?php _e( 'Newest Registered', 'buddypress' ); ?></option>
    +
    +						<?php if ( bp_is_active( 'xprofile' ) ) : ?>
    +
    +							<option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    +
    +						<?php endif; ?>
    +
    +						<?php do_action( 'bp_members_directory_order_options' ); ?>
    +
    +					</select>
    +				</li>
    +			</ul>
    +		</div>
    +
    +		<div id="members-dir-list" class="members dir-list">
    +
    +			<?php bp_get_template_part( 'members/members-loop' ); ?>
    +
    +		</div><!-- #members-dir-list -->
    +
    +		<?php do_action( 'bp_directory_members_content' ); ?>
    +
    +		<?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ); ?>
    +
    +		<?php do_action( 'bp_after_directory_members_content' ); ?>
    +
    +	</form><!-- #members-directory-form -->
    +
    +	<?php do_action( 'bp_after_directory_members' ); ?>
    +
    +</div><!-- #buddypress -->
    +
    +<?php do_action( 'bp_after_directory_members_page' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/members-loop.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/members-loop.php	(revision 0)
    @@ -0,0 +1,113 @@
    +<?php
    +
    +/**
    + * BuddyPress - Members Loop
    + *
    + * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter()
    + *
    + * @package BuddyPress
    + * @subpackage bp-legacy
    + */
    +
    +?>
    +
    +<?php do_action( 'bp_before_members_loop' ); ?>
    +
    +<?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>
    +
    +	<div id="pag-top" class="pagination">
    +
    +		<div class="pag-count" id="member-dir-count-top">
    +
    +			<?php bp_members_pagination_count(); ?>
    +
    +		</div>
    +
    +		<div class="pagination-links" id="member-dir-pag-top">
    +
    +			<?php bp_members_pagination_links(); ?>
    +
    +		</div>
    +
    +	</div>
    +
    +	<?php do_action( 'bp_before_directory_members_list' ); ?>
    +
    +	<ul id="members-list" class="item-list" role="main">
    +
    +	<?php while ( bp_members() ) : bp_the_member(); ?>
    +
    +		<li>
    +			<div class="item-avatar">
    +				<a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
    +			</div>
    +
    +			<div class="item">
    +				<div class="item-title">
    +					<a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
    +
    +					<?php if ( bp_get_member_latest_update() ) : ?>
    +
    +						<span class="update"> <?php bp_member_latest_update(); ?></span>
    +
    +					<?php endif; ?>
    +
    +				</div>
    +
    +				<div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div>
    +
    +				<?php do_action( 'bp_directory_members_item' ); ?>
    +
    +				<?php
    +				 /***
    +				  * If you want to show specific profile fields here you can,
    +				  * but it'll add an extra query for each member in the loop
    +				  * (only one regardless of the number of fields you show):
    +				  *
    +				  * bp_member_profile_data( 'field=the field name' );
    +				  */
    +				?>
    +			</div>
    +
    +			<div class="action">
    +
    +				<?php do_action( 'bp_directory_members_actions' ); ?>
    +
    +			</div>
    +
    +			<div class="clear"></div>
    +		</li>
    +
    +	<?php endwhile; ?>
    +
    +	</ul>
    +
    +	<?php do_action( 'bp_after_directory_members_list' ); ?>
    +
    +	<?php bp_member_hidden_fields(); ?>
    +
    +	<div id="pag-bottom" class="pagination">
    +
    +		<div class="pag-count" id="member-dir-count-bottom">
    +
    +			<?php bp_members_pagination_count(); ?>
    +
    +		</div>
    +
    +		<div class="pagination-links" id="member-dir-pag-bottom">
    +
    +			<?php bp_members_pagination_links(); ?>
    +
    +		</div>
    +
    +	</div>
    +
    +<?php else: ?>
    +
    +	<div id="message" class="info">
    +		<p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>
    +	</div>
    +
    +<?php endif; ?>
    +
    +<?php do_action( 'bp_after_members_loop' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/register.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/register.php	(revision 0)
    @@ -0,0 +1,272 @@
    +<div id="buddypress">
    +
    +	<?php do_action( 'bp_before_register_page' ); ?>
    +
    +	<div class="page" id="register-page">
    +
    +		<form action="" name="signup_form" id="signup_form" class="standard-form" method="post" enctype="multipart/form-data">
    +
    +		<?php if ( 'registration-disabled' == bp_get_current_signup_step() ) : ?>
    +			<?php do_action( 'template_notices' ); ?>
    +			<?php do_action( 'bp_before_registration_disabled' ); ?>
    +
    +				<p><?php _e( 'User registration is currently not allowed.', 'buddypress' ); ?></p>
    +
    +			<?php do_action( 'bp_after_registration_disabled' ); ?>
    +		<?php endif; // registration-disabled signup setp ?>
    +
    +		<?php if ( 'request-details' == bp_get_current_signup_step() ) : ?>
    +
    +			<h2><?php _e( 'Create an Account', 'buddypress' ); ?></h2>
    +
    +			<?php do_action( 'template_notices' ); ?>
    +
    +			<p><?php _e( 'Registering for this site is easy, just fill in the fields below and we\'ll get a new account set up for you in no time.', 'buddypress' ); ?></p>
    +
    +			<?php do_action( 'bp_before_account_details_fields' ); ?>
    +
    +			<div class="register-section" id="basic-details-section">
    +
    +				<?php /***** Basic Account Details ******/ ?>
    +
    +				<h4><?php _e( 'Account Details', 'buddypress' ); ?></h4>
    +
    +				<label for="signup_username"><?php _e( 'Username', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    +				<?php do_action( 'bp_signup_username_errors' ); ?>
    +				<input type="text" name="signup_username" id="signup_username" value="<?php bp_signup_username_value(); ?>" />
    +
    +				<label for="signup_email"><?php _e( 'Email Address', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    +				<?php do_action( 'bp_signup_email_errors' ); ?>
    +				<input type="text" name="signup_email" id="signup_email" value="<?php bp_signup_email_value(); ?>" />
    +
    +				<label for="signup_password"><?php _e( 'Choose a Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    +				<?php do_action( 'bp_signup_password_errors' ); ?>
    +				<input type="password" name="signup_password" id="signup_password" value="" />
    +
    +				<label for="signup_password_confirm"><?php _e( 'Confirm Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    +				<?php do_action( 'bp_signup_password_confirm_errors' ); ?>
    +				<input type="password" name="signup_password_confirm" id="signup_password_confirm" value="" />
    +
    +			</div><!-- #basic-details-section -->
    +
    +			<?php do_action( 'bp_after_account_details_fields' ); ?>
    +
    +			<?php /***** Extra Profile Details ******/ ?>
    +
    +			<?php if ( bp_is_active( 'xprofile' ) ) : ?>
    +
    +				<?php do_action( 'bp_before_signup_profile_fields' ); ?>
    +
    +				<div class="register-section" id="profile-details-section">
    +
    +					<h4><?php _e( 'Profile Details', 'buddypress' ); ?></h4>
    +
    +					<?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
    +					<?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    +
    +					<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    +
    +						<div class="editfield">
    +
    +							<?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>
    +
    +								<label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    +								<?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ); ?>
    +								<input type="text" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" value="<?php bp_the_profile_field_edit_value(); ?>" />
    +
    +							<?php endif; ?>
    +
    +							<?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?>
    +
    +								<label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    +								<?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ); ?>
    +								<textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_edit_value(); ?></textarea>
    +
    +							<?php endif; ?>
    +
    +							<?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?>
    +
    +								<label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    +								<?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ); ?>
    +								<select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>">
    +									<?php bp_the_profile_field_options(); ?>
    +								</select>
    +
    +							<?php endif; ?>
    +
    +							<?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?>
    +
    +								<label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    +								<?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ); ?>
    +								<select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" multiple="multiple">
    +									<?php bp_the_profile_field_options(); ?>
    +								</select>
    +
    +							<?php endif; ?>
    +
    +							<?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?>
    +
    +								<div class="radio">
    +									<span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span>
    +
    +									<?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ); ?>
    +									<?php bp_the_profile_field_options(); ?>
    +
    +									<?php if ( !bp_get_the_profile_field_is_required() ) : ?>
    +										<a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name(); ?>' );"><?php _e( 'Clear', 'buddypress' ); ?></a>
    +									<?php endif; ?>
    +								</div>
    +
    +							<?php endif; ?>
    +
    +							<?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?>
    +
    +								<div class="checkbox">
    +									<span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span>
    +
    +									<?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ); ?>
    +									<?php bp_the_profile_field_options(); ?>
    +								</div>
    +
    +							<?php endif; ?>
    +
    +							<?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?>
    +
    +								<div class="datebox">
    +									<label for="<?php bp_the_profile_field_input_name(); ?>_day"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    +									<?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ); ?>
    +
    +									<select name="<?php bp_the_profile_field_input_name(); ?>_day" id="<?php bp_the_profile_field_input_name(); ?>_day">
    +										<?php bp_the_profile_field_options( 'type=day' ); ?>
    +									</select>
    +
    +									<select name="<?php bp_the_profile_field_input_name(); ?>_month" id="<?php bp_the_profile_field_input_name(); ?>_month">
    +										<?php bp_the_profile_field_options( 'type=month' ); ?>
    +									</select>
    +
    +									<select name="<?php bp_the_profile_field_input_name(); ?>_year" id="<?php bp_the_profile_field_input_name(); ?>_year">
    +										<?php bp_the_profile_field_options( 'type=year' ); ?>
    +									</select>
    +								</div>
    +
    +							<?php endif; ?>
    +
    +							<?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
    +								<p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    +									<?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link">Change</a>
    +								</p>
    +
    +								<div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">
    +									<fieldset>
    +										<legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend>
    +
    +										<?php bp_profile_visibility_radio_buttons() ?>
    +
    +									</fieldset>
    +									<a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a>
    +
    +								</div>
    +							<?php else : ?>
    +								<p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    +									<?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?>
    +								</p>			
    +							<?php endif ?>
    +
    +
    +							<?php do_action( 'bp_custom_profile_edit_fields' ); ?>
    +
    +							<p class="description"><?php bp_the_profile_field_description(); ?></p>
    +
    +						</div>
    +
    +					<?php endwhile; ?>
    +
    +					<input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids(); ?>" />
    +
    +					<?php endwhile; endif; endif; ?>
    +
    +				</div><!-- #profile-details-section -->
    +
    +				<?php do_action( 'bp_after_signup_profile_fields' ); ?>
    +
    +			<?php endif; ?>
    +
    +			<?php if ( bp_get_blog_signup_allowed() ) : ?>
    +
    +				<?php do_action( 'bp_before_blog_details_fields' ); ?>
    +
    +				<?php /***** Blog Creation Details ******/ ?>
    +
    +				<div class="register-section" id="blog-details-section">
    +
    +					<h4><?php _e( 'Blog Details', 'buddypress' ); ?></h4>
    +
    +					<p><input type="checkbox" name="signup_with_blog" id="signup_with_blog" value="1"<?php if ( (int) bp_get_signup_with_blog_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'Yes, I\'d like to create a new site', 'buddypress' ); ?></p>
    +
    +					<div id="blog-details"<?php if ( (int) bp_get_signup_with_blog_value() ) : ?>class="show"<?php endif; ?>>
    +
    +						<label for="signup_blog_url"><?php _e( 'Blog URL', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    +						<?php do_action( 'bp_signup_blog_url_errors' ); ?>
    +
    +						<?php if ( is_subdomain_install() ) : ?>
    +							http:// <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value(); ?>" /> .<?php bp_blogs_subdomain_base(); ?>
    +						<?php else : ?>
    +							<?php echo site_url(); ?>/ <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value(); ?>" />
    +						<?php endif; ?>
    +
    +						<label for="signup_blog_title"><?php _e( 'Site Title', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    +						<?php do_action( 'bp_signup_blog_title_errors' ); ?>
    +						<input type="text" name="signup_blog_title" id="signup_blog_title" value="<?php bp_signup_blog_title_value(); ?>" />
    +
    +						<span class="label"><?php _e( 'I would like my site to appear in search engines, and in public listings around this network.', 'buddypress' ); ?>:</span>
    +						<?php do_action( 'bp_signup_blog_privacy_errors' ); ?>
    +
    +						<label><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_public" value="public"<?php if ( 'public' == bp_get_signup_blog_privacy_value() || !bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'Yes', 'buddypress' ); ?></label>
    +						<label><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_private" value="private"<?php if ( 'private' == bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'No', 'buddypress' ); ?></label>
    +
    +					</div>
    +
    +				</div><!-- #blog-details-section -->
    +
    +				<?php do_action( 'bp_after_blog_details_fields' ); ?>
    +
    +			<?php endif; ?>
    +
    +			<?php do_action( 'bp_before_registration_submit_buttons' ); ?>
    +
    +			<div class="submit">
    +				<input type="submit" name="signup_submit" id="signup_submit" value="<?php _e( 'Complete Sign Up', 'buddypress' ); ?>" />
    +			</div>
    +
    +			<?php do_action( 'bp_after_registration_submit_buttons' ); ?>
    +
    +			<?php wp_nonce_field( 'bp_new_signup' ); ?>
    +
    +		<?php endif; // request-details signup step ?>
    +
    +		<?php if ( 'completed-confirmation' == bp_get_current_signup_step() ) : ?>
    +
    +			<h2><?php _e( 'Sign Up Complete!', 'buddypress' ); ?></h2>
    +
    +			<?php do_action( 'template_notices' ); ?>
    +			<?php do_action( 'bp_before_registration_confirmed' ); ?>
    +
    +			<?php if ( bp_registration_needs_activation() ) : ?>
    +				<p><?php _e( 'You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.', 'buddypress' ); ?></p>
    +			<?php else : ?>
    +				<p><?php _e( 'You have successfully created your account! Please log in using the username and password you have just created.', 'buddypress' ); ?></p>
    +			<?php endif; ?>
    +
    +			<?php do_action( 'bp_after_registration_confirmed' ); ?>
    +
    +		<?php endif; // completed-confirmation signup step ?>
    +
    +		<?php do_action( 'bp_custom_signup_steps' ); ?>
    +
    +		</form>
    +
    +	</div>
    +
    +	<?php do_action( 'bp_after_register_page' ); ?>
    +
    +</div><!-- #buddypress -->
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/activity.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/activity.php	(revision 0)
    @@ -0,0 +1,77 @@
    +<?php
    +
    +/**
    + * BuddyPress - Users Activity
    + *
    + * @package BuddyPress
    + * @subpackage bp-legacy
    + */
    +
    +?>
    +
    +<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    +	<ul>
    +
    +		<?php bp_get_options_nav(); ?>
    +
    +		<li id="activity-filter-select" class="last">
    +			<label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label>
    +			<select id="activity-filter-by">
    +				<option value="-1"><?php _e( 'Everything', 'buddypress' ); ?></option>
    +				<option value="activity_update"><?php _e( 'Updates', 'buddypress' ); ?></option>
    +
    +				<?php
    +				if ( !bp_is_current_action( 'groups' ) ) :
    +					if ( bp_is_active( 'blogs' ) ) : ?>
    +
    +						<option value="new_blog_post"><?php _e( 'Posts', 'buddypress' ); ?></option>
    +						<option value="new_blog_comment"><?php _e( 'Comments', 'buddypress' ); ?></option>
    +
    +					<?php
    +					endif;
    +
    +					if ( bp_is_active( 'friends' ) ) : ?>
    +
    +						<option value="friendship_accepted,friendship_created"><?php _e( 'Friendships', 'buddypress' ); ?></option>
    +
    +					<?php endif;
    +
    +				endif;
    +
    +				if ( bp_is_active( 'forums' ) ) : ?>
    +
    +					<option value="new_forum_topic"><?php _e( 'Forum Topics', 'buddypress' ); ?></option>
    +					<option value="new_forum_post"><?php _e( 'Forum Replies', 'buddypress' ); ?></option>
    +
    +				<?php endif;
    +
    +				if ( bp_is_active( 'groups' ) ) : ?>
    +
    +					<option value="created_group"><?php _e( 'New Groups', 'buddypress' ); ?></option>
    +					<option value="joined_group"><?php _e( 'Group Memberships', 'buddypress' ); ?></option>
    +
    +				<?php endif;
    +
    +				do_action( 'bp_member_activity_filter_options' ); ?>
    +
    +			</select>
    +		</li>
    +	</ul>
    +</div><!-- .item-list-tabs -->
    +
    +<?php do_action( 'bp_before_member_activity_post_form' ); ?>
    +
    +<?php
    +if ( is_user_logged_in() && bp_is_my_profile() && ( !bp_current_action() || bp_is_current_action( 'just-me' ) ) )
    +	bp_get_template_part( 'activity/post-form' );
    +
    +do_action( 'bp_after_member_activity_post_form' );
    +do_action( 'bp_before_member_activity_content' ); ?>
    +
    +<div class="activity" role="main">
    +
    +	<?php bp_get_template_part( 'activity/activity-loop' ) ?>
    +
    +</div><!-- .activity -->
    +
    +<?php do_action( 'bp_after_member_activity_content' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/activity/permalink.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/activity/permalink.php	(revision 0)
    @@ -0,0 +1,17 @@
    +<div id="buddypress">
    +	<?php do_action( 'template_notices' ); ?>
    +
    +	<div class="activity no-ajax" role="main">
    +		<?php if ( bp_has_activities( 'display_comments=threaded&show_hidden=true&include=' . bp_current_action() ) ) : ?>
    +
    +			<ul id="activity-stream" class="activity-list item-list">
    +			<?php while ( bp_activities() ) : bp_the_activity(); ?>
    +
    +				<?php bp_get_template_part( 'activity/entry' ); ?>
    +
    +			<?php endwhile; ?>
    +			</ul>
    +
    +		<?php endif; ?>
    +	</div>
    +</div>
    \ No newline at end of file
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/blogs.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/blogs.php	(revision 0)
    @@ -0,0 +1,40 @@
    +<?php
    +
    +/**
    + * BuddyPress - Users Blogs
    + *
    + * @package BuddyPress
    + * @subpackage bp-legacy
    + */
    +
    +?>
    +
    +<div class="item-list-tabs" id="subnav" role="navigation">
    +	<ul>
    +
    +		<?php bp_get_options_nav(); ?>
    +
    +		<li id="blogs-order-select" class="last filter">
    +
    +			<label for="blogs-all"><?php _e( 'Order By:', 'buddypress' ); ?></label>
    +			<select id="blogs-all">
    +				<option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
    +				<option value="newest"><?php _e( 'Newest', 'buddypress' ); ?></option>
    +				<option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    +
    +				<?php do_action( 'bp_member_blog_order_options' ); ?>
    +
    +			</select>
    +		</li>
    +	</ul>
    +</div><!-- .item-list-tabs -->
    +
    +<?php do_action( 'bp_before_member_blogs_content' ); ?>
    +
    +<div class="blogs myblogs" role="main">
    +
    +	<?php bp_get_template_part( 'blogs/blogs-loop' ) ?>
    +
    +</div><!-- .blogs.myblogs -->
    +
    +<?php do_action( 'bp_after_member_blogs_content' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/forums.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/forums.php	(revision 0)
    @@ -0,0 +1,47 @@
    +<?php
    +
    +/**
    + * BuddyPress - Users Forums
    + *
    + * @package BuddyPress
    + * @subpackage bp-legacy
    + */
    +
    +?>
    +
    +<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    +	<ul>
    +		<?php bp_get_options_nav(); ?>
    +
    +		<li id="forums-order-select" class="last filter">
    +
    +			<label for="forums-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
    +			<select id="forums-order-by">
    +				<option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
    +				<option value="popular"><?php _e( 'Most Posts', 'buddypress' ); ?></option>
    +				<option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ); ?></option>
    +
    +				<?php do_action( 'bp_forums_directory_order_options' ); ?>
    +
    +			</select>
    +		</li>
    +	</ul>
    +</div><!-- .item-list-tabs -->
    +
    +<?php
    +
    +if ( bp_is_current_action( 'favorites' ) ) :
    +	bp_get_template_part( 'members/single/forums/topics' );
    +
    +else :
    +	do_action( 'bp_before_member_forums_content' ); ?>
    +
    +	<div class="forums myforums">
    +
    +		<?php bp_get_template_part( 'forums/forums-loop' ) ?>
    +
    +	</div>
    +
    +	<?php do_action( 'bp_after_member_forums_content' ); ?>
    +
    +<?php endif; ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/forums/topics.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/forums/topics.php	(revision 0)
    @@ -0,0 +1,7 @@
    +<?php
    +/*
    + * To change this template, choose Tools | Templates
    + * and open the template in the editor.
    + */
    +
    +?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/friends.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/friends.php	(revision 0)
    @@ -0,0 +1,52 @@
    +<?php
    +
    +/**
    + * BuddyPress - Users Friends
    + *
    + * @package BuddyPress
    + * @subpackage bp-legacy
    + */
    +
    +?>
    +
    +<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    +	<ul>
    +		<?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?>
    +
    +		<?php if ( !bp_is_current_action( 'requests' ) ) : ?>
    +
    +			<li id="members-order-select" class="last filter">
    +
    +				<label for="members-friends"><?php _e( 'Order By:', 'buddypress' ); ?></label>
    +				<select id="members-friends">
    +					<option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
    +					<option value="newest"><?php _e( 'Newest Registered', 'buddypress' ); ?></option>
    +					<option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    +
    +					<?php do_action( 'bp_member_blog_order_options' ); ?>
    +
    +				</select>
    +			</li>
    +
    +		<?php endif; ?>
    +
    +	</ul>
    +</div>
    +
    +<?php
    +
    +if ( bp_is_current_action( 'requests' ) ) :
    +	 bp_get_template_part( 'members/single/friends/requests' );
    +
    +else :
    +	do_action( 'bp_before_member_friends_content' ); ?>
    +
    +	<div class="members friends">
    +
    +		<?php bp_get_template_part( 'members/members-loop' ) ?>
    +
    +	</div><!-- .members.friends -->
    +
    +	<?php do_action( 'bp_after_member_friends_content' ); ?>
    +
    +<?php endif; ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/friends/requests.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/friends/requests.php	(revision 0)
    @@ -0,0 +1,73 @@
    +<?php do_action( 'bp_before_member_friend_requests_content' ); ?>
    +
    +<?php if ( bp_has_members( 'type=alphabetical&include=' . bp_get_friendship_requests() ) ) : ?>
    +
    +	<div id="pag-top" class="pagination no-ajax">
    +
    +		<div class="pag-count" id="member-dir-count-top">
    +
    +			<?php bp_members_pagination_count(); ?>
    +
    +		</div>
    +
    +		<div class="pagination-links" id="member-dir-pag-top">
    +
    +			<?php bp_members_pagination_links(); ?>
    +
    +		</div>
    +
    +	</div>
    +
    +	<ul id="friend-list" class="item-list" role="main">
    +		<?php while ( bp_members() ) : bp_the_member(); ?>
    +
    +			<li id="friendship-<?php bp_friend_friendship_id(); ?>">
    +				<div class="item-avatar">
    +					<a href="<?php bp_member_link(); ?>"><?php bp_member_avatar(); ?></a>
    +				</div>
    +
    +				<div class="item">
    +					<div class="item-title"><a href="<?php bp_member_link(); ?>"><?php bp_member_name(); ?></a></div>
    +					<div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div>
    +				</div>
    +
    +				<?php do_action( 'bp_friend_requests_item' ); ?>
    +
    +				<div class="action">
    +					<a class="button accept" href="<?php bp_friend_accept_request_link(); ?>"><?php _e( 'Accept', 'buddypress' ); ?></a> &nbsp;
    +					<a class="button reject" href="<?php bp_friend_reject_request_link(); ?>"><?php _e( 'Reject', 'buddypress' ); ?></a>
    +
    +					<?php do_action( 'bp_friend_requests_item_action' ); ?>
    +				</div>
    +			</li>
    +
    +		<?php endwhile; ?>
    +	</ul>
    +
    +	<?php do_action( 'bp_friend_requests_content' ); ?>
    +
    +	<div id="pag-bottom" class="pagination no-ajax">
    +
    +		<div class="pag-count" id="member-dir-count-bottom">
    +
    +			<?php bp_members_pagination_count(); ?>
    +
    +		</div>
    +
    +		<div class="pagination-links" id="member-dir-pag-bottom">
    +
    +			<?php bp_members_pagination_links(); ?>
    +
    +		</div>
    +
    +	</div>
    +
    +<?php else: ?>
    +
    +	<div id="message" class="info">
    +		<p><?php _e( 'You have no pending friendship requests.', 'buddypress' ); ?></p>
    +	</div>
    +
    +<?php endif;?>
    +
    +<?php do_action( 'bp_after_member_friend_requests_content' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/groups.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/groups.php	(revision 0)
    @@ -0,0 +1,53 @@
    +<?php
    +
    +/**
    + * BuddyPress - Users Groups
    + *
    + * @package BuddyPress
    + * @subpackage bp-legacy
    + */
    +
    +?>
    +
    +<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    +	<ul>
    +		<?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?>
    +
    +		<?php if ( !bp_is_current_action( 'invites' ) ) : ?>
    +
    +			<li id="groups-order-select" class="last filter">
    +
    +				<label for="groups-sort-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
    +				<select id="groups-sort-by">
    +					<option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
    +					<option value="popular"><?php _e( 'Most Members', 'buddypress' ); ?></option>
    +					<option value="newest"><?php _e( 'Newly Created', 'buddypress' ); ?></option>
    +					<option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    +
    +					<?php do_action( 'bp_member_group_order_options' ); ?>
    +
    +				</select>
    +			</li>
    +
    +		<?php endif; ?>
    +
    +	</ul>
    +</div><!-- .item-list-tabs -->
    +
    +<?php
    +
    +if ( bp_is_current_action( 'invites' ) ) :
    +	bp_get_template_part( 'members/single/groups/invites' );
    +
    +else :
    +	do_action( 'bp_before_member_groups_content' ); ?>
    +
    +	<div class="groups mygroups">
    +
    +		<?php bp_get_template_part( 'groups/groups-loop' ); ?>
    +
    +	</div>
    +
    +	<?php do_action( 'bp_after_member_groups_content' ); ?>
    +
    +<?php endif; ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/groups/invites.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/groups/invites.php	(revision 0)
    @@ -0,0 +1,42 @@
    +<?php do_action( 'bp_before_group_invites_content' ); ?>
    +
    +<?php if ( bp_has_groups( 'type=invites&user_id=' . bp_loggedin_user_id() ) ) : ?>
    +
    +	<ul id="group-list" class="invites item-list" role="main">
    +
    +		<?php while ( bp_groups() ) : bp_the_group(); ?>
    +
    +			<li>
    +				<div class="item-avatar">
    +					<a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ); ?></a>
    +				</div>
    +
    +				<h4><a href="<?php bp_group_permalink(); ?>"><?php bp_group_name(); ?></a><span class="small"> - <?php printf( __( '%s members', 'buddypress' ), bp_group_total_members( false ) ); ?></span></h4>
    +
    +				<p class="desc">
    +					<?php bp_group_description_excerpt(); ?>
    +				</p>
    +
    +				<?php do_action( 'bp_group_invites_item' ); ?>
    +
    +				<div class="action">
    +					<a class="button accept" href="<?php bp_group_accept_invite_link(); ?>"><?php _e( 'Accept', 'buddypress' ); ?></a> &nbsp;
    +					<a class="button reject confirm" href="<?php bp_group_reject_invite_link(); ?>"><?php _e( 'Reject', 'buddypress' ); ?></a>
    +
    +					<?php do_action( 'bp_group_invites_item_action' ); ?>
    +
    +				</div>
    +			</li>
    +
    +		<?php endwhile; ?>
    +	</ul>
    +
    +<?php else: ?>
    +
    +	<div id="message" class="info" role="main">
    +		<p><?php _e( 'You have no outstanding group invites.', 'buddypress' ); ?></p>
    +	</div>
    +
    +<?php endif;?>
    +
    +<?php do_action( 'bp_after_group_invites_content' ); ?>
    \ No newline at end of file
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/home.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/home.php	(revision 0)
    @@ -0,0 +1,63 @@
    +<div id="buddypress">
    +
    +	<?php do_action( 'bp_before_member_home_content' ); ?>
    +
    +	<div id="item-header" role="complementary">
    +
    +		<?php bp_get_template_part( 'members/single/member-header' ) ?>
    +
    +	</div><!-- #item-header -->
    +
    +	<div id="item-nav">
    +		<div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
    +			<ul>
    +
    +				<?php bp_get_displayed_user_nav(); ?>
    +
    +				<?php do_action( 'bp_member_options_nav' ); ?>
    +
    +			</ul>
    +		</div>
    +	</div><!-- #item-nav -->
    +
    +	<div id="item-body">
    +
    +		<?php do_action( 'bp_before_member_body' );
    +
    +		if ( bp_is_user_activity() || !bp_current_component() ) :
    +			bp_get_template_part( 'members/single/activity' );
    +
    +		elseif ( bp_is_user_blogs() ) :
    +			bp_get_template_part( 'members/single/blogs'    );
    +
    +		elseif ( bp_is_user_friends() ) :
    +			bp_get_template_part( 'members/single/friends'  );
    +
    +		elseif ( bp_is_user_groups() ) :
    +			bp_get_template_part( 'members/single/groups'   );
    +
    +		elseif ( bp_is_user_messages() ) :
    +			bp_get_template_part( 'members/single/messages' );
    +
    +		elseif ( bp_is_user_profile() ) :
    +			bp_get_template_part( 'members/single/profile'  );
    +
    +		elseif ( bp_is_user_forums() ) :
    +			bp_get_template_part( 'members/single/forums'   );
    +
    +		elseif ( bp_is_user_settings() ) :
    +			bp_get_template_part( 'members/single/settings' );
    +
    +		// If nothing sticks, load a generic template
    +		else :
    +			bp_get_template_part( 'members/single/plugins'  );
    +
    +		endif;
    +
    +		do_action( 'bp_after_member_body' ); ?>
    +
    +	</div><!-- #item-body -->
    +
    +	<?php do_action( 'bp_after_member_home_content' ); ?>
    +
    +</div><!-- #buddypress -->
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/member-header.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/member-header.php	(revision 0)
    @@ -0,0 +1,66 @@
    +<?php
    +
    +/**
    + * BuddyPress - Users Header
    + *
    + * @package BuddyPress
    + * @subpackage bp-legacy
    + */
    +
    +?>
    +
    +<?php do_action( 'bp_before_member_header' ); ?>
    +
    +<div id="item-header-avatar">
    +	<a href="<?php bp_displayed_user_link(); ?>">
    +
    +		<?php bp_displayed_user_avatar( 'type=full' ); ?>
    +
    +	</a>
    +</div><!-- #item-header-avatar -->
    +
    +<div id="item-header-content">
    +
    +	<h2>
    +		<a href="<?php bp_displayed_user_link(); ?>"><?php bp_displayed_user_fullname(); ?></a>
    +	</h2>
    +
    +	<span class="user-nicename">@<?php bp_displayed_user_username(); ?></span>
    +	<span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
    +
    +	<?php do_action( 'bp_before_member_header_meta' ); ?>
    +
    +	<div id="item-meta">
    +
    +		<?php if ( bp_is_active( 'activity' ) ) : ?>
    +
    +			<div id="latest-update">
    +
    +				<?php bp_activity_latest_update( bp_displayed_user_id() ); ?>
    +
    +			</div>
    +
    +		<?php endif; ?>
    +
    +		<div id="item-buttons">
    +
    +			<?php do_action( 'bp_member_header_actions' ); ?>
    +
    +		</div><!-- #item-buttons -->
    +
    +		<?php
    +		/***
    +		 * If you'd like to show specific profile fields here use:
    +		 * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field
    +		 */
    +		 do_action( 'bp_profile_header_meta' );
    +
    +		 ?>
    +
    +	</div><!-- #item-meta -->
    +
    +</div><!-- #item-header-content -->
    +
    +<?php do_action( 'bp_after_member_header' ); ?>
    +
    +<?php do_action( 'template_notices' ); ?>
    \ No newline at end of file
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/messages.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/messages.php	(revision 0)
    @@ -0,0 +1,51 @@
    +<?php
    +
    +/**
    + * BuddyPress - Users Messages
    + *
    + * @package BuddyPress
    + * @subpackage bp-legacy
    + */
    +
    +?>
    +
    +<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    +	<ul>
    +
    +		<?php bp_get_options_nav(); ?>
    +
    +	</ul>
    +	
    +	<?php if ( bp_is_messages_inbox() || bp_is_messages_sentbox() ) : ?>
    +
    +		<div class="message-search"><?php bp_message_search_form(); ?></div>
    +
    +	<?php endif; ?>
    +
    +</div><!-- .item-list-tabs -->
    +
    +<?php
    +
    +	if ( bp_is_current_action( 'compose' ) ) :
    +		bp_get_template_part( 'members/single/messages/compose' );
    +
    +	elseif ( bp_is_current_action( 'view' ) ) :
    +		bp_get_template_part( 'members/single/messages/single' );
    +
    +	else :
    +		do_action( 'bp_before_member_messages_content' ); ?>
    +
    +	<div class="messages" role="main">
    +
    +		<?php
    +			if ( bp_is_current_action( 'notices' ) )
    +				bp_get_template_part( 'members/single/messages/notices-loop' );
    +			else
    +				bp_get_template_part( 'members/single/messages/messages-loop' );
    +		?>
    +
    +	</div><!-- .messages -->
    +
    +	<?php do_action( 'bp_after_member_messages_content' ); ?>
    +
    +<?php endif; ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/messages/compose.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/messages/compose.php	(revision 0)
    @@ -0,0 +1,37 @@
    +<form action="<?php bp_messages_form_action('compose' ); ?>" method="post" id="send_message_form" class="standard-form" role="main" enctype="multipart/form-data">
    +
    +	<?php do_action( 'bp_before_messages_compose_content' ); ?>
    +
    +	<label for="send-to-input"><?php _e("Send To (Username or Friend's Name)", 'buddypress' ); ?></label>
    +	<ul class="first acfb-holder">
    +		<li>
    +			<?php bp_message_get_recipient_tabs(); ?>
    +			<input type="text" name="send-to-input" class="send-to-input" id="send-to-input" />
    +		</li>
    +	</ul>
    +
    +	<?php if ( bp_current_user_can( 'bp_moderate' ) ) : ?>
    +		<input type="checkbox" id="send-notice" name="send-notice" value="1" /> <?php _e( "This is a notice to all users.", "buddypress" ); ?>
    +	<?php endif; ?>
    +
    +	<label for="subject"><?php _e( 'Subject', 'buddypress' ); ?></label>
    +	<input type="text" name="subject" id="subject" value="<?php bp_messages_subject_value(); ?>" />
    +
    +	<label for="content"><?php _e( 'Message', 'buddypress' ); ?></label>
    +	<textarea name="content" id="message_content" rows="15" cols="40"><?php bp_messages_content_value(); ?></textarea>
    +
    +	<input type="hidden" name="send_to_usernames" id="send-to-usernames" value="<?php bp_message_get_recipient_usernames(); ?>" class="<?php bp_message_get_recipient_usernames(); ?>" />
    +
    +	<?php do_action( 'bp_after_messages_compose_content' ); ?>
    +
    +	<div class="submit">
    +		<input type="submit" value="<?php _e( "Send Message", 'buddypress' ); ?>" name="send" id="send" />
    +	</div>
    +
    +	<?php wp_nonce_field( 'messages_send_message' ); ?>
    +</form>
    +
    +<script type="text/javascript">
    +	document.getElementById("send-to-input").focus();
    +</script>
    +
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/messages/messages-loop.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/messages/messages-loop.php	(revision 0)
    @@ -0,0 +1,74 @@
    +<?php do_action( 'bp_before_member_messages_loop' ); ?>
    +
    +<?php if ( bp_has_message_threads( bp_ajax_querystring( 'messages' ) ) ) : ?>
    +
    +	<div class="pagination no-ajax" id="user-pag">
    +
    +		<div class="pag-count" id="messages-dir-count">
    +			<?php bp_messages_pagination_count(); ?>
    +		</div>
    +
    +		<div class="pagination-links" id="messages-dir-pag">
    +			<?php bp_messages_pagination(); ?>
    +		</div>
    +
    +	</div><!-- .pagination -->
    +
    +	<?php do_action( 'bp_after_member_messages_pagination' ); ?>
    +
    +	<?php do_action( 'bp_before_member_messages_threads'   ); ?>
    +
    +	<table id="message-threads" class="messages-notices">
    +		<?php while ( bp_message_threads() ) : bp_message_thread(); ?>
    +
    +			<tr id="m-<?php bp_message_thread_id(); ?>" class="<?php bp_message_css_class(); ?><?php if ( bp_message_thread_has_unread() ) : ?> unread"<?php else: ?> read"<?php endif; ?>>
    +				<td width="1%" class="thread-count">
    +					<span class="unread-count"><?php bp_message_thread_unread_count(); ?></span>
    +				</td>
    +				<td width="1%" class="thread-avatar"><?php bp_message_thread_avatar(); ?></td>
    +
    +				<?php if ( 'sentbox' != bp_current_action() ) : ?>
    +					<td width="30%" class="thread-from">
    +						<?php _e( 'From:', 'buddypress' ); ?> <?php bp_message_thread_from(); ?><br />
    +						<span class="activity"><?php bp_message_thread_last_post_date(); ?></span>
    +					</td>
    +				<?php else: ?>
    +					<td width="30%" class="thread-from">
    +						<?php _e( 'To:', 'buddypress' ); ?> <?php bp_message_thread_to(); ?><br />
    +						<span class="activity"><?php bp_message_thread_last_post_date(); ?></span>
    +					</td>
    +				<?php endif; ?>
    +
    +				<td width="50%" class="thread-info">
    +					<p><a href="<?php bp_message_thread_view_link(); ?>" title="<?php _e( "View Message", "buddypress" ); ?>"><?php bp_message_thread_subject(); ?></a></p>
    +					<p class="thread-excerpt"><?php bp_message_thread_excerpt(); ?></p>
    +				</td>
    +
    +				<?php do_action( 'bp_messages_inbox_list_item' ); ?>
    +
    +				<td width="13%" class="thread-options">
    +					<input type="checkbox" name="message_ids[]" value="<?php bp_message_thread_id(); ?>" />
    +					<a class="button confirm" href="<?php bp_message_thread_delete_link(); ?>" title="<?php _e( "Delete Message", "buddypress" ); ?>"><?php _e( 'Delete', 'buddypress' ); ?></a> &nbsp;
    +				</td>
    +			</tr>
    +
    +		<?php endwhile; ?>
    +	</table><!-- #message-threads -->
    +
    +	<div class="messages-options-nav">
    +		<?php bp_messages_options(); ?>
    +	</div><!-- .messages-options-nav -->
    +
    +	<?php do_action( 'bp_after_member_messages_threads' ); ?>
    +
    +	<?php do_action( 'bp_after_member_messages_options' ); ?>
    +
    +<?php else: ?>
    +
    +	<div id="message" class="info">
    +		<p><?php _e( 'Sorry, no messages were found.', 'buddypress' ); ?></p>
    +	</div>
    +
    +<?php endif;?>
    +
    +<?php do_action( 'bp_after_member_messages_loop' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/messages/notices-loop.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/messages/notices-loop.php	(revision 0)
    @@ -0,0 +1,59 @@
    +<?php do_action( 'bp_before_notices_loop' ); ?>
    +
    +<?php if ( bp_has_message_threads() ) : ?>
    +
    +	<div class="pagination no-ajax" id="user-pag">
    +
    +		<div class="pag-count" id="messages-dir-count">
    +			<?php bp_messages_pagination_count(); ?>
    +		</div>
    +
    +		<div class="pagination-links" id="messages-dir-pag">
    +			<?php bp_messages_pagination(); ?>
    +		</div>
    +
    +	</div><!-- .pagination -->
    +
    +	<?php do_action( 'bp_after_notices_pagination' ); ?>
    +	<?php do_action( 'bp_before_notices' ); ?>
    +
    +	<table id="message-threads" class="messages-notices">
    +		<?php while ( bp_message_threads() ) : bp_message_thread(); ?>
    +			<tr id="notice-<?php bp_message_notice_id(); ?>" class="<?php bp_message_css_class(); ?>">
    +				<td width="1%"></td>
    +				<td width="38%">
    +					<strong><?php bp_message_notice_subject(); ?></strong>
    +					<?php bp_message_notice_text(); ?>
    +				</td>
    +				<td width="21%">
    +
    +					<?php if ( bp_messages_is_active_notice() ) : ?>
    +
    +						<strong><?php bp_messages_is_active_notice(); ?></strong>
    +
    +					<?php endif; ?>
    +
    +					<span class="activity"><?php _e( 'Sent:', 'buddypress' ); ?> <?php bp_message_notice_post_date(); ?></span>
    +				</td>
    +
    +				<?php do_action( 'bp_notices_list_item' ); ?>
    +
    +				<td width="10%">
    +					<a class="button" href="<?php bp_message_activate_deactivate_link(); ?>" class="confirm"><?php bp_message_activate_deactivate_text(); ?></a>
    +					<a class="button" href="<?php bp_message_notice_delete_link(); ?>" class="confirm" title="<?php _e( "Delete Message", "buddypress" ); ?>">x</a>
    +				</td>
    +			</tr>
    +		<?php endwhile; ?>
    +	</table><!-- #message-threads -->
    +
    +	<?php do_action( 'bp_after_notices' ); ?>
    +
    +<?php else: ?>
    +
    +	<div id="message" class="info">
    +		<p><?php _e( 'Sorry, no notices were found.', 'buddypress' ); ?></p>
    +	</div>
    +
    +<?php endif;?>
    +
    +<?php do_action( 'bp_after_notices_loop' ); ?>
    \ No newline at end of file
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/messages/single.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/messages/single.php	(revision 0)
    @@ -0,0 +1,110 @@
    +<div id="message-thread" role="main">
    +
    +	<?php do_action( 'bp_before_message_thread_content' ); ?>
    +
    +	<?php if ( bp_thread_has_messages() ) : ?>
    +
    +		<h3 id="message-subject"><?php bp_the_thread_subject(); ?></h3>
    +
    +		<p id="message-recipients">
    +			<span class="highlight">
    +
    +				<?php if ( !bp_get_the_thread_recipients() ) : ?>
    +
    +					<?php _e( 'You are alone in this conversation.', 'buddypress' ); ?>
    +
    +				<?php else : ?>
    +
    +					<?php printf( __( 'Conversation between %s and you.', 'buddypress' ), bp_get_the_thread_recipients() ); ?>
    +
    +				<?php endif; ?>
    +
    +			</span>
    +
    +			<a class="button confirm" href="<?php bp_the_thread_delete_link(); ?>" title="<?php _e( "Delete Message", "buddypress" ); ?>"><?php _e( 'Delete', 'buddypress' ); ?></a> &nbsp;
    +		</p>
    +
    +		<?php do_action( 'bp_before_message_thread_list' ); ?>
    +
    +		<?php while ( bp_thread_messages() ) : bp_thread_the_message(); ?>
    +
    +			<div class="message-box <?php bp_the_thread_message_alt_class(); ?>">
    +
    +				<div class="message-metadata">
    +
    +					<?php do_action( 'bp_before_message_meta' ); ?>
    +
    +					<?php bp_the_thread_message_sender_avatar( 'type=thumb&width=30&height=30' ); ?>
    +					<strong><a href="<?php bp_the_thread_message_sender_link(); ?>" title="<?php bp_the_thread_message_sender_name(); ?>"><?php bp_the_thread_message_sender_name(); ?></a> <span class="activity"><?php bp_the_thread_message_time_since(); ?></span></strong>
    +
    +					<?php do_action( 'bp_after_message_meta' ); ?>
    +
    +				</div><!-- .message-metadata -->
    +
    +				<?php do_action( 'bp_before_message_content' ); ?>
    +
    +				<div class="message-content">
    +
    +					<?php bp_the_thread_message_content(); ?>
    +
    +				</div><!-- .message-content -->
    +
    +				<?php do_action( 'bp_after_message_content' ); ?>
    +
    +				<div class="clear"></div>
    +
    +			</div><!-- .message-box -->
    +
    +		<?php endwhile; ?>
    +
    +		<?php do_action( 'bp_after_message_thread_list' ); ?>
    +
    +		<?php do_action( 'bp_before_message_thread_reply' ); ?>
    +
    +		<form id="send-reply" action="<?php bp_messages_form_action(); ?>" method="post" class="standard-form">
    +
    +			<div class="message-box">
    +
    +				<div class="message-metadata">
    +
    +					<?php do_action( 'bp_before_message_meta' ); ?>
    +
    +					<div class="avatar-box">
    +						<?php bp_loggedin_user_avatar( 'type=thumb&height=30&width=30' ); ?>
    +
    +						<strong><?php _e( 'Send a Reply', 'buddypress' ); ?></strong>
    +					</div>
    +
    +					<?php do_action( 'bp_after_message_meta' ); ?>
    +
    +				</div><!-- .message-metadata -->
    +
    +				<div class="message-content">
    +
    +					<?php do_action( 'bp_before_message_reply_box' ); ?>
    +
    +					<textarea name="content" id="message_content" rows="15" cols="40"></textarea>
    +
    +					<?php do_action( 'bp_after_message_reply_box' ); ?>
    +
    +					<div class="submit">
    +						<input type="submit" name="send" value="<?php _e( 'Send Reply', 'buddypress' ); ?>" id="send_reply_button"/>
    +					</div>
    +
    +					<input type="hidden" id="thread_id" name="thread_id" value="<?php bp_the_thread_id(); ?>" />
    +					<input type="hidden" id="messages_order" name="messages_order" value="<?php bp_thread_messages_order(); ?>" />
    +					<?php wp_nonce_field( 'messages_send_message', 'send_message_nonce' ); ?>
    +
    +				</div><!-- .message-content -->
    +
    +			</div><!-- .message-box -->
    +
    +		</form><!-- #send-reply -->
    +
    +		<?php do_action( 'bp_after_message_thread_reply' ); ?>
    +
    +	<?php endif; ?>
    +
    +	<?php do_action( 'bp_after_message_thread_content' ); ?>
    +
    +</div>
    \ No newline at end of file
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/plugins.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/plugins.php	(revision 0)
    @@ -0,0 +1,47 @@
    +<div id="buddypress">
    +
    +	<?php do_action( 'bp_before_member_plugin_template' ); ?>
    +
    +	<div id="item-header">
    +
    +		<?php bp_get_template_part( 'members/single/member-header' ) ?>
    +
    +	</div><!-- #item-header -->
    +
    +	<div id="item-nav">
    +		<div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
    +			<ul>
    +
    +				<?php bp_get_displayed_user_nav(); ?>
    +
    +				<?php do_action( 'bp_member_options_nav' ); ?>
    +
    +			</ul>
    +		</div>
    +	</div><!-- #item-nav -->
    +
    +	<div id="item-body" role="main">
    +
    +		<?php do_action( 'bp_before_member_body' ); ?>
    +
    +		<div class="item-list-tabs no-ajax" id="subnav">
    +			<ul>
    +
    +				<?php bp_get_options_nav(); ?>
    +
    +				<?php do_action( 'bp_member_plugin_options_nav' ); ?>
    +
    +			</ul>
    +		</div><!-- .item-list-tabs -->
    +
    +		<h3><?php do_action( 'bp_template_title' ); ?></h3>
    +
    +		<?php do_action( 'bp_template_content' ); ?>
    +
    +		<?php do_action( 'bp_after_member_body' ); ?>
    +
    +	</div><!-- #item-body -->
    +
    +	<?php do_action( 'bp_after_member_plugin_template' ); ?>
    +
    +</div><!-- #buddypress -->
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/profile.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/profile.php	(revision 0)
    @@ -0,0 +1,48 @@
    +<?php
    +
    +/**
    + * BuddyPress - Users Profile
    + *
    + * @package BuddyPress
    + * @subpackage bp-legacy
    + */
    +
    +?>
    +
    +<?php if ( bp_is_my_profile() ) : ?>
    +
    +	<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    +		<ul>
    +
    +			<?php bp_get_options_nav(); ?>
    +
    +		</ul>
    +	</div><!-- .item-list-tabs -->
    +
    +<?php endif; ?>
    +
    +<?php do_action( 'bp_before_profile_content' ); ?>
    +
    +<div class="profile" role="main">
    +
    +	<?php
    +		// Profile Edit
    +		if ( bp_is_current_action( 'edit' ) )
    +			bp_get_template_part( 'members/single/profile/edit' );
    +
    +		// Change Avatar
    +		elseif ( bp_is_current_action( 'change-avatar' ) )
    +			bp_get_template_part( 'members/single/profile/change-avatar' );
    +
    +		// Display XProfile
    +		elseif ( bp_is_active( 'xprofile' ) )
    +			bp_get_template_part( 'members/single/profile/profile-loop' );
    +
    +		// Display WordPress profile (fallback)
    +		else
    +			bp_get_template_part( 'members/single/profile/profile-wp' )
    +	?>
    +
    +</div><!-- .profile -->
    +
    +<?php do_action( 'bp_after_profile_content' ); ?>
    \ No newline at end of file
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/profile/change-avatar.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/profile/change-avatar.php	(revision 0)
    @@ -0,0 +1,59 @@
    +<h4><?php _e( 'Change Avatar', 'buddypress' ); ?></h4>
    +
    +<?php do_action( 'bp_before_profile_avatar_upload_content' ); ?>
    +
    +<?php if ( !(int)bp_get_option( 'bp-disable-avatar-uploads' ) ) : ?>
    +
    +	<p><?php _e( 'Your avatar will be used on your profile and throughout the site. If there is a <a href="http://gravatar.com">Gravatar</a> associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress' ); ?></p>
    +
    +	<form action="" method="post" id="avatar-upload-form" class="standard-form" enctype="multipart/form-data">
    +
    +		<?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?>
    +
    +			<?php wp_nonce_field( 'bp_avatar_upload' ); ?>
    +			<p><?php _e( 'Click below to select a JPG, GIF or PNG format photo from your computer and then click \'Upload Image\' to proceed.', 'buddypress' ); ?></p>
    +
    +			<p id="avatar-upload">
    +				<input type="file" name="file" id="file" />
    +				<input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ); ?>" />
    +				<input type="hidden" name="action" id="action" value="bp_avatar_upload" />
    +			</p>
    +
    +			<?php if ( bp_get_user_has_avatar() ) : ?>
    +				<p><?php _e( "If you'd like to delete your current avatar but not upload a new one, please use the delete avatar button.", 'buddypress' ); ?></p>
    +				<p><a class="button edit" href="<?php bp_avatar_delete_link(); ?>" title="<?php _e( 'Delete Avatar', 'buddypress' ); ?>"><?php _e( 'Delete My Avatar', 'buddypress' ); ?></a></p>
    +			<?php endif; ?>
    +
    +		<?php endif; ?>
    +
    +		<?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>
    +
    +			<h5><?php _e( 'Crop Your New Avatar', 'buddypress' ); ?></h5>
    +
    +			<img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ); ?>" />
    +
    +			<div id="avatar-crop-pane">
    +				<img src="<?php bp_avatar_to_crop(); ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ); ?>" />
    +			</div>
    +
    +			<input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ); ?>" />
    +
    +			<input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src(); ?>" />
    +			<input type="hidden" id="x" name="x" />
    +			<input type="hidden" id="y" name="y" />
    +			<input type="hidden" id="w" name="w" />
    +			<input type="hidden" id="h" name="h" />
    +
    +			<?php wp_nonce_field( 'bp_avatar_cropstore' ); ?>
    +
    +		<?php endif; ?>
    +
    +	</form>
    +
    +<?php else : ?>
    +
    +	<p><?php _e( 'Your avatar will be used on your profile and throughout the site. To change your avatar, please create an account with <a href="http://gravatar.com">Gravatar</a> using the same email address as you used to register with this site.', 'buddypress' ); ?></p>
    +
    +<?php endif; ?>
    +
    +<?php do_action( 'bp_after_profile_avatar_upload_content' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/profile/edit.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/profile/edit.php	(revision 0)
    @@ -0,0 +1,157 @@
    +<?php do_action( 'bp_before_profile_edit_content' );
    +
    +if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) :
    +	while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    +
    +<form action="<?php bp_the_profile_group_edit_form_action(); ?>" method="post" id="profile-edit-form" class="standard-form <?php bp_the_profile_group_slug(); ?>">
    +
    +	<?php do_action( 'bp_before_profile_field_content' ); ?>
    +
    +		<h4><?php printf( __( "Editing '%s' Profile Group", "buddypress" ), bp_get_the_profile_group_name() ); ?></h4>
    +
    +		<ul class="button-nav">
    +
    +			<?php bp_profile_group_tabs(); ?>
    +
    +		</ul>
    +
    +		<div class="clear"></div>
    +
    +		<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    +
    +			<div<?php bp_field_css_class( 'editfield' ); ?>>
    +
    +				<?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>
    +
    +					<label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    +					<input type="text" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" value="<?php bp_the_profile_field_edit_value(); ?>" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>/>
    +
    +				<?php endif; ?>
    +
    +				<?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?>
    +
    +					<label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    +					<textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>><?php bp_the_profile_field_edit_value(); ?></textarea>
    +
    +				<?php endif; ?>
    +
    +				<?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?>
    +
    +					<label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    +					<select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>>
    +						<?php bp_the_profile_field_options(); ?>
    +					</select>
    +
    +				<?php endif; ?>
    +
    +				<?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?>
    +
    +					<label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    +					<select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" multiple="multiple" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>>
    +
    +						<?php bp_the_profile_field_options(); ?>
    +
    +					</select>
    +
    +					<?php if ( !bp_get_the_profile_field_is_required() ) : ?>
    +
    +						<a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name(); ?>' );"><?php _e( 'Clear', 'buddypress' ); ?></a>
    +
    +					<?php endif; ?>
    +
    +				<?php endif; ?>
    +
    +				<?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?>
    +
    +					<div class="radio">
    +						<span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span>
    +
    +						<?php bp_the_profile_field_options(); ?>
    +
    +						<?php if ( !bp_get_the_profile_field_is_required() ) : ?>
    +
    +							<a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name(); ?>' );"><?php _e( 'Clear', 'buddypress' ); ?></a>
    +
    +						<?php endif; ?>
    +					</div>
    +
    +				<?php endif; ?>
    +
    +				<?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?>
    +
    +					<div class="checkbox">
    +						<span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span>
    +
    +						<?php bp_the_profile_field_options(); ?>
    +					</div>
    +
    +				<?php endif; ?>
    +
    +				<?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?>
    +
    +					<div class="datebox">
    +						<label for="<?php bp_the_profile_field_input_name(); ?>_day"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    +
    +						<select name="<?php bp_the_profile_field_input_name(); ?>_day" id="<?php bp_the_profile_field_input_name(); ?>_day" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>>
    +
    +							<?php bp_the_profile_field_options( 'type=day' ); ?>
    +
    +						</select>
    +
    +						<select name="<?php bp_the_profile_field_input_name(); ?>_month" id="<?php bp_the_profile_field_input_name(); ?>_month" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>>
    +
    +							<?php bp_the_profile_field_options( 'type=month' ); ?>
    +
    +						</select>
    +
    +						<select name="<?php bp_the_profile_field_input_name(); ?>_year" id="<?php bp_the_profile_field_input_name(); ?>_year" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>>
    +
    +							<?php bp_the_profile_field_options( 'type=year' ); ?>
    +
    +						</select>
    +					</div>
    +
    +				<?php endif; ?>
    +
    +				<?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
    +					<p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    +						<?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _e( 'Change', 'buddypress' ); ?></a>
    +					</p>
    +
    +					<div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">
    +						<fieldset>
    +							<legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend>
    +
    +							<?php bp_profile_visibility_radio_buttons() ?>
    +
    +						</fieldset>
    +						<a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a>
    +					</div>
    +				<?php else : ?>
    +					<div class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    +						<?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?>
    +					</div>
    +				<?php endif ?>
    +
    +				<?php do_action( 'bp_custom_profile_edit_fields' ); ?>
    +
    +				<p class="description"><?php bp_the_profile_field_description(); ?></p>
    +			</div>
    +
    +		<?php endwhile; ?>
    +
    +	<?php do_action( 'bp_after_profile_field_content' ); ?>
    +
    +	<div class="submit">
    +		<input type="submit" name="profile-group-edit-submit" id="profile-group-edit-submit" value="<?php _e( 'Save Changes', 'buddypress' ); ?> " />
    +	</div>
    +
    +	<input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_group_field_ids(); ?>" />
    +
    +	<?php wp_nonce_field( 'bp_xprofile_edit' ); ?>
    +
    +</form>
    +
    +<?php endwhile; endif; ?>
    +
    +<?php do_action( 'bp_after_profile_edit_content' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/profile/profile-loop.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/profile/profile-loop.php	(revision 0)
    @@ -0,0 +1,48 @@
    +<?php do_action( 'bp_before_profile_loop_content' ); ?>
    +
    +<?php if ( bp_has_profile() ) : ?>
    +
    +	<?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    +
    +		<?php if ( bp_profile_group_has_fields() ) : ?>
    +
    +			<?php do_action( 'bp_before_profile_field_content' ); ?>
    +
    +			<div class="bp-widget <?php bp_the_profile_group_slug(); ?>">
    +
    +				<h4><?php bp_the_profile_group_name(); ?></h4>
    +
    +				<table class="profile-fields">
    +
    +					<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    +
    +						<?php if ( bp_field_has_data() ) : ?>
    +
    +							<tr<?php bp_field_css_class(); ?>>
    +
    +								<td class="label"><?php bp_the_profile_field_name(); ?></td>
    +
    +								<td class="data"><?php bp_the_profile_field_value(); ?></td>
    +
    +							</tr>
    +
    +						<?php endif; ?>
    +
    +						<?php do_action( 'bp_profile_field_item' ); ?>
    +
    +					<?php endwhile; ?>
    +
    +				</table>
    +			</div>
    +
    +			<?php do_action( 'bp_after_profile_field_content' ); ?>
    +
    +		<?php endif; ?>
    +
    +	<?php endwhile; ?>
    +
    +	<?php do_action( 'bp_profile_field_buttons' ); ?>
    +
    +<?php endif; ?>
    +
    +<?php do_action( 'bp_after_profile_loop_content' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/profile/profile-wp.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/profile/profile-wp.php	(revision 0)
    @@ -0,0 +1,73 @@
    +<?php do_action( 'bp_before_profile_loop_content' ); ?>
    +
    +<?php $ud = get_userdata( bp_displayed_user_id() ); ?>
    +
    +<?php do_action( 'bp_before_profile_field_content' ); ?>
    +
    +	<div class="bp-widget wp-profile">
    +		<h4><?php bp_is_my_profile() ? _e( 'My Profile', 'buddypress' ) : printf( __( "%s's Profile", 'buddypress' ), bp_get_displayed_user_fullname() ); ?></h4>
    +
    +		<table class="wp-profile-fields">
    +
    +			<?php if ( $ud->display_name ) : ?>
    +
    +				<tr id="wp_displayname">
    +					<td class="label"><?php _e( 'Name', 'buddypress' ); ?></td>
    +					<td class="data"><?php echo $ud->display_name; ?></td>
    +				</tr>
    +
    +			<?php endif; ?>
    +
    +			<?php if ( $ud->user_description ) : ?>
    +
    +				<tr id="wp_desc">
    +					<td class="label"><?php _e( 'About Me', 'buddypress' ); ?></td>
    +					<td class="data"><?php echo $ud->user_description; ?></td>
    +				</tr>
    +
    +			<?php endif; ?>
    +
    +			<?php if ( $ud->user_url ) : ?>
    +
    +				<tr id="wp_website">
    +					<td class="label"><?php _e( 'Website', 'buddypress' ); ?></td>
    +					<td class="data"><?php echo make_clickable( $ud->user_url ); ?></td>
    +				</tr>
    +
    +			<?php endif; ?>
    +
    +			<?php if ( $ud->jabber ) : ?>
    +
    +				<tr id="wp_jabber">
    +					<td class="label"><?php _e( 'Jabber', 'buddypress' ); ?></td>
    +					<td class="data"><?php echo $ud->jabber; ?></td>
    +				</tr>
    +
    +			<?php endif; ?>
    +
    +			<?php if ( $ud->aim ) : ?>
    +
    +				<tr id="wp_aim">
    +					<td class="label"><?php _e( 'AOL Messenger', 'buddypress' ); ?></td>
    +					<td class="data"><?php echo $ud->aim; ?></td>
    +				</tr>
    +
    +			<?php endif; ?>
    +
    +			<?php if ( $ud->yim ) : ?>
    +
    +				<tr id="wp_yim">
    +					<td class="label"><?php _e( 'Yahoo Messenger', 'buddypress' ); ?></td>
    +					<td class="data"><?php echo $ud->yim; ?></td>
    +				</tr>
    +
    +			<?php endif; ?>
    +
    +		</table>
    +	</div>
    +
    +<?php do_action( 'bp_after_profile_field_content' ); ?>
    +
    +<?php do_action( 'bp_profile_field_buttons' ); ?>
    +
    +<?php do_action( 'bp_after_profile_loop_content' ); ?>
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/settings.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/settings.php	(revision 0)
    @@ -0,0 +1,40 @@
    +<?php
    +
    +/**
    + * BuddyPress - Users Settings
    + *
    + * @package BuddyPress
    + * @subpackage bp-legacy
    + */
    +
    +?>
    +
    +<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    +	<ul>
    +		<?php if ( bp_is_my_profile() ) : ?>
    +		
    +			<?php bp_get_options_nav(); ?>
    +		
    +		<?php endif; ?>
    +	</ul>
    +</div>
    +
    +<?php
    +
    +switch ( bp_current_action() ) :
    +	case 'notifications'  :
    +		bp_get_template_part( 'members/single/settings/notifications'  );
    +		break;
    +	case 'capabilities'   :
    +		bp_get_template_part( 'members/single/settings/capabilities'   );
    +		break;
    +	case 'delete-account' :
    +		bp_get_template_part( 'members/single/settings/delete-account' );
    +		break;
    +	case 'general'        :
    +		bp_get_template_part( 'members/single/settings/general'        );
    +		break;
    +	default:
    +		bp_get_template_part( 'members/single/plugins'                 );
    +		break;
    +endswitch;;
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/settings/capabilities.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/settings/capabilities.php	(revision 0)
    @@ -0,0 +1,34 @@
    +<div id="buddypress">
    +
    +	<?php do_action( 'bp_before_member_settings_template' ); ?>
    +
    +	<div id="item-body" role="main">
    +
    +		<?php do_action( 'bp_before_member_body' ); ?>
    +
    +		<form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/capabilities/'; ?>" name="account-capabilities-form" id="account-capabilities-form" class="standard-form" method="post">
    +
    +			<?php do_action( 'bp_members_capabilities_account_before_submit' ); ?>
    +
    +			<label>
    +				<input type="checkbox" name="user-spammer" id="user-spammer" value="1" <?php checked( bp_is_user_spammer( bp_displayed_user_id() ) ); ?> />
    +				 <?php _e( 'This user is a spammer.', 'buddypress' ); ?>
    +			</label>
    +
    +			<div class="submit">
    +				<input type="submit" value="<?php _e( 'Save', 'buddypress' ); ?>" id="capabilities-submit" name="capabilities-submit" />
    +			</div>
    +
    +			<?php do_action( 'bp_members_capabilities_account_after_submit' ); ?>
    +
    +			<?php wp_nonce_field( 'capabilities' ); ?>
    +
    +		</form>
    +
    +		<?php do_action( 'bp_after_member_body' ); ?>
    +
    +	</div><!-- #item-body -->
    +
    +	<?php do_action( 'bp_after_member_settings_template' ); ?>
    +
    +</div><!-- #buddypress -->
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/settings/delete-account.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/settings/delete-account.php	(revision 0)
    @@ -0,0 +1,48 @@
    +<div id="buddypress">
    +
    +	<?php do_action( 'bp_before_member_settings_template' ); ?>
    +
    +	<div id="item-body" role="main">
    +
    +		<?php do_action( 'bp_before_member_body' ); ?>
    +
    +		<div id="message" class="info">
    +
    +			<?php if ( bp_is_my_profile() ) : ?>
    +
    +				<p><?php _e( 'Deleting your account will delete all of the content you have created. It will be completely irrecoverable.', 'buddypress' ); ?></p>
    +
    +			<?php else : ?>
    +
    +				<p><?php _e( 'Deleting this account will delete all of the content it has created. It will be completely irrecoverable.', 'buddypress' ); ?></p>
    +
    +			<?php endif; ?>
    +
    +		</div>
    +
    +		<form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/delete-account'; ?>" name="account-delete-form" id="account-delete-form" class="standard-form" method="post">
    +
    +			<?php do_action( 'bp_members_delete_account_before_submit' ); ?>
    +
    +			<label>
    +				<input type="checkbox" name="delete-account-understand" id="delete-account-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-account-button').disabled = ''; } else { document.getElementById('delete-account-button').disabled = 'disabled'; }" />
    +				 <?php _e( 'I understand the consequences.', 'buddypress' ); ?>
    +			</label>
    +
    +			<div class="submit">
    +				<input type="submit" disabled="disabled" value="<?php _e( 'Delete Account', 'buddypress' ); ?>" id="delete-account-button" name="delete-account-button" />
    +			</div>
    +
    +			<?php do_action( 'bp_members_delete_account_after_submit' ); ?>
    +
    +			<?php wp_nonce_field( 'delete-account' ); ?>
    +
    +		</form>
    +
    +		<?php do_action( 'bp_after_member_body' ); ?>
    +
    +	</div><!-- #item-body -->
    +
    +	<?php do_action( 'bp_after_member_settings_template' ); ?>
    +
    +</div><!-- #buddypress -->
    \ No newline at end of file
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/settings/general.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/settings/general.php	(revision 0)
    @@ -0,0 +1,45 @@
    +<div id="buddypress">
    +
    +	<?php do_action( 'bp_before_member_settings_template' ); ?>
    +
    +	<div id="item-body" role="main">
    +
    +		<?php do_action( 'bp_before_member_body' ); ?>
    +
    +		<?php do_action( 'bp_template_content' ); ?>
    +
    +		<form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/general'; ?>" method="post" class="standard-form" id="settings-form">
    +
    +			<?php if ( !is_super_admin() ) : ?>
    +
    +				<label for="pwd"><?php _e( 'Current Password <span>(required to update email or change current password)</span>', 'buddypress' ); ?></label>
    +				<input type="password" name="pwd" id="pwd" size="16" value="" class="settings-input small" /> &nbsp;<a href="<?php echo site_url( add_query_arg( array( 'action' => 'lostpassword' ), 'wp-login.php' ), 'login' ); ?>" title="<?php _e( 'Password Lost and Found', 'buddypress' ); ?>"><?php _e( 'Lost your password?', 'buddypress' ); ?></a>
    +
    +			<?php endif; ?>
    +
    +			<label for="email"><?php _e( 'Account Email', 'buddypress' ); ?></label>
    +			<input type="text" name="email" id="email" value="<?php echo bp_get_displayed_user_email(); ?>" class="settings-input" />
    +
    +			<label for="pass1"><?php _e( 'Change Password <span>(leave blank for no change)</span>', 'buddypress' ); ?></label>
    +			<input type="password" name="pass1" id="pass1" size="16" value="" class="settings-input small" /> &nbsp;<?php _e( 'New Password', 'buddypress' ); ?><br />
    +			<input type="password" name="pass2" id="pass2" size="16" value="" class="settings-input small" /> &nbsp;<?php _e( 'Repeat New Password', 'buddypress' ); ?>
    +
    +			<?php do_action( 'bp_core_general_settings_before_submit' ); ?>
    +
    +			<div class="submit">
    +				<input type="submit" name="submit" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" id="submit" class="auto" />
    +			</div>
    +
    +			<?php do_action( 'bp_core_general_settings_after_submit' ); ?>
    +
    +			<?php wp_nonce_field( 'bp_settings_general' ); ?>
    +
    +		</form>
    +
    +		<?php do_action( 'bp_after_member_body' ); ?>
    +
    +	</div><!-- #item-body -->
    +
    +	<?php do_action( 'bp_after_member_settings_template' ); ?>
    +
    +</div><!-- #buddypress -->
    \ No newline at end of file
    new file mode 100644
    ---bp-theme-compat/bp-legacy/buddypress/members/single/settings/notifications.php	(revision 0)n+++bp-theme-compat/bp-legacy/buddypress/members/single/settings/notifications.php	(revision 0)
    @@ -0,0 +1,34 @@
    +<div id="buddypress">
    +
    +	<?php do_action( 'bp_before_member_settings_template' ); ?>
    +
    +	<div id="item-body" role="main">
    +
    +		<?php do_action( 'bp_before_member_body' ); ?>
    +
    +		<?php do_action( 'bp_template_content' ); ?>
    +
    +		<form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/notifications'; ?>" method="post" class="standard-form" id="settings-form">
    +			<p><?php _e( 'Send a notification by email when:', 'buddypress' ); ?></p>
    +
    +			<?php do_action( 'bp_notification_settings' ); ?>
    +
    +			<?php do_action( 'bp_members_notification_settings_before_submit' ); ?>
    +
    +			<div class="submit">
    +				<input type="submit" name="submit" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" id="submit" class="auto" />
    +			</div>
    +
    +			<?php do_action( 'bp_members_notification_settings_after_submit' ); ?>
    +
    +			<?php wp_nonce_field('bp_settings_notifications' ); ?>
    +
    +		</form>
    +
    +		<?php do_action( 'bp_after_member_body' ); ?>
    +
    +	</div><!-- #item-body -->
    +
    +	<?php do_action( 'bp_after_member_settings_template' ); ?>
    +
    +</div><!-- #buddypress -->
    \ No newline at end of file
    new file mode 100644
    ---bp-theme-compat/bp-legacy/css/buddypress.css	(revision 0)n+++bp-theme-compat/bp-legacy/css/buddypress.css	(revision 0)
    @@ -0,0 +1,1350 @@
    +/*--------------------------------------------------------------
    +Hello, this is the BuddyPress Default theme stylesheet.
    +
    +----------------------------------------------------------------
    +>>> TABLE OF CONTENTS:
    +----------------------------------------------------------------
    +4.0 - Navigation
    +	4.1 - Pagination
    +5.0 - WordPress
    +	5.1 - Alignments
    +	5.2 - Comments
    +	5.3 - Gallery
    +	5.4 - Images
    +	5.5 - Posts
    +6.0 - BuddyPress
    +	6.1 - Activity
    +		6.1.1 - Activity Listing
    +		6.1.2 - Activity Comments
    +	6.2 - Toolbar
    +	6.3 - Directories - Members, Groups, Blogs, Forums
    +	6.4 - Error / Success Messages
    +	6.5 - Forms
    +	6.6 - Ajax Loading
    +	6.7 - Topics and Tables - Forums and General
    +	6.8 - Headers, Lists and Tabs - Activity, Groups, Blogs, Forums
    +	6.9 - Private Messaging Threads
    +	6.10 - Extended Profiles
    +--------------------------------------------------------------*/
    +
    +/*--------------------------------------------------------------
    +4.1 - Pagination
    +--------------------------------------------------------------*/
    +#buddypress div.pagination {
    +	background: #f4f4f4;
    +	border: none;
    +	color: #888;
    +	font-size: 11px;
    +	margin: -20px 0 20px 0;
    +	position: relative;
    +	display: block;
    +	float: left;
    +	width: 100%;
    +	padding: 10px 0;
    +}
    +#buddypress div.pagination .pag-count {
    +	float: left;
    +	margin-left: 10px;
    +}
    +#buddypress div.pagination .pagination-links {
    +	float: right;
    +	margin-right: 10px;
    +}
    +#buddypress div.pagination .pagination-links span,
    +#buddypress div.pagination .pagination-links a {
    +	font-size: 12px;
    +	padding: 0 5px;
    +}
    +#buddypress div.pagination .pagination-links a:hover {
    +	font-weight: bold;
    +}
    +#buddypress noscript div.pagination {
    +	margin-bottom: 15px;
    +}
    +#buddypress div#pag-bottom {
    +	margin-top: -1px;
    +}
    +#buddypress #nav-above {
    +	display: none;
    +}
    +#buddypress .paged #nav-above {
    +	display: block;
    +}
    +
    +/*--------------------------------------------------------------
    +5.4 - Images
    +--------------------------------------------------------------*/
    +#buddypress img.wp-smiley {
    +	border: none !important;
    +	clear: none !important;
    +	float: none !important;
    +	margin: 0 !important;
    +	padding: 0 !important;
    +}
    +
    +/*--------------------------------------------------------------
    +6.0 - BuddyPress
    +--------------------------------------------------------------*/
    +/*--------------------------------------------------------------
    +6.1 - Activity
    +--------------------------------------------------------------*/
    +#buddypress #activity-stream {
    +	margin-top: -5px;
    +}
    +#buddypress #item-body form#whats-new-form {
    +	border-bottom: 1px solid #ddd;
    +	margin: 20px 0 10px;
    +	padding: 0 0 20px;
    +}
    +#buddypress .home-page form#whats-new-form {
    +	border-bottom: none;
    +	padding-bottom: 0;
    +}
    +#buddypress form#whats-new-form #whats-new-avatar {
    +	float: left;
    +}
    +#buddypress form#whats-new-form #whats-new-content {
    +	margin-left: 55px;
    +	padding: 0 0 20px 20px;
    +}
    +#buddypress form#whats-new-form textarea {
    +	background: #fff;
    +	border: 1px inset #ccc;
    +	-moz-border-radius: 3px;
    +	-webkit-border-radius: 3px;
    +	border-radius: 3px;
    +	color: #555;
    +	font-family: inherit;
    +	font-size: 14px;
    +	height: 20px;
    +	padding: 6px;
    +	width: 98%;
    +}
    +body.no-js #buddypress form#whats-new-form textarea {
    +	height: 50px;
    +}
    +#buddypress form#whats-new-form #whats-new-options select {
    +	max-width: 200px;
    +	margin-top: 12px;
    +}
    +#buddypress form#whats-new-form #whats-new-submit {
    +	float: right;
    +	margin-top: 12px;
    +}
    +#buddypress #whats-new-options {
    +	overflow: auto;
    +	height: 0;
    +}
    +body.no-js #buddypress #whats-new-options {
    +	height: auto;
    +}
    +#buddypress #whats-new:focus {
    +	border-color: rgba(31, 179, 221, 0.9) !important;
    +	outline-color: rgba(31, 179, 221, 0.9);
    +	box-shadow: 0 0 7px         rgba(31, 179, 221, 0.7);
    +	-moz-box-shadow: 0 0 7px    rgba(31, 179, 221, 0.7);
    +	-webkit-box-shadow: 0 0 7px rgba(31, 179, 221, 0.7);
    +}
    +
    +/*--------------------------------------------------------------
    +6.1.1 - Activity Listing
    +--------------------------------------------------------------*/
    +#buddypress ul.activity-list li {
    +	overflow: hidden;
    +	padding: 15px 0 0;
    +}
    +#buddypress .activity-list .activity-avatar {
    +	float: left;
    +}
    +#buddypress ul.activity-list > li:first-child {
    +	padding-top: 5px;
    +}
    +#buddypress ul.item-list.activity-list li.has-comments {
    +	padding-bottom: 15px;
    +}
    +body.activity-permalink #buddypress ul.activity-list li.has-comments {
    +	padding-bottom: 0;
    +}
    +#buddypress .activity-list li.mini {
    +	font-size: 11px;
    +	min-height: 35px;
    +	padding: 15px 0 0 0;
    +	position: relative;
    +}
    +#buddypress .activity-list li.mini .activity-avatar img.avatar,
    +#buddypress .activity-list li.mini .activity-avatar img.FB_profile_pic {
    +	height: 20px;
    +	margin-left: 30px;
    +	width: 20px;
    +}
    +#buddypress .activity-permalink .activity-list li.mini .activity-avatar img.avatar,
    +#buddypress .activity-permalink .activity-list li.mini .activity-avatar img.FB_profile_pic {
    +	height: auto;
    +	margin-left: 0;
    +	width: auto;
    +}
    +body.activity-permalink #buddypress .activity-list > li:first-child {
    +	padding-top: 0;
    +}
    +#buddypress .activity-list li .activity-content {
    +	position: relative;
    +}
    +#buddypress .activity-list li.mini .activity-content p {
    +	margin: 0;
    +}
    +#buddypress .activity-list li.mini .activity-comments {
    +	clear: both;
    +	font-size: 12px;
    +}
    +body.activity-permalink #buddypress li.mini .activity-meta {
    +	margin-top: 4px;
    +}
    +#buddypress .activity-list li .activity-inreplyto {
    +	color: #888;
    +	font-size: 11px;
    +	margin-left: 5px;
    +	margin-top: 5px;
    +	padding-left: 25px;
    +}
    +#buddypress .activity-list li .activity-inreplyto > p {
    +	margin: 0;
    +	display: inline;
    +}
    +#buddypress .activity-list li .activity-inreplyto blockquote,
    +#buddypress .activity-list li .activity-inreplyto div.activity-inner {
    +	background: none;
    +	border: none;
    +	display: inline;
    +	margin: 0;
    +	overflow: hidden;
    +	padding: 0;
    +}
    +#buddypress .activity-list .activity-content {
    +	margin-left: 70px;
    +	margin-bottom: 15px;
    +}
    +body.activity-permalink #buddypress .activity-list li .activity-content {
    +	background: #fff;
    +	border-bottom: 1px solid #ddd;
    +	border-right: 1px solid #ddd;
    +	border-radius: 4px;
    +	font-size: 16px;
    +	line-height: 150%;
    +	min-height: 35px;
    +	margin-left: 185px;
    +	margin-right: 0;
    +	padding: 15px;
    +}
    +body.activity-permalink #buddypress .activity-list li .activity-header > p {
    +	height: 35px;
    +	margin-bottom: 0;
    +	margin-left: -35px;
    +	padding: 5px 0 0 35px;
    +}
    +#buddypress .activity-list .activity-content .activity-header,
    +#buddypress .activity-list .activity-content .comment-header {
    +	color: #888;
    +	font-size: 11px;
    +	line-height: 220%;
    +}
    +#buddypress .activity-header {
    +	margin-right: 20px;
    +}
    +#buddypress .activity-header a,
    +#buddypress .comment-meta a,
    +#buddypress .acomment-meta a {
    +	text-decoration: none;
    +}
    +#buddypress .activity-list .activity-content .activity-header img.avatar {
    +	float: none !important;
    +	margin: 0 5px -8px 0 !important;
    +}
    +#buddypress a.bp-secondary-action,
    +#buddypress span.highlight {
    +	font-size: 11px;
    +	padding: 0;
    +	margin-right: 5px;
    +	text-decoration: none;
    +}
    +#buddypress .activity-list .activity-content .activity-inner,
    +#buddypress .activity-list .activity-content blockquote {
    +	margin: 10px 10px 5px 0;
    +	overflow: hidden;
    +}
    +#buddypress .activity-list li.new_forum_post .activity-content .activity-inner,
    +#buddypress .activity-list li.new_forum_topic .activity-content .activity-inner {
    +	border-left: 2px solid #EAEAEA;
    +	margin-left: 5px;
    +	padding-left: 10px;
    +}
    +body.activity-permalink #buddypress .activity-content .activity-inner,
    +body.activity-permalink #buddypress .activity-content blockquote {
    +	margin-left: 0;
    +	margin-top: 5px;
    +}
    +#buddypress .activity-inner > p {
    +	word-wrap: break-word;
    +}
    +#buddypress .activity-inner > .activity-inner {
    +	margin: 0 !important;
    +}
    +#buddypress .activity-inner > blockquote {
    +	margin: 0 !important;
    +}
    +#buddypress .activity-list .activity-content img.thumbnail {
    +	border: 2px solid #eee;
    +	float: left;
    +	margin: 0 10px 5px 0;
    +}
    +#buddypress .activity-read-more {
    +	margin-left: 1em;
    +	white-space: nowrap;
    +}
    +#buddypress .activity-list li.load-more {
    +	background: #f0f0f0 !important;
    +	border-right: 1px solid #ddd;
    +	border-bottom: 1px solid #ddd;
    +	-moz-border-radius: 4px;
    +	-webkit-border-radius: 4px;
    +	border-radius: 4px;
    +	font-size: 1.2em;
    +	margin: 15px 0 !important;
    +	padding: 10px 15px !important;
    +	text-align: center;
    +}
    +#buddypress .activity-list li.load-more a {
    +	color: #4D4D4D;
    +}
    +
    +
    +/*--------------------------------------------------------------
    +6.1.2 - Activity Comments
    +--------------------------------------------------------------*/
    +#buddypress div.activity-meta {
    +	margin: 18px 0;
    +}
    +body.activity-permalink #buddypress div.activity-meta {
    +	margin-bottom: 6px;
    +}
    +#buddypress div.activity-meta a {
    +	font: normal 11px/20px Arial, Tahoma, Verdana, sans-serif;
    +	padding: 4px 8px;
    +}
    +#buddypress a.activity-time-since {
    +	color: #aaa;
    +	text-decoration: none;
    +}
    +#buddypress a.activity-time-since:hover {
    +	color: #888;
    +	text-decoration: underline;
    +}
    +#buddypress a.bp-primary-action,
    +#buddypress #reply-title small a {
    +	font-size: 11px;
    +	margin-right: 5px;
    +	text-decoration: none;
    +}
    +#buddypress a.bp-primary-action span,
    +#buddypress #reply-title small a span {
    +	background: #999;
    +	border-radius: 3px;
    +	color: #fff;
    +	font-size: 90%;
    +	margin-left: 2px;
    +	padding: 0 5px;
    +}
    +#buddypress a.bp-primary-action:hover span,
    +#buddypress #reply-title small a:hover span {
    +	background: #555;
    +	color: #fff;
    +}
    +#buddypress div.activity-comments {
    +	margin: 0 0 0 70px;
    +	overflow: hidden; /* IE fix */
    +	position: relative;
    +	width: auto;
    +	clear: both;
    +}
    +body.activity-permalink #buddypress div.activity-comments {
    +	background: none;
    +	margin-left: 185px;
    +	width: auto;
    +}
    +#buddypress div.activity-comments > ul {
    +	background: #f5f5f5;
    +	border-radius: 4px;
    +	padding: 0 0 0 10px;
    +}
    +#buddypress div.activity-comments ul,
    +#buddypress div.activity-comments ul li {
    +	border: none;
    +	list-style: none;
    +}
    +#buddypress div.activity-comments ul {
    +	clear: both;
    +}
    +#buddypress div.activity-comments ul li {
    +	border-top: 2px solid #fff;
    +	padding: 10px 0 0;
    +}
    +body.activity-permalink #buddypress .activity-list li.mini .activity-comments {
    +	clear: none;
    +	margin-top: 0;
    +}
    +body.activity-permalink #buddypress div.activity-comments ul li {
    +	border-width: 1px;
    +	padding: 10px 0 0 0;
    +}
    +#buddypress div.activity-comments > ul > li:first-child {
    +	border-top: none;
    +}
    +#buddypress div.activity-comments ul li:last-child {
    +	margin-bottom: 0;
    +}
    +#buddypress div.activity-comments ul li > ul {
    +	margin-left: 30px;
    +	margin-top: 0;
    +	padding-left: 10px;
    +}
    +body.activity-permalink #buddypress div.activity-comments ul li > ul {
    +	margin-top: 10px;
    +}
    +body.activity-permalink #buddypress div.activity-comments > ul {
    +	padding: 0 10px 0 15px;
    +}
    +#buddypress div.activity-comments div.acomment-avatar img {
    +	border-width: 2px !important;
    +	float: left;
    +	height: 25px;
    +	margin-right: 10px;
    +	width: 25px;
    +}
    +#buddypress div.activity-comments div.acomment-content {
    +	font-size: 11px;
    +	margin: 5px 0 0 40px;
    +}
    +#buddypress div.acomment-content .time-since,
    +#buddypress div.acomment-content .activity-delete-link,
    +#buddypress div.acomment-content .comment-header {
    +	display: none;
    +}
    +body.activity-permalink #buddypress div.activity-comments div.acomment-content {
    +	font-size: 14px;
    +}
    +#buddypress div.activity-comments div.acomment-meta {
    +	color: #888;
    +	font-size: 11px;
    +}
    +#buddypress div.activity-comments form.ac-form {
    +	background: #fafafa;
    +	border: 1px solid #ddd;
    +	border-radius: 4px;
    +	display: none;
    +	margin: 0 0 15px 33px;
    +	padding: 8px;
    +}
    +#buddypress div.activity-comments li form.ac-form {
    +	margin-right: 15px;
    +	clear: both;
    +}
    +#buddypress div.activity-comments form.root {
    +	margin-left: 0;
    +}
    +#buddypress div.activity-comments div#message {
    +	margin-top: 15px;
    +	margin-bottom: 0;
    +}
    +#buddypress div.activity-comments form .ac-textarea {
    +	background: #fff;
    +	border: 1px inset #ccc;
    +	border-radius: 3px;
    +	margin-bottom: 10px;
    +	padding: 8px;
    +}
    +#buddypress div.activity-comments form textarea {
    +	border: none;
    +	color: #555;
    +	font-family: inherit;
    +	font-size: 11px;
    +	height: 60px;
    +	padding: 0;
    +	width: 100%;
    +}
    +#buddypress div.activity-comments form input {
    +	margin-top: 5px;
    +}
    +#buddypress div.activity-comments form div.ac-reply-avatar {
    +	float: left;
    +}
    +#buddypress div.ac-reply-avatar img {
    +	border: 2px solid #fff !important;
    +}
    +#buddypress div.activity-comments form div.ac-reply-content {
    +	color: #888;
    +	font-size: 11px;
    +	margin-left: 50px;
    +	padding-left: 15px;
    +}
    +#buddypress .acomment-options {
    +	float: left;
    +	margin: 5px 0 5px 40px;
    +}
    +#buddypress .acomment-options a {
    +	color: #999;
    +}
    +#buddypress .acomment-options a:hover {
    +	color: inherit;
    +}
    +
    +/*--------------------------------------------------------------
    +6.3 - Directories - Members, Groups, Blogs, Forums
    +--------------------------------------------------------------*/
    +#buddypress div.dir-search {
    +	float: right;
    +	margin: -39px 0 0 0;
    +}
    +#buddypress div.dir-search input[type=text] {
    +	font-size: 12px;
    +	padding: 1px 3px;
    +}
    +
    +/*--------------------------------------------------------------
    +6.4 - Errors / Success Messages
    +--------------------------------------------------------------*/
    +#buddypress div#message {
    +	margin: 0 0 15px;
    +}
    +#buddypress #message.info {
    +	margin-bottom: 0;
    +}
    +#buddypress div#message.updated {
    +	clear: both;
    +}
    +#buddypress div#message p {
    +	font-size: 12px;
    +	display: block;
    +	padding: 10px 15px;
    +}
    +#buddypress div#message.error p {
    +	background-color: #db1717;
    +	border-color: #a71a1a;
    +	clear: left;
    +	color: #fff;
    +}
    +#buddypress div#message.updated p {
    +	background-color: #8ff57a;
    +	border-color: #80cf70;
    +	color: #1a6a00;
    +}
    +#buddypress .standard-form#signup_form div div.error {
    +	background: #e41717;
    +	-moz-border-radius: 3px;
    +	-webkit-border-radius: 3px;
    +	border-radius: 3px;
    +	color: #fff;
    +	margin: 0 0 10px 0;
    +	padding: 6px;
    +	width: 90%;
    +}
    +#buddypress div.accept,
    +#buddypress div.reject {
    +	float: left;
    +	margin-left: 10px;
    +}
    +#buddypress ul.button-nav li {
    +	float: left;
    +	margin: 0 10px 10px 0;
    +}
    +#buddypress ul.button-nav li.current a {
    +	font-weight: bold;
    +}
    +
    +
    +/*--------------------------------------------------------------
    +6.5 - Forms
    +--------------------------------------------------------------*/
    +#buddypress .standard-form textarea,
    +#buddypress .standard-form input[type=text],
    +#buddypress .standard-form select,
    +#buddypress .standard-form input[type=password],
    +#buddypress .dir-search input[type=text] {
    +	border: 1px inset #ccc;
    +	border-radius: 3px;
    +	color: #888;
    +	font: inherit;
    +	font-size: 14px;
    +	padding: 6px;
    +}
    +#buddypress .standard-form select {
    +	padding: 3px;
    +}
    +#buddypress .standard-form input[type=password] {
    +	margin-bottom: 5px;
    +}
    +#buddypress .standard-form label,
    +#buddypress .standard-form span.label {
    +	display: block;
    +	font-weight: bold;
    +	margin: 15px 0 5px 0;
    +}
    +#buddypress .standard-form div.checkbox label,
    +#buddypress .standard-form div.radio label {
    +	color: #888;
    +	font-size: 14px;
    +	font-weight: normal;
    +	margin: 5px 0 0 0;
    +}
    +#buddypress .standard-form#sidebar-login-form label {
    +	margin-top: 5px;
    +}
    +#buddypress .standard-form input[type=text] {
    +	width: 75%;
    +}
    +#buddypress .standard-form#sidebar-login-form input[type=text],
    +#buddypress .standard-form#sidebar-login-form input[type=password] {
    +	padding: 4px;
    +	width: 95%;
    +}
    +#buddypress .standard-form #basic-details-section input[type=password],
    +#buddypress .standard-form #blog-details-section input#signup_blog_url {
    +	width: 35%;
    +}
    +#buddypress .standard-form#signup_form input[type=text],
    +#buddypress .standard-form#signup_form textarea,
    +#buddypress .form-allowed-tags,
    +#buddypress #commentform input[type=text],
    +#buddypress #commentform textarea {
    +	width: 90%;
    +}
    +#buddypress .standard-form#signup_form div.submit {
    +	float: right;
    +}
    +#buddypress div#signup-avatar img {
    +	margin: 0 15px 10px 0;
    +}
    +#buddypress .standard-form textarea {
    +	width: 75%;
    +	height: 120px;
    +}
    +#buddypress .standard-form textarea#message_content {
    +	height: 200px;
    +}
    +#buddypress .standard-form#send-reply textarea {
    +	width: 97.5%;
    +}
    +#buddypress .standard-form p.description {
    +	color: #888;
    +	font-size: 11px;
    +	margin: 5px 0;
    +}
    +#buddypress .standard-form div.submit {
    +	clear: both;
    +	padding: 15px 0 0 0;
    +}
    +#buddypress .standard-form p.submit {
    +	margin-bottom: 0;
    +	padding: 15px 0 0 0;
    +}
    +#buddypress .standard-form div.submit input {
    +	margin-right: 15px;
    +}
    +#buddypress .standard-form div.radio ul {
    +	margin: 10px 0 15px 38px;
    +	list-style: disc;
    +}
    +#buddypress .standard-form div.radio ul li {
    +	margin-bottom: 5px;
    +}
    +#buddypress .standard-form a.clear-value {
    +	display: block;
    +	margin-top: 5px;
    +	outline: none;
    +}
    +#buddypress .standard-form #basic-details-section,
    +#buddypress .standard-form #blog-details-section,
    +#buddypress .standard-form #profile-details-section {
    +	float: left;
    +	width: 48%;
    +}
    +#buddypress .standard-form #profile-details-section {
    +	float: right;
    +}
    +#buddypress .standard-form #blog-details-section {
    +	clear: left;
    +}
    +#buddypress .standard-form input:focus,
    +#buddypress .standard-form textarea:focus,
    +#buddypress .standard-form select:focus {
    +	background: #fafafa;
    +	color: #555;
    +}
    +#buddypress form#send-invite-form {
    +	margin-top: 20px;
    +}
    +#buddypress div#invite-list {
    +	background: #f5f5f5;
    +	border: 1px solid #e4e4e4;
    +	border-radius: 3px;
    +	height: 400px;
    +	margin: 0 0 10px;
    +	overflow: auto;
    +	padding: 5px;
    +	width: 160px;
    +}
    +#buddypress button,
    +#buddypress a.button,
    +#buddypress input[type=submit],
    +#buddypress input[type=button],
    +#buddypress input[type=reset],
    +#buddypress ul.button-nav li a,
    +#buddypress div.generic-button a,
    +#buddypress .comment-reply-link {
    +	background: #fff; /* Old browsers */
    +	background: -moz-linear-gradient(top, #ffffff 0%, #ededed 100%); /* FF3.6+ */
    +	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#ededed)); /* Chrome,Safari4+ */
    +	background: -webkit-linear-gradient(top, #ffffff 0%,#ededed 100%); /* Chrome10+,Safari5.1+ */
    +	background: -o-linear-gradient(top, #ffffff 0%,#ededed 100%); /* Opera11.10+ */
    +	background: -ms-linear-gradient(top, #ffffff 0%,#ededed 100%); /* IE10+ */
    +	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed',GradientType=0 ); /* IE6-9 */
    +	background: linear-gradient(top, #ffffff 0%,#ededed 100%); /* W3C */
    +	border: 1px solid #ccc;
    +	-moz-border-radius: 3px;
    +	-webkit-border-radius: 3px;
    +	border-radius: 3px;
    +	color: #777;
    +	cursor: pointer;
    +	font: normal 12px/20px Arial, Tahoma, Verdana, sans-serif;
    +	outline: none;
    +	padding: 4px 10px;
    +	text-align: center;
    +	text-decoration: none;
    +	line-height: 14px;
    +}
    +#buddypress button:hover,
    +#buddypress a.button:hover,
    +#buddypress a.button:focus,
    +#buddypress input[type=submit]:hover,
    +#buddypress input[type=button]:hover,
    +#buddypress input[type=reset]:hover,
    +#buddypress ul.button-nav li a:hover,
    +#buddypress ul.button-nav li.current a,
    +#buddypress div.generic-button a:hover,
    +#buddypress .comment-reply-link:hover {
    +	background: #ededed;
    +	background: -moz-linear-gradient(top, #ffffff 0%, #e0e0e0 100%); /* FF3.6+ */
    +	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e0e0e0)); /* Chrome,Safari4+ */
    +	background: -webkit-linear-gradient(top, #ffffff 0%,#e0e0e0 100%); /* Chrome10+,Safari5.1+ */
    +	background: -o-linear-gradient(top, #ffffff 0%,#e0e0e0 100%); /* Opera11.10+ */
    +	background: -ms-linear-gradient(top, #ffffff 0%,#e0e0e0 100%); /* IE10+ */
    +	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e0e0e0',GradientType=0 ); /* IE6-9 */
    +	background: linear-gradient(top, #ffffff 0%,#e0e0e0 100%); /* W3C */
    +	border: 1px solid #bbb;
    +	color: #555;
    +	outline: none;
    +	text-decoration: none;
    +}
    +
    +/*--------------------------------------------------------------
    +6.6 - Ajax Loading
    +--------------------------------------------------------------*/
    +#buddypress a.loading,
    +#buddypress input.loading {
    +    padding-right: 25px;
    +}
    +#buddypress a.loading:hover,
    +#buddypress input.loading:hover {
    +    padding-right: 25px;
    +    color: #777;
    +}
    +#buddypress input[type="submit"].pending,
    +#buddypress input[type="button"].pending,
    +#buddypress input[type="reset"].pending,
    +#buddypress input[type="submit"].disabled,
    +#buddypress input[type="button"].disabled,
    +#buddypress input[type="reset"].disabled,
    +#buddypress button.pending,
    +#buddypress button.disabled,
    +#buddypress div.pending a,
    +#buddypress a.disabled {
    +    border-color: #eee;
    +    color: #bbb;
    +    cursor: default;
    +}
    +#buddypress input[type="submit"]:hover.pending,
    +#buddypress input[type="button"]:hover.pending,
    +#buddypress input[type="reset"]:hover.pending,
    +#buddypress input[type="submit"]:hover.disabled,
    +#buddypress input[type="button"]:hover.disabled,
    +#buddypress input[type="reset"]:hover.disabled,
    +#buddypress button.pending:hover,
    +#buddypress button.disabled:hover,
    +#buddypress div.pending a:hover,
    +#buddypress a.disabled:hover {
    +	background: -moz-linear-gradient(top, #ffffff 0%, #ededed 100%); /* FF3.6+ */
    +	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#ededed)); /* Chrome,Safari4+ */
    +	background: -webkit-linear-gradient(top, #ffffff 0%,#ededed 100%); /* Chrome10+,Safari5.1+ */
    +	background: -o-linear-gradient(top, #ffffff 0%,#ededed 100%); /* Opera11.10+ */
    +	background: -ms-linear-gradient(top, #ffffff 0%,#ededed 100%); /* IE10+ */
    +	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed',GradientType=0 ); /* IE6-9 */
    +	background: linear-gradient(top, #ffffff 0%,#ededed 100%); /* W3C */
    +    border-color: #eee;
    +    color: #bbb;
    +}
    +
    +/*--------------------------------------------------------------
    +6.7 - Forums, Tables and Topics
    +--------------------------------------------------------------*/
    +#buddypress ul#topic-post-list {
    +	margin: 0px -19px 15px;
    +	width: auto;
    +}
    +#buddypress ul#topic-post-list li {
    +	padding: 15px;
    +	position: relative;
    +}
    +#buddypress ul#topic-post-list li.alt {
    +	background: #f5f5f5;
    +}
    +#buddypress ul#topic-post-list li div.poster-meta {
    +	color: #888;
    +	margin-bottom: 10px;
    +}
    +#buddypress ul#topic-post-list li div.post-content {
    +	margin-left: 54px;
    +}
    +#buddypress div.topic-tags {
    +	font-size: 11px;
    +}
    +#buddypress div.admin-links {
    +	color: #888;
    +	font-size: 11px;
    +	position: absolute;
    +	top: 15px;
    +	right: 25px;
    +}
    +#buddypress div#topic-meta {
    +	margin: -10px -19px;
    +	padding: 5px 19px 30px;
    +	position: relative;
    +}
    +#buddypress div#topic-meta div.admin-links {
    +	right: 19px;
    +	top: -36px;
    +}
    +#buddypress div#topic-meta h3 {
    +	font-size: 20px;
    +	margin: 5px 0;
    +}
    +#buddypress div#new-topic-post {
    +	display: none;
    +	margin: 20px 0 0 0;
    +	padding: 1px 0 0 0;
    +}
    +#buddypress table {
    +	width: 100%;
    +}
    +#buddypress table thead tr {
    +	background: #eaeaea;
    +}
    +#buddypress table#message-threads {
    +	margin: 0 -19px;
    +	width: auto;
    +}
    +#buddypress table.profile-fields {
    +	margin-bottom: 20px;
    +}
    +#buddypress table.profile-fields:last-child {
    +	margin-bottom: 0;
    +}
    +#buddypress table.profile-fields p {
    +	margin: 0;
    +}
    +#buddypress table.profile-fields p:last-child {
    +	margin-top: 0;
    +}
    +#buddypress table tr td,
    +#buddypress table tr th {
    +	padding: 8px;
    +	vertical-align: middle;
    +}
    +#buddypress table tr td.label {
    +	border-right: 1px solid #eaeaea;
    +	font-weight: bold;
    +	width: 25%;
    +}
    +#buddypress table tr td.thread-info p {
    +	margin: 0;
    +}
    +#buddypress table tr td.thread-info p.thread-excerpt {
    +	color: #888;
    +	font-size: 11px;
    +	margin-top: 3px;
    +}
    +#buddypress table.forum td {
    +	text-align: center;
    +}
    +#buddypress table tr.alt td {
    +	background: #f5f5f5;
    +}
    +#buddypress table.notification-settings {
    +	margin-bottom: 20px;
    +	text-align: left;
    +}
    +#buddypress #groups-notification-settings {
    +	margin-bottom: 0;
    +}
    +#buddypress table.notification-settings th.icon,
    +#buddypress table.notification-settings td:first-child {
    +	display: none;
    +}
    +#buddypress table.notification-settings th.title {
    +	width: 80%;
    +}
    +#buddypress table.notification-settings .yes,
    +#buddypress table.notification-settings .no {
    +	text-align: center;
    +	width: 40px;
    +}
    +#buddypress table.forum {
    +	margin: 0 -19px;
    +	width: auto;
    +}
    +#buddypress table.forum tr.sticky td {
    +	font-size: 1.2em;
    +	background: #fff9db;
    +	border-top: 1px solid #ffe8c4;
    +	border-bottom: 1px solid #ffe8c4;
    +}
    +#buddypress table.forum tr.closed td.td-title {
    +	padding-left: 35px;
    +}
    +#buddypress table.forum td p.topic-text {
    +	color: #888;
    +	font-size: 13px;
    +}
    +#buddypress table.forum tr > td:first-child,
    +#buddypress table.forum tr > th:first-child {
    +	padding-left: 15px;
    +}
    +#buddypress table.forum tr > td:last-child,
    +#buddypress table.forum tr > th:last-child {
    +	padding-right: 15px;
    +}
    +#buddypress table.forum tr th#th-title,
    +#buddypress table.forum tr th#th-poster,
    +#buddypress table.forum tr th#th-group,
    +#buddypress table.forum td.td-poster,
    +#buddypress table.forum td.td-group,
    +#buddypress table.forum td.td-title {
    +	text-align: left;
    +}
    +#buddypress table.forum tr td.td-title a.topic-title {
    +	font-size: 1.2em;
    +}
    +#buddypress table.forum td.td-freshness {
    +	white-space: nowrap;
    +}
    +#buddypress table.forum td.td-freshness span.time-since {
    +	font-size: 0.9em;
    +	color: #888;
    +}
    +#buddypress table.forum td img.avatar {
    +	float: none;
    +	margin: 0 5px -8px 0;
    +}
    +#buddypress table.forum td.td-poster,
    +#buddypress table.forum td.td-group {
    +	min-width: 140px;
    +}
    +#buddypress table.forum th#th-title {
    +	width: 80%;
    +}
    +#buddypress table.forum th#th-freshness {
    +	width: 25%;
    +}
    +#buddypress table.forum th#th-postcount {
    +	width: 15%;
    +}
    +#buddypress table.forum p.topic-meta {
    +	font-size: 0.9em;
    +	margin: 5px 0 0 0;
    +}
    +
    +/*-------------------------------------------------------------------------
    +6.8 - Headers, Lists and Tabs - Activity, Groups, Blogs, Forums, Profiles
    +-------------------------------------------------------------------------*/
    +#buddypress .item-body {
    +	margin: 20px 0;
    +}
    +#buddypress span.activity {
    +	display: inline-block;
    +	font-size: 11px;
    +	opacity: 0.8;
    +	padding: 1px 8px;
    +}
    +#buddypress span.user-nicename {
    +	color: #777;
    +	display: inline-block;
    +	font-size: 16px;
    +	font-weight: bold;
    +}
    +#buddypress span.activity,
    +#buddypress div#message p {
    +	border: 1px solid #e1ca82;
    +	-moz-border-radius: 3px;
    +	-webkit-border-radius: 3px;
    +	border-radius: 3px;
    +	font-weight: normal;
    +	margin-top: 3px;
    +	text-decoration: none;
    +	background: #ffeaa6;
    +	background-image: -webkit-linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
    +	background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255, 255, 255, .5)), color-stop(100%,rgba(255, 255, 255, 0))); /* Chrome,Safari4+ */
    +	background-image: -moz-linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
    +	background-image: -ms-linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
    +	background-image: -o-linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
    +	background-image: linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
    +}
    +#buddypress div#item-header {
    +	overflow: hidden;
    +}
    +#buddypress div#item-header div#item-header-content {
    +	float: left;
    +	margin-left: 0;
    +}
    +#buddypress div#item-header h2 {
    +	font-size: 28px;
    +	line-height: 120%;
    +	margin: 0 0 15px 0;
    +}
    +#buddypress div#item-header h2 a {
    +	color: #777;
    +	text-decoration: none;
    +}
    +#buddypress div#item-header img.avatar {
    +	float: left;
    +	margin: 0 15px 19px 0;
    +}
    +#buddypress div#item-header h2 {
    +	margin-bottom: 5px;
    +}
    +#buddypress div#item-header span.activity,
    +#buddypress div#item-header h2 span.highlight {
    +	font-size: 11px;
    +	font-weight: normal;
    +	line-height: 170%;
    +	margin-bottom: 7px;
    +	vertical-align: middle;
    +}
    +#buddypress div#item-header h2 span.highlight {
    +	font-size: 16px;
    +}
    +#buddypress div#item-header h2 span.highlight span {
    +	background: #a1dcfa;
    +	-moz-border-radius: 3px;
    +	-webkit-border-radius: 3px;
    +	border-radius: 3px;
    +	color: #fff;
    +	cursor: pointer;
    +	font-weight: bold;
    +	font-size: 11px;
    +	margin-bottom: 2px;
    +	padding: 1px 4px;
    +	position: relative;
    +	right: -2px;
    +	top: -2px;
    +	vertical-align: middle;
    +}
    +#buddypress div#item-header div#item-meta {
    +	font-size: 14px;
    +	color: #aaa;
    +	overflow: hidden;
    +	margin: 15px 0 5px 0;
    +	padding-bottom: 10px;
    +}
    +#buddypress div#item-header div#item-actions {
    +	float: right;
    +	margin: 0 0 15px 15px;
    +	text-align: right;
    +	width: 20%;
    +}
    +#buddypress div#item-header div#item-actions h3 {
    +	font-size: 12px;
    +	margin: 0 0 5px 0;
    +}
    +#buddypress div#item-header ul {
    +	margin-bottom: 15px;
    +	overflow: hidden;
    +}
    +#buddypress div#item-header ul h5,
    +#buddypress div#item-header ul span,
    +#buddypress div#item-header ul hr {
    +	display: none;
    +}
    +#buddypress div#item-header ul li {
    +	float: right;
    +}
    +#buddypress div#item-header ul img.avatar,
    +#buddypress div#item-header ul.avatars img.avatar {
    +	height: 30px;
    +	margin: 2px;
    +	width: 30px;
    +}
    +#buddypress div#item-header div.generic-button,
    +#buddypress div#item-header a.button {
    +	float: left;
    +	margin: 10px 10px 0 0;
    +}
    +#buddypress div#item-header div#message.info {
    +	line-height: 80%;
    +}
    +#buddypress ul.item-list {
    +	width: 100%;
    +	list-style: none;
    +	clear: both;
    +}
    +#buddypress ul.item-list li {
    +	border-bottom: 1px solid #eaeaea;
    +	padding: 15px 0;
    +	position: relative;
    +	list-style: none;
    +}
    +#buddypress ul.item-list.activity-list li {
    +	padding-bottom: 0;
    +}
    +#buddypress ul.single-line li {
    +	border: none;
    +}
    +#buddypress ul.item-list li img.avatar {
    +	float: left;
    +	margin: 0 10px 0 0;
    +}
    +#buddypress ul.item-list li div.item-title,
    +#buddypress ul.item-list li h4 {
    +	font-weight: normal;
    +	font-size: 14px;
    +	margin: 0;
    +	width: 75%;
    +}
    +#buddypress ul.item-list li div.item-title span {
    +	color: #999;
    +	font-size: 12px;
    +}
    +#buddypress ul.item-list li div.item-desc {
    +	color: #888;
    +	font-size: 11px;
    +	margin: 10px 0 0 64px;
    +	width: 50%;
    +}
    +#buddypress ul.item-list li div.action {
    +	position: absolute;
    +	top: 15px;
    +	right: 0;
    +	text-align: right;
    +}
    +#buddypress ul.item-list li div.meta {
    +	color: #888;
    +	font-size: 11px;
    +	margin-top: 10px;
    +}
    +#buddypress ul.item-list li h5 span.small {
    +	float: right;
    +	font-size: 11px;
    +	font-weight: normal;
    +}
    +#buddypress div.item-list-tabs {
    +	background: #e6e6e6;
    +	clear: left;
    +	overflow: hidden;
    +}
    +#buddypress div.item-list-tabs ul li a {
    +	text-decoration: none;
    +	height: 20px;
    +}
    +#buddypress div.item-list-tabs ul {
    +	margin: 0;
    +	width: 100%;
    +}
    +#buddypress div.item-list-tabs ul li {
    +	float: left;
    +	margin: 5px 0 0 5px;
    +	list-style: none;
    +}
    +#buddypress div.item-list-tabs#subnav ul li {
    +	margin-top: 0;
    +}
    +#buddypress div.item-list-tabs ul li.last {
    +	float: right;
    +	margin: 7px 10px 0 0;
    +}
    +#buddypress div.item-list-tabs#subnav ul li.last {
    +	margin-top: 4px;
    +}
    +#buddypress div.item-list-tabs ul li.last select {
    +	max-width: 175px;
    +}
    +#buddypress div.item-list-tabs ul li a,
    +#buddypress div.item-list-tabs ul li span {
    +	display: block;
    +	padding: 5px 10px 10px;
    +	text-decoration: none;
    +}
    +#buddypress div.item-list-tabs ul li a span {
    +	background: #1fb3dd;
    +	border-radius: 3px;
    +	color: #fff;
    +	display: inline;
    +	font-size: 90%;
    +	margin-left: 2px;
    +	padding: 1px 6px;
    +}
    +#buddypress div.item-list-tabs ul li.selected a,
    +#buddypress div.item-list-tabs ul li.current a {
    +	background-color: #fff;
    +	border-top-left-radius: 3px;
    +	border-top-right-radius: 3px;
    +	color: #555;
    +	font-weight: bold;
    +}
    +#buddypress div.item-list-tabs ul li.selected a span,
    +#buddypress div.item-list-tabs ul li.current a span,
    +#buddypress div.item-list-tabs ul li a:hover span {
    +	background-color: #999;
    +}
    +#buddypress div.item-list-tabs ul li.selected a span,
    +#buddypress div.item-list-tabs ul li.current a span {
    +	background-color: #555;
    +}
    +#buddypress div#item-nav ul li.loading a {
    +	background-position: 88% 50%;
    +}
    +#buddypress div.item-list-tabs#object-nav {
    +	margin-top: 0;
    +}
    +#buddypress div.item-list-tabs#subnav {
    +	background: #fff;
    +	border-bottom: 1px solid #eaeaea;
    +	margin: 0 0 20px;
    +	overflow: hidden;
    +}
    +#buddypress #admins-list li,
    +#buddypress #mods-list li,
    +#buddypress #members-list li {
    +	overflow: auto;
    +}
    +
    +
    +/*--------------------------------------------------------------
    +6.9 - Private Messaging Threads
    +--------------------------------------------------------------*/
    +#buddypress table#message-threads tr.unread td {
    +	background: #fff9db;
    +	border-top: 1px solid #ffe8c4;
    +	border-bottom: 1px solid #ffe8c4;
    +	font-weight: bold;
    +}
    +#buddypress li span.unread-count,
    +#buddypress tr.unread span.unread-count {
    +	background: #dd0000;
    +	border-radius: 3px;
    +	color: #fff;
    +	font-weight: bold;
    +	padding: 2px 8px;
    +}
    +#buddypress div.item-list-tabs ul li a span.unread-count {
    +	padding: 1px 6px;
    +	color: #fff;
    +}
    +#buddypress div.messages-options-nav {
    +	background: #eee;
    +	font-size: 11px;
    +	margin: 0 -19px;
    +	padding: 5px 15px;
    +	text-align: right;
    +}
    +#buddypress div#message-thread div.message-box {
    +	margin: 0 -19px;
    +	padding: 15px;
    +}
    +#buddypress div#message-thread div.alt {
    +	background: #f4f4f4;
    +}
    +#buddypress div#message-thread p#message-recipients {
    +	margin: 10px 0 20px 0;
    +}
    +#buddypress div#message-thread img.avatar {
    +	float: left;
    +	margin: 0 10px 0 0;
    +	vertical-align: middle;
    +}
    +#buddypress div#message-thread strong {
    +	font-size: 16px;
    +	margin: 0;
    +}
    +#buddypress div#message-thread strong a {
    +	text-decoration: none;
    +}
    +#buddypress div#message-thread strong span.activity {
    +	margin: 4px 0 0 10px;
    +}
    +#buddypress div#message-thread div.message-metadata {
    +	overflow: hidden;
    +}
    +#buddypress div#message-thread div.message-content {
    +	margin-left: 45px;
    +}
    +#buddypress div#message-thread div.message-options {
    +	text-align: right;
    +}
    +
    +#buddypress div.message-search {
    +	float: right;
    +	margin: 0 20px;
    +}
    +
    +/*--------------------------------------------------------------
    +6.9 - Extended Profiles
    +--------------------------------------------------------------*/
    +
    +#buddypress div.profile h4 {
    +	margin-bottom: auto;
    +	margin-top: 15px;
    +}
    +#buddypress #profile-edit-form ul.button-nav {
    +	margin-top: 15px;
    +}
    +body.no-js #buddypress .field-visibility-settings-toggle,
    +body.no-js #buddypress .field-visibility-settings-close {
    +	display: none;
    +}
    +#buddypress .field-visibility-settings {
    +	display: none;
    +	margin-top: 10px;
    +}
    +	body.no-js #buddypress .field-visibility-settings {
    +		display: block;
    +	}
    +#buddypress .current-visibility-level {
    +	font-weight: bold;
    +	font-style: normal;
    +}
    +#buddypress .field-visibility-settings,
    +#buddypress .field-visibility-settings-toggle,
    +#buddypress .field-visibility-settings-notoggle {
    +	color: #888;
    +}
    +#buddypress .field-visibility-settings-toggle a,
    +#buddypress .field-visibility-settings a {
    +	font-size: .9em;
    +}
    +body.register #buddypress div.page ul {
    +	list-style: none;
    +}
    +#buddypress .standard-form .field-visibility-settings label {
    +	margin: 0;
    +	font-weight: normal;
    +}
    +#buddypress .field-visibility-settings legend,
    +#buddypress .field-visibility-settings-toggle {
    +	font-style: italic;
    +}
    \ No newline at end of file
    new file mode 100644
    ---bp-theme-compat/bp-legacy/js/buddypress.js	(revision 0)n+++bp-theme-compat/bp-legacy/js/buddypress.js	(revision 0)
    @@ -0,0 +1,1445 @@
    +// AJAX Functions
    +var jq = jQuery;
    +
    +// Global variable to prevent multiple AJAX requests
    +var bp_ajax_request = null;
    +
    +jq(document).ready( function() {
    +	/**** Page Load Actions *******************************************************/
    +
    +	/* Hide Forums Post Form */
    +	if ( '-1' == window.location.search.indexOf('new') && jq('div.forums').length )
    +		jq('#new-topic-post').hide();
    +	else
    +		jq('#new-topic-post').show();
    +
    +	/* Activity filter and scope set */
    +	bp_init_activity();
    +
    +	/* Object filter and scope set. */
    +	var objects = [ 'members', 'groups', 'blogs', 'forums' ];
    +	bp_init_objects( objects );
    +
    +	/* @mention Compose Scrolling */
    +	if ( jq.query.get('r') && jq('textarea#whats-new').length ) {
    +		jq('#whats-new-options').animate({
    +			height:'40px'
    +		});
    +		jq("form#whats-new-form textarea").animate({
    +			height:'50px'
    +		});
    +		jq.scrollTo( jq('textarea#whats-new'), 500, {
    +			offset:-125, 
    +			easing:'easeOutQuad'
    +		} );
    +		jq('textarea#whats-new').focus();
    +	}
    +
    +	/**** Activity Posting ********************************************************/
    +
    +	/* Textarea focus */
    +	jq('#whats-new').focus( function(){
    +		jq("#whats-new-options").animate({
    +			height:'40px'
    +		});
    +		jq("form#whats-new-form textarea").animate({
    +			height:'50px'
    +		});
    +		jq("#aw-whats-new-submit").prop("disabled", false);
    +	});
    +
    +	/* New posts */
    +	jq("input#aw-whats-new-submit").click( function() {
    +		var button = jq(this);
    +		var form = button.parent().parent().parent().parent();
    +
    +		form.children().each( function() {
    +			if ( jq.nodeName(this, "textarea") || jq.nodeName(this, "input") )
    +				jq(this).prop( 'disabled', true );
    +		});
    +
    +		/* Remove any errors */
    +		jq('div.error').remove();
    +		button.addClass('loading');
    +		button.prop('disabled', true);
    +
    +		/* Default POST values */
    +		var object = '';
    +		var item_id = jq("#whats-new-post-in").val();
    +		var content = jq("textarea#whats-new").val();
    +
    +		/* Set object for non-profile posts */
    +		if ( item_id > 0 ) {
    +			object = jq("#whats-new-post-object").val();
    +		}
    +
    +		jq.post( ajaxurl, {
    +			action: 'post_update',
    +			'cookie': encodeURIComponent(document.cookie),
    +			'_wpnonce_post_update': jq("input#_wpnonce_post_update").val(),
    +			'content': content,
    +			'object': object,
    +			'item_id': item_id,
    +			'_bp_as_nonce': jq('#_bp_as_nonce').val() || ''
    +		},
    +		function(response) {
    +
    +			form.children().each( function() {
    +				if ( jq.nodeName(this, "textarea") || jq.nodeName(this, "input") ) {
    +					jq(this).prop( 'disabled', false );
    +				}
    +			});
    +
    +			/* Check for errors and append if found. */
    +			if ( response[0] + response[1] == '-1' ) {
    +				form.prepend( response.substr( 2, response.length ) );
    +				jq( 'form#' + form.attr('id') + ' div.error').hide().fadeIn( 200 );
    +			} else {
    +				if ( 0 == jq("ul.activity-list").length ) {
    +					jq("div.error").slideUp(100).remove();
    +					jq("div#message").slideUp(100).remove();
    +					jq("div.activity").append( '<ul id="activity-stream" class="activity-list item-list">' );
    +				}
    +
    +				jq("ul#activity-stream").prepend(response);
    +				jq("ul#activity-stream li:first").addClass('new-update');
    +
    +				if ( 0 != jq("#latest-update").length ) {
    +					var l = jq("ul#activity-stream li.new-update .activity-content .activity-inner p").html();
    +					var v = jq("ul#activity-stream li.new-update .activity-content .activity-header p a.view").attr('href');
    +
    +					var ltext = jq("ul#activity-stream li.new-update .activity-content .activity-inner p").text();
    +
    +					var u = '';
    +					if ( ltext != '' )
    +						u = l + ' ';
    +
    +					u += '<a href="' + v + '" rel="nofollow">' + BP_DTheme.view + '</a>';
    +
    +					jq("#latest-update").slideUp(300,function(){
    +						jq("#latest-update").html( u );
    +						jq("#latest-update").slideDown(300);
    +					});
    +				}
    +
    +				jq("li.new-update").hide().slideDown( 300 );
    +				jq("li.new-update").removeClass( 'new-update' );
    +				jq("textarea#whats-new").val('');
    +			}
    +
    +			jq("#whats-new-options").animate({
    +				height:'0px'
    +			});
    +			jq("form#whats-new-form textarea").animate({
    +				height:'20px'
    +			});
    +			jq("#aw-whats-new-submit").prop("disabled", true).removeClass('loading');
    +		});
    +
    +		return false;
    +	});
    +
    +	/* List tabs event delegation */
    +	jq('div.activity-type-tabs').click( function(event) {
    +		var target = jq(event.target).parent();
    +
    +		if ( event.target.nodeName == 'STRONG' || event.target.nodeName == 'SPAN' )
    +			target = target.parent();
    +		else if ( event.target.nodeName != 'A' )
    +			return false;
    +
    +		/* Reset the page */
    +		jq.cookie( 'bp-activity-oldestpage', 1, {
    +			path: '/'
    +		} );
    +
    +		/* Activity Stream Tabs */
    +		var scope = target.attr('id').substr( 9, target.attr('id').length );
    +		var filter = jq("#activity-filter-select select").val();
    +
    +		if ( scope == 'mentions' )
    +			jq( 'li#' + target.attr('id') + ' a strong' ).remove();
    +
    +		bp_activity_request(scope, filter);
    +
    +		return false;
    +	});
    +
    +	/* Activity filter select */
    +	jq('#activity-filter-select select').change( function() {
    +		var selected_tab = jq( 'div.activity-type-tabs li.selected' );
    +
    +		if ( !selected_tab.length )
    +			var scope = null;
    +		else
    +			var scope = selected_tab.attr('id').substr( 9, selected_tab.attr('id').length );
    +
    +		var filter = jq(this).val();
    +
    +		bp_activity_request(scope, filter);
    +
    +		return false;
    +	});
    +
    +	/* Stream event delegation */
    +	jq('div.activity').click( function(event) {
    +		var target = jq(event.target);
    +
    +		/* Favoriting activity stream items */
    +		if ( target.hasClass('fav') || target.hasClass('unfav') ) {
    +			var type = target.hasClass('fav') ? 'fav' : 'unfav';
    +			var parent = target.closest('.activity-item');
    +			var parent_id = parent.attr('id').substr( 9, parent.attr('id').length );
    +
    +			target.addClass('loading');
    +
    +			jq.post( ajaxurl, {
    +				action: 'activity_mark_' + type,
    +				'cookie': encodeURIComponent(document.cookie),
    +				'id': parent_id
    +			},
    +			function(response) {
    +				target.removeClass('loading');
    +
    +				target.fadeOut( 100, function() {
    +					jq(this).html(response);
    +					jq(this).attr('title', 'fav' == type ? BP_DTheme.remove_fav : BP_DTheme.mark_as_fav);
    +					jq(this).fadeIn(100);
    +				});
    +
    +				if ( 'fav' == type ) {
    +					if ( !jq('.item-list-tabs li#activity-favorites').length )
    +						jq('.item-list-tabs ul li#activity-mentions').before( '<li id="activity-favorites"><a href="#">' + BP_DTheme.my_favs + ' <span>0</span></a></li>');
    +
    +					target.removeClass('fav');
    +					target.addClass('unfav');
    +
    +					jq('.item-list-tabs ul li#activity-favorites span').html( Number( jq('.item-list-tabs ul li#activity-favorites span').html() ) + 1 );
    +				} else {
    +					target.removeClass('unfav');
    +					target.addClass('fav');
    +
    +					jq('.item-list-tabs ul li#activity-favorites span').html( Number( jq('.item-list-tabs ul li#activity-favorites span').html() ) - 1 );
    +
    +					if ( !Number( jq('.item-list-tabs ul li#activity-favorites span').html() ) ) {
    +						if ( jq('.item-list-tabs ul li#activity-favorites').hasClass('selected') )
    +							bp_activity_request( null, null );
    +
    +						jq('.item-list-tabs ul li#activity-favorites').remove();
    +					}
    +				}
    +
    +				if ( 'activity-favorites' == jq( '.item-list-tabs li.selected').attr('id') )
    +					target.parent().parent().parent().slideUp(100);
    +			});
    +
    +			return false;
    +		}
    +
    +		/* Delete activity stream items */
    +		if ( target.hasClass('delete-activity') ) {
    +			var li        = target.parents('div.activity ul li');
    +			var id        = li.attr('id').substr( 9, li.attr('id').length );
    +			var link_href = target.attr('href');
    +			var nonce     = link_href.split('_wpnonce=');
    +
    +			nonce = nonce[1];
    +
    +			target.addClass('loading');
    +
    +			jq.post( ajaxurl, {
    +				action: 'delete_activity',
    +				'cookie': encodeURIComponent(document.cookie),
    +				'id': id,
    +				'_wpnonce': nonce
    +			},
    +			function(response) {
    +
    +				if ( response[0] + response[1] == '-1' ) {
    +					li.prepend( response.substr( 2, response.length ) );
    +					li.children('div#message').hide().fadeIn(300);
    +				} else {
    +					li.slideUp(300);
    +				}
    +			});
    +
    +			return false;
    +		}
    +
    +		// Spam activity stream items
    +		if ( target.hasClass( 'spam-activity' ) ) {
    +			var li = target.parents( 'div.activity ul li' );
    +			target.addClass( 'loading' );
    +
    +			jq.post( ajaxurl, {
    +				action: 'bp_spam_activity',
    +				'cookie': encodeURIComponent( document.cookie ),
    +				'id': li.attr( 'id' ).substr( 9, li.attr( 'id' ).length ),
    +				'_wpnonce': target.attr( 'href' ).split( '_wpnonce=' )[1]
    +			},
    +
    +			function(response) {
    +				if ( response[0] + response[1] === '-1' ) {
    +					li.prepend( response.substr( 2, response.length ) );
    +					li.children( 'div#message' ).hide().fadeIn(300);
    +				} else {
    +					li.slideUp( 300 );
    +				}
    +			});
    +
    +			return false;
    +		}
    +
    +		/* Load more updates at the end of the page */
    +		if ( target.parent().hasClass('load-more') ) {
    +			jq("#content li.load-more").addClass('loading');
    +
    +			if ( null == jq.cookie('bp-activity-oldestpage') )
    +				jq.cookie('bp-activity-oldestpage', 1, {
    +					path: '/'
    +				} );
    +
    +			var oldest_page = ( jq.cookie('bp-activity-oldestpage') * 1 ) + 1;
    +
    +			jq.post( ajaxurl, {
    +				action: 'activity_get_older_updates',
    +				'cookie': encodeURIComponent(document.cookie),
    +				'page': oldest_page
    +			},
    +			function(response)
    +			{
    +				jq("#content li.load-more").removeClass('loading');
    +				jq.cookie( 'bp-activity-oldestpage', oldest_page, {
    +					path: '/'
    +				} );
    +				jq("#content ul.activity-list").append(response.contents);
    +
    +				target.parent().hide();
    +			}, 'json' );
    +
    +			return false;
    +		}
    +	});
    +
    +	// Activity "Read More" links
    +	jq('.activity-read-more a').live('click', function(event) {
    +		var target = jq(event.target);
    +		var link_id = target.parent().attr('id').split('-');
    +		var a_id = link_id[3];
    +		var type = link_id[0]; /* activity or acomment */
    +
    +		var inner_class = type == 'acomment' ? 'acomment-content' : 'activity-inner';
    +		var a_inner = jq('li#' + type + '-' + a_id + ' .' + inner_class + ':first' );
    +		jq(target).addClass('loading');
    +
    +		jq.post( ajaxurl, {
    +			action: 'get_single_activity_content',
    +			'activity_id': a_id
    +		},
    +		function(response) {
    +			jq(a_inner).slideUp(300).html(response).slideDown(300);
    +		});
    +
    +		return false;
    +	});
    +
    +	/**** Activity Comments *******************************************************/
    +
    +	/* Hide all activity comment forms */
    +	jq('form.ac-form').hide();
    +
    +	/* Hide excess comments */
    +	if ( jq('.activity-comments').length )
    +		bp_legacy_theme_hide_comments();
    +
    +	/* Activity list event delegation */
    +	jq('div.activity').click( function(event) {
    +		var target = jq(event.target);
    +
    +		/* Comment / comment reply links */
    +		if ( target.hasClass('acomment-reply') || target.parent().hasClass('acomment-reply') ) {
    +			if ( target.parent().hasClass('acomment-reply') )
    +				target = target.parent();
    +
    +			var id = target.attr('id');
    +			ids = id.split('-');
    +
    +			var a_id = ids[2]
    +			var c_id = target.attr('href').substr( 10, target.attr('href').length );
    +			var form = jq( '#ac-form-' + a_id );
    +
    +			form.css( 'display', 'none' );
    +			form.removeClass('root');
    +			jq('.ac-form').hide();
    +
    +			/* Hide any error messages */
    +			form.children('div').each( function() {
    +				if ( jq(this).hasClass( 'error' ) )
    +					jq(this).hide();
    +			});
    +
    +			if ( ids[1] != 'comment' ) {
    +				jq('.activity-comments li#acomment-' + c_id).append( form );
    +			} else {
    +				jq('li#activity-' + a_id + ' .activity-comments').append( form );
    +			}
    +
    +			if ( form.parent().hasClass( 'activity-comments' ) )
    +				form.addClass('root');
    +
    +			form.slideDown( 200 );
    +			jq.scrollTo( form, 500, {
    +				offset:-100, 
    +				easing:'easeOutQuad'
    +			} );
    +			jq('#ac-form-' + ids[2] + ' textarea').focus();
    +
    +			return false;
    +		}
    +
    +		/* Activity comment posting */
    +		if ( target.attr('name') == 'ac_form_submit' ) {
    +			var form = target.parent().parent();
    +			var form_parent = form.parent();
    +			var form_id = form.attr('id').split('-');
    +
    +			if ( !form_parent.hasClass('activity-comments') ) {
    +				var tmp_id = form_parent.attr('id').split('-');
    +				var comment_id = tmp_id[1];
    +			} else {
    +				var comment_id = form_id[2];
    +			}
    +
    +			/* Hide any error messages */
    +			jq( 'form#' + form.attr('id') + ' div.error').hide();
    +			target.addClass('loading').prop('disabled', true);
    +
    +			var ajaxdata = {
    +				action: 'new_activity_comment',
    +				'cookie': encodeURIComponent(document.cookie),
    +				'_wpnonce_new_activity_comment': jq("input#_wpnonce_new_activity_comment").val(),
    +				'comment_id': comment_id,
    +				'form_id': form_id[2],
    +				'content': jq('form#' + form.attr('id') + ' textarea').val()
    +			};
    +
    +			// Akismet
    +			var ak_nonce = jq('#_bp_as_nonce_' + comment_id).val();
    +			if ( ak_nonce ) {
    +				ajaxdata['_bp_as_nonce_' + comment_id] = ak_nonce;
    +			}
    +
    +			jq.post( ajaxurl, ajaxdata,
    +				function(response)
    +				{
    +					target.removeClass('loading');
    +
    +					/* Check for errors and append if found. */
    +					if ( response[0] + response[1] == '-1' ) {
    +						form.append( response.substr( 2, response.length ) ).hide().fadeIn( 200 );
    +					} else {
    +						form.fadeOut( 200,
    +							function() {
    +								if ( 0 == form.parent().children('ul').length ) {
    +									if ( form.parent().hasClass('activity-comments') )
    +										form.parent().prepend('<ul></ul>');
    +									else
    +										form.parent().append('<ul></ul>');
    +								}
    +
    +								form.parent().children('ul').append(response).hide().fadeIn( 200 );
    +								form.children('textarea').val('');
    +								form.parent().parent().addClass('has-comments');
    +							}
    +							);
    +						jq( 'form#' + form.attr('id') + ' textarea').val('');
    +
    +						/* Increase the "Reply (X)" button count */
    +						jq('li#activity-' + form_id[2] + ' a.acomment-reply span').html( Number( jq('li#activity-' + form_id[2] + ' a.acomment-reply span').html() ) + 1 );
    +					}
    +
    +					jq(target).prop("disabled", false);
    +				});
    +
    +			return false;
    +		}
    +
    +		/* Deleting an activity comment */
    +		if ( target.hasClass('acomment-delete') ) {
    +			var link_href = target.attr('href');
    +			var comment_li = target.parent().parent();
    +			var form = comment_li.parents('div.activity-comments').children('form');
    +
    +			var nonce = link_href.split('_wpnonce=');
    +			nonce = nonce[1];
    +
    +			var comment_id = link_href.split('cid=');
    +			comment_id = comment_id[1].split('&');
    +			comment_id = comment_id[0];
    +
    +			target.addClass('loading');
    +
    +			/* Remove any error messages */
    +			jq('.activity-comments ul .error').remove();
    +
    +			/* Reset the form position */
    +			comment_li.parents('.activity-comments').append(form);
    +
    +			jq.post( ajaxurl, {
    +				action: 'delete_activity_comment',
    +				'cookie': encodeURIComponent(document.cookie),
    +				'_wpnonce': nonce,
    +				'id': comment_id
    +			},
    +			function(response)
    +			{
    +				/* Check for errors and append if found. */
    +				if ( response[0] + response[1] == '-1' ) {
    +					comment_li.prepend( response.substr( 2, response.length ) ).hide().fadeIn( 200 );
    +				} else {
    +					var children = jq( 'li#' + comment_li.attr('id') + ' ul' ).children('li');
    +					var child_count = 0;
    +					jq(children).each( function() {
    +						if ( !jq(this).is(':hidden') )
    +							child_count++;
    +					});
    +					comment_li.fadeOut(200);
    +
    +					/* Decrease the "Reply (X)" button count */
    +					var count_span = jq('li#' + comment_li.parents('ul#activity-stream > li').attr('id') + ' a.acomment-reply span');
    +					var new_count = count_span.html() - ( 1 + child_count );
    +					count_span.html(new_count);
    +
    +					/* If that was the last comment for the item, remove the has-comments class to clean up the styling */
    +					if ( 0 == new_count ) {
    +						jq(comment_li.parents('ul#activity-stream > li')).removeClass('has-comments');
    +					}
    +				}
    +			});
    +
    +			return false;
    +		}
    +
    +		// Spam an activity stream comment
    +		if ( target.hasClass( 'spam-activity-comment' ) ) {
    +			var link_href  = target.attr( 'href' );
    +			var comment_li = target.parent().parent();
    +
    +			target.addClass('loading');
    +
    +			// Remove any error messages
    +			jq( '.activity-comments ul div.error' ).remove();
    +
    +			// Reset the form position
    +			comment_li.parents( '.activity-comments' ).append( comment_li.parents( '.activity-comments' ).children( 'form' ) );
    +
    +			jq.post( ajaxurl, {
    +				action: 'bp_spam_activity_comment',
    +				'cookie': encodeURIComponent( document.cookie ),
    +				'_wpnonce': link_href.split( '_wpnonce=' )[1],
    +				'id': link_href.split( 'cid=' )[1].split( '&' )[0]
    +			},
    +
    +			function ( response ) {
    +				// Check for errors and append if found.
    +				if ( response[0] + response[1] == '-1' ) {
    +					comment_li.prepend( response.substr( 2, response.length ) ).hide().fadeIn( 200 );
    +
    +				} else {
    +					var children = jq( 'li#' + comment_li.attr( 'id' ) + ' ul' ).children( 'li' );
    +					var child_count = 0;
    +					jq(children).each( function() {
    +						if ( !jq( this ).is( ':hidden' ) ) {
    +							child_count++;
    +						}
    +					});
    +					comment_li.fadeOut( 200 );
    +
    +					// Decrease the "Reply (X)" button count
    +					var parent_li = comment_li.parents( 'ul#activity-stream > li' );
    +					jq( 'li#' + parent_li.attr( 'id' ) + ' a.acomment-reply span' ).html( jq( 'li#' + parent_li.attr( 'id' ) + ' a.acomment-reply span' ).html() - ( 1 + child_count ) );
    +				}
    +			});
    +
    +			return false;
    +		}
    +
    +		/* Showing hidden comments - pause for half a second */
    +		if ( target.parent().hasClass('show-all') ) {
    +			target.parent().addClass('loading');
    +
    +			setTimeout( function() {
    +				target.parent().parent().children('li').fadeIn(200, function() {
    +					target.parent().remove();
    +				});
    +			}, 600 );
    +
    +			return false;
    +		}
    +	});
    +
    +	/* Escape Key Press for cancelling comment forms */
    +	jq(document).keydown( function(e) {
    +		e = e || window.event;
    +		if (e.target)
    +			element = e.target;
    +		else if (e.srcElement)
    +			element = e.srcElement;
    +
    +		if( element.nodeType == 3)
    +			element = element.parentNode;
    +
    +		if( e.ctrlKey == true || e.altKey == true || e.metaKey == true )
    +			return;
    +
    +		var keyCode = (e.keyCode) ? e.keyCode : e.which;
    +
    +		if ( keyCode == 27 ) {
    +			if (element.tagName == 'TEXTAREA') {
    +				if ( jq(element).hasClass('ac-input') )
    +					jq(element).parent().parent().parent().slideUp( 200 );
    +			}
    +		}
    +	});
    +
    +	/**** Directory Search ****************************************************/
    +
    +	/* The search form on all directory pages */
    +	jq('.dir-search').click( function(event) {
    +		if ( jq(this).hasClass('no-ajax') )
    +			return;
    +
    +		var target = jq(event.target);
    +
    +		if ( target.attr('type') == 'submit' ) {
    +			var css_id = jq('.item-list-tabs li.selected').attr('id').split( '-' );
    +			var object = css_id[0];
    +
    +			bp_filter_request( object, jq.cookie('bp-' + object + '-filter'), jq.cookie('bp-' + object + '-scope') , 'div.' + object, target.parent().children('label').children('input').val(), 1, jq.cookie('bp-' + object + '-extras') );
    +
    +			return false;
    +		}
    +	});
    +
    +	/**** Tabs and Filters ****************************************************/
    +
    +	/* When a navigation tab is clicked - e.g. | All Groups | My Groups | */
    +	jq('div.item-list-tabs').click( function(event) {
    +		if ( jq(this).hasClass('no-ajax') )
    +			return;
    +
    +		var target = jq(event.target).parent();
    +
    +		if ( 'LI' == event.target.parentNode.nodeName && !target.hasClass('last') ) {
    +			var css_id = target.attr('id').split( '-' );
    +			var object = css_id[0];
    +
    +			if ( 'activity' == object )
    +				return false;
    +
    +			var scope = css_id[1];
    +			var filter = jq("#" + object + "-order-select select").val();
    +			var search_terms = jq("#" + object + "_search").val();
    +
    +			bp_filter_request( object, filter, scope, 'div.' + object, search_terms, 1, jq.cookie('bp-' + object + '-extras') );
    +
    +			return false;
    +		}
    +	});
    +
    +	/* When the filter select box is changed re-query */
    +	jq('li.filter select').change( function() {
    +		if ( jq('.item-list-tabs li.selected').length )
    +			var el = jq('.item-list-tabs li.selected');
    +		else
    +			var el = jq(this);
    +
    +		var css_id = el.attr('id').split('-');
    +		var object = css_id[0];
    +		var scope = css_id[1];
    +		var filter = jq(this).val();
    +		var search_terms = false;
    +
    +		if ( jq('.dir-search input').length )
    +			search_terms = jq('.dir-search input').val();
    +
    +		if ( 'friends' == object )
    +			object = 'members';
    +
    +		bp_filter_request( object, filter, scope, 'div.' + object, search_terms, 1, jq.cookie('bp-' + object + '-extras') );
    +
    +		return false;
    +	});
    +
    +	/* All pagination links run through this function */
    +	jq('div#content').click( function(event) {
    +		var target = jq(event.target);
    +
    +		if ( target.hasClass('button') )
    +			return true;
    +
    +		if ( target.parent().parent().hasClass('pagination') && !target.parent().parent().hasClass('no-ajax') ) {
    +			if ( target.hasClass('dots') || target.hasClass('current') )
    +				return false;
    +
    +			if ( jq('.item-list-tabs li.selected').length )
    +				var el = jq('.item-list-tabs li.selected');
    +			else
    +				var el = jq('li.filter select');
    +
    +			var page_number = 1;
    +			var css_id = el.attr('id').split( '-' );
    +			var object = css_id[0];
    +			var search_terms = false;
    +
    +			if ( jq('div.dir-search input').length )
    +				search_terms = jq('.dir-search input').val();
    +
    +			if ( jq(target).hasClass('next') )
    +				var page_number = Number( jq('.pagination span.current').html() ) + 1;
    +			else if ( jq(target).hasClass('prev') )
    +				var page_number = Number( jq('.pagination span.current').html() ) - 1;
    +			else
    +				var page_number = Number( jq(target).html() );
    +
    +			bp_filter_request( object, jq.cookie('bp-' + object + '-filter'), jq.cookie('bp-' + object + '-scope'), 'div.' + object, search_terms, page_number, jq.cookie('bp-' + object + '-extras') );
    +
    +			return false;
    +		}
    +
    +	});
    +
    +	/**** New Forum Directory Post **************************************/
    +
    +	/* Hit the "New Topic" button on the forums directory page */
    +	jq('a.show-hide-new').click( function() {
    +		if ( !jq('#new-topic-post').length )
    +			return false;
    +
    +		if ( jq('#new-topic-post').is(":visible") )
    +			jq('#new-topic-post').slideUp(200);
    +		else
    +			jq('#new-topic-post').slideDown(200, function() {
    +				jq('#topic_title').focus();
    +			} );
    +
    +		return false;
    +	});
    +
    +	/* Cancel the posting of a new forum topic */
    +	jq('input#submit_topic_cancel').click( function() {
    +		if ( !jq('#new-topic-post').length )
    +			return false;
    +
    +		jq('#new-topic-post').slideUp(200);
    +		return false;
    +	});
    +
    +	/* Clicking a forum tag */
    +	jq('#forum-directory-tags a').click( function() {
    +		bp_filter_request( 'forums', 'tags', jq.cookie('bp-forums-scope'), 'div.forums', jq(this).html().replace( /&nbsp;/g, '-' ), 1, jq.cookie('bp-forums-extras') );
    +		return false;
    +	});
    +
    +	/** Invite Friends Interface ****************************************/
    +
    +	/* Select a user from the list of friends and add them to the invite list */
    +	jq("div#invite-list input").click( function() {
    +		jq('.ajax-loader').toggle();
    +
    +		var friend_id = jq(this).val();
    +
    +		if ( jq(this).prop('checked') == true )
    +			var friend_action = 'invite';
    +		else
    +			var friend_action = 'uninvite';
    +
    +		jq('.item-list-tabs li.selected').addClass('loading');
    +
    +		jq.post( ajaxurl, {
    +			action: 'groups_invite_user',
    +			'friend_action': friend_action,
    +			'cookie': encodeURIComponent(document.cookie),
    +			'_wpnonce': jq("input#_wpnonce_invite_uninvite_user").val(),
    +			'friend_id': friend_id,
    +			'group_id': jq("input#group_id").val()
    +		},
    +		function(response)
    +		{
    +			if ( jq("#message") )
    +				jq("#message").hide();
    +
    +			jq('.ajax-loader').toggle();
    +
    +			if ( friend_action == 'invite' ) {
    +				jq('#friend-list').append(response);
    +			} else if ( friend_action == 'uninvite' ) {
    +				jq('#friend-list li#uid-' + friend_id).remove();
    +			}
    +
    +			jq('.item-list-tabs li.selected').removeClass('loading');
    +		});
    +	});
    +
    +	/* Remove a user from the list of users to invite to a group */
    +	jq("#friend-list li a.remove").live('click', function() {
    +		jq('.ajax-loader').toggle();
    +
    +		var friend_id = jq(this).attr('id');
    +		friend_id = friend_id.split('-');
    +		friend_id = friend_id[1];
    +
    +		jq.post( ajaxurl, {
    +			action: 'groups_invite_user',
    +			'friend_action': 'uninvite',
    +			'cookie': encodeURIComponent(document.cookie),
    +			'_wpnonce': jq("input#_wpnonce_invite_uninvite_user").val(),
    +			'friend_id': friend_id,
    +			'group_id': jq("input#group_id").val()
    +		},
    +		function(response)
    +		{
    +			jq('.ajax-loader').toggle();
    +			jq('#friend-list li#uid-' + friend_id).remove();
    +			jq('#invite-list input#f-' + friend_id).prop('checked', false);
    +		});
    +
    +		return false;
    +	});
    +
    +	/** Profile Visibility Settings *********************************/
    +	jq('.field-visibility-settings').hide();
    +	jq('.visibility-toggle-link').on( 'click', function() {
    +		var toggle_div = jq(this).parent();
    +		
    +		jq(toggle_div).fadeOut( 600, function(){
    +			jq(toggle_div).siblings('.field-visibility-settings').slideDown(400);
    +		});
    +		
    +		return false;
    +	} );
    +
    +	jq('.field-visibility-settings-close').on( 'click', function() {
    +		var settings_div = jq(this).parent();
    +		
    +		jq(settings_div).slideUp( 400, function(){
    +			jq(settings_div).siblings('.field-visibility-settings-toggle').fadeIn(800);
    +		});
    +		
    +		return false;
    +	} );
    +
    +
    +	/** Friendship Requests **************************************/
    +
    +	/* Accept and Reject friendship request buttons */
    +	jq("ul#friend-list a.accept, ul#friend-list a.reject").click( function() {
    +		var button = jq(this);
    +		var li = jq(this).parents('ul#friend-list li');
    +		var action_div = jq(this).parents('li div.action');
    +
    +		var id = li.attr('id').substr( 11, li.attr('id').length );
    +		var link_href = button.attr('href');
    +
    +		var nonce = link_href.split('_wpnonce=');
    +		nonce = nonce[1];
    +
    +		if ( jq(this).hasClass('accepted') || jq(this).hasClass('rejected') )
    +			return false;
    +
    +		if ( jq(this).hasClass('accept') ) {
    +			var action = 'accept_friendship';
    +			action_div.children('a.reject').css( 'visibility', 'hidden' );
    +		} else {
    +			var action = 'reject_friendship';
    +			action_div.children('a.accept').css( 'visibility', 'hidden' );
    +		}
    +
    +		button.addClass('loading');
    +
    +		jq.post( ajaxurl, {
    +			action: action,
    +			'cookie': encodeURIComponent(document.cookie),
    +			'id': id,
    +			'_wpnonce': nonce
    +		},
    +		function(response) {
    +			button.removeClass('loading');
    +
    +			if ( response[0] + response[1] == '-1' ) {
    +				li.prepend( response.substr( 2, response.length ) );
    +				li.children('div#message').hide().fadeIn(200);
    +			} else {
    +				button.fadeOut( 100, function() {
    +					if ( jq(this).hasClass('accept') ) {
    +						action_div.children('a.reject').hide();
    +						jq(this).html( BP_DTheme.accepted ).fadeIn(50);
    +						jq(this).addClass('accepted');
    +					} else {
    +						action_div.children('a.accept').hide();
    +						jq(this).html( BP_DTheme.rejected ).fadeIn(50);
    +						jq(this).addClass('rejected');
    +					}
    +				});
    +			}
    +		});
    +
    +		return false;
    +	});
    +
    +	/* Add / Remove friendship buttons */
    +	jq(".friendship-button a").live('click', function() {
    +		jq(this).parent().addClass('loading');
    +		var fid = jq(this).attr('id');
    +		fid = fid.split('-');
    +		fid = fid[1];
    +
    +		var nonce = jq(this).attr('href');
    +		nonce = nonce.split('?_wpnonce=');
    +		nonce = nonce[1].split('&');
    +		nonce = nonce[0];
    +
    +		var thelink = jq(this);
    +
    +		jq.post( ajaxurl, {
    +			action: 'addremove_friend',
    +			'cookie': encodeURIComponent(document.cookie),
    +			'fid': fid,
    +			'_wpnonce': nonce
    +		},
    +		function(response)
    +		{
    +			var action = thelink.attr('rel');
    +			var parentdiv = thelink.parent();
    +
    +			if ( action == 'add' ) {
    +				jq(parentdiv).fadeOut(200,
    +					function() {
    +						parentdiv.removeClass('add_friend');
    +						parentdiv.removeClass('loading');
    +						parentdiv.addClass('pending_friend');
    +						parentdiv.fadeIn(200).html(response);
    +					}
    +					);
    +
    +			} else if ( action == 'remove' ) {
    +				jq(parentdiv).fadeOut(200,
    +					function() {
    +						parentdiv.removeClass('remove_friend');
    +						parentdiv.removeClass('loading');
    +						parentdiv.addClass('add');
    +						parentdiv.fadeIn(200).html(response);
    +					}
    +					);
    +			}
    +		});
    +		return false;
    +	} );
    +
    +	/** Group Join / Leave Buttons **************************************/
    +
    +	jq(".group-button a").live('click', function() {
    +		var gid = jq(this).parent().attr('id');
    +		gid = gid.split('-');
    +		gid = gid[1];
    +
    +		var nonce = jq(this).attr('href');
    +		nonce = nonce.split('?_wpnonce=');
    +		nonce = nonce[1].split('&');
    +		nonce = nonce[0];
    +
    +		var thelink = jq(this);
    +
    +		jq.post( ajaxurl, {
    +			action: 'joinleave_group',
    +			'cookie': encodeURIComponent(document.cookie),
    +			'gid': gid,
    +			'_wpnonce': nonce
    +		},
    +		function(response)
    +		{
    +			var parentdiv = thelink.parent();
    +
    +			if ( !jq('body.directory').length )
    +				location.href = location.href;
    +			else {
    +				jq(parentdiv).fadeOut(200,
    +					function() {
    +						parentdiv.fadeIn(200).html(response);
    +					}
    +					);
    +			}
    +		});
    +		return false;
    +	} );
    +
    +	/** Button disabling ************************************************/
    +
    +	jq('.pending').click(function() {
    +		return false;
    +	});
    +
    +	/** Private Messaging ******************************************/
    +
    +	/** Message search*/
    +	jq('.message-search').click( function(event) {
    +		if ( jq(this).hasClass('no-ajax') )
    +			return;
    +
    +		var target = jq(event.target);
    +
    +		if ( target.attr('type') == 'submit' ) {
    +			//var css_id = jq('.item-list-tabs li.selected').attr('id').split( '-' );
    +			var object = 'messages';
    +
    +			bp_filter_request( object, jq.cookie('bp-' + object + '-filter'), jq.cookie('bp-' + object + '-scope') , 'div.' + object, target.parent().children('label').children('input').val(), 1, jq.cookie('bp-' + object + '-extras') );
    +
    +			return false;
    +		}
    +	});
    +
    +	/* AJAX send reply functionality */
    +	jq("input#send_reply_button").click(
    +		function() {
    +			var order = jq('#messages_order').val() || 'ASC',
    +			offset = jq('#message-recipients').offset();
    +
    +			var button = jq("input#send_reply_button");
    +			jq(button).addClass('loading');
    +
    +			jq.post( ajaxurl, {
    +				action: 'messages_send_reply',
    +				'cookie': encodeURIComponent(document.cookie),
    +				'_wpnonce': jq("input#send_message_nonce").val(),
    +
    +				'content': jq("#message_content").val(),
    +				'send_to': jq("input#send_to").val(),
    +				'subject': jq("input#subject").val(),
    +				'thread_id': jq("input#thread_id").val()
    +			},
    +			function(response)
    +			{
    +				if ( response[0] + response[1] == "-1" ) {
    +					jq('form#send-reply').prepend( response.substr( 2, response.length ) );
    +				} else {
    +					jq('form#send-reply div#message').remove();
    +					jq("#message_content").val('');
    +
    +					if ( 'ASC' == order ) {
    +						jq('form#send-reply').before( response );
    +					} else {
    +						jq('#message-recipients').after( response );
    +						jq(window).scrollTop(offset.top);
    +					}
    +
    +					jq(".new-message").hide().slideDown( 200, function() {
    +						jq('.new-message').removeClass('new-message');
    +					});
    +				}
    +				jq(button).removeClass('loading');
    +			});
    +
    +			return false;
    +		}
    +	);
    +
    +	/* Marking private messages as read and unread */
    +	jq("a#mark_as_read, a#mark_as_unread").click(function() {
    +		var checkboxes_tosend = '';
    +		var checkboxes = jq("#message-threads tr td input[type='checkbox']");
    +
    +		if ( 'mark_as_unread' == jq(this).attr('id') ) {
    +			var currentClass = 'read'
    +			var newClass = 'unread'
    +			var unreadCount = 1;
    +			var inboxCount = 0;
    +			var unreadCountDisplay = 'inline';
    +			var action = 'messages_markunread';
    +		} else {
    +			var currentClass = 'unread'
    +			var newClass = 'read'
    +			var unreadCount = 0;
    +			var inboxCount = 1;
    +			var unreadCountDisplay = 'none';
    +			var action = 'messages_markread';
    +		}
    +
    +		checkboxes.each( function(i) {
    +			if(jq(this).is(':checked')) {
    +				if ( jq('tr#m-' + jq(this).attr('value')).hasClass(currentClass) ) {
    +					checkboxes_tosend += jq(this).attr('value');
    +					jq('tr#m-' + jq(this).attr('value')).removeClass(currentClass);
    +					jq('tr#m-' + jq(this).attr('value')).addClass(newClass);
    +					var thread_count = jq('tr#m-' + jq(this).attr('value') + ' td span.unread-count').html();
    +
    +					jq('tr#m-' + jq(this).attr('value') + ' td span.unread-count').html(unreadCount);
    +					jq('tr#m-' + jq(this).attr('value') + ' td span.unread-count').css('display', unreadCountDisplay);
    +
    +					var inboxcount = jq('tr.unread').length;
    +
    +					jq('a#user-messages span').html( inboxcount );
    +
    +					if ( i != checkboxes.length - 1 ) {
    +						checkboxes_tosend += ','
    +					}
    +				}
    +			}
    +		});
    +		jq.post( ajaxurl, {
    +			action: action,
    +			'thread_ids': checkboxes_tosend
    +		});
    +		return false;
    +	});
    +
    +	/* Selecting unread and read messages in inbox */
    +	jq("select#message-type-select").change(
    +		function() {
    +			var selection = jq("select#message-type-select").val();
    +			var checkboxes = jq("td input[type='checkbox']");
    +			checkboxes.each( function(i) {
    +				checkboxes[i].checked = "";
    +			});
    +
    +			switch(selection) {
    +				case 'unread':
    +					var checkboxes = jq("tr.unread td input[type='checkbox']");
    +					break;
    +				case 'read':
    +					var checkboxes = jq("tr.read td input[type='checkbox']");
    +					break;
    +			}
    +			if ( selection != '' ) {
    +				checkboxes.each( function(i) {
    +					checkboxes[i].checked = "checked";
    +				});
    +			} else {
    +				checkboxes.each( function(i) {
    +					checkboxes[i].checked = "";
    +				});
    +			}
    +		}
    +	);
    +
    +	/* Bulk delete messages */
    +	jq("a#delete_inbox_messages, a#delete_sentbox_messages").click( function() {
    +		checkboxes_tosend = '';
    +		checkboxes = jq("#message-threads tr td input[type='checkbox']");
    +
    +		jq('div#message').remove();
    +		jq(this).addClass('loading');
    +
    +		jq(checkboxes).each( function(i) {
    +			if( jq(this).is(':checked') )
    +				checkboxes_tosend += jq(this).attr('value') + ',';
    +		});
    +
    +		if ( '' == checkboxes_tosend ) {
    +			jq(this).removeClass('loading');
    +			return false;
    +		}
    +
    +		jq.post( ajaxurl, {
    +			action: 'messages_delete',
    +			'thread_ids': checkboxes_tosend
    +		}, function(response) {
    +			if ( response[0] + response[1] == "-1" ) {
    +				jq('#message-threads').prepend( response.substr( 2, response.length ) );
    +			} else {
    +				jq('#message-threads').before( '<div id="message" class="updated"><p>' + response + '</p></div>' );
    +
    +				jq(checkboxes).each( function(i) {
    +					if( jq(this).is(':checked') )
    +						jq(this).parent().parent().fadeOut(150);
    +				});
    +			}
    +
    +			jq('div#message').hide().slideDown(150);
    +			jq("a#delete_inbox_messages, a#delete_sentbox_messages").removeClass('loading');
    +		});
    +		return false;
    +	});
    +
    +	/* Close site wide notices in the sidebar */
    +	jq("a#close-notice").click( function() {
    +		jq(this).addClass('loading');
    +		jq('div#sidebar div.error').remove();
    +
    +		jq.post( ajaxurl, {
    +			action: 'messages_close_notice',
    +			'notice_id': jq('.notice').attr('rel').substr( 2, jq('.notice').attr('rel').length )
    +		},
    +		function(response) {
    +			jq("a#close-notice").removeClass('loading');
    +
    +			if ( response[0] + response[1] == '-1' ) {
    +				jq('.notice').prepend( response.substr( 2, response.length ) );
    +				jq( 'div#sidebar div.error').hide().fadeIn( 200 );
    +			} else {
    +				jq('.notice').slideUp( 100 );
    +			}
    +		});
    +		return false;
    +	});
    +
    +	/* Toolbar & wp_list_pages Javascript IE6 hover class */
    +	jq("#wp-admin-bar ul.main-nav li, #nav li").mouseover( function() {
    +		jq(this).addClass('sfhover');
    +	});
    +
    +	jq("#wp-admin-bar ul.main-nav li, #nav li").mouseout( function() {
    +		jq(this).removeClass('sfhover');
    +	});
    +
    +	/* Clear BP cookies on logout */
    +	jq('a.logout').click( function() {
    +		jq.cookie('bp-activity-scope', null, {
    +			path: '/'
    +		});
    +		jq.cookie('bp-activity-filter', null, {
    +			path: '/'
    +		});
    +		jq.cookie('bp-activity-oldestpage', null, {
    +			path: '/'
    +		});
    +
    +		var objects = [ 'members', 'groups', 'blogs', 'forums' ];
    +		jq(objects).each( function(i) {
    +			jq.cookie('bp-' + objects[i] + '-scope', null, {
    +				path: '/'
    +			} );
    +			jq.cookie('bp-' + objects[i] + '-filter', null, {
    +				path: '/'
    +			} );
    +			jq.cookie('bp-' + objects[i] + '-extras', null, {
    +				path: '/'
    +			} );
    +		});
    +	});
    +});
    +
    +/* Setup activity scope and filter based on the current cookie settings. */
    +function bp_init_activity() {
    +	/* Reset the page */
    +	jq.cookie( 'bp-activity-oldestpage', 1, {
    +		path: '/'
    +	} );
    +
    +	if ( null != jq.cookie('bp-activity-filter') && jq('#activity-filter-select').length )
    +		jq('#activity-filter-select select option[value="' + jq.cookie('bp-activity-filter') + '"]').prop( 'selected', true );
    +
    +	/* Activity Tab Set */
    +	if ( null != jq.cookie('bp-activity-scope') && jq('.activity-type-tabs').length ) {
    +		jq('.activity-type-tabs li').each( function() {
    +			jq(this).removeClass('selected');
    +		});
    +		jq('li#activity-' + jq.cookie('bp-activity-scope') + ', .item-list-tabs li.current').addClass('selected');
    +	}
    +}
    +
    +/* Setup object scope and filter based on the current cookie settings for the object. */
    +function bp_init_objects(objects) {
    +	jq(objects).each( function(i) {
    +		if ( null != jq.cookie('bp-' + objects[i] + '-filter') && jq('li#' + objects[i] + '-order-select select').length )
    +			jq('li#' + objects[i] + '-order-select select option[value="' + jq.cookie('bp-' + objects[i] + '-filter') + '"]').prop( 'selected', true );
    +
    +		if ( null != jq.cookie('bp-' + objects[i] + '-scope') && jq('div.' + objects[i]).length ) {
    +			jq('.item-list-tabs li').each( function() {
    +				jq(this).removeClass('selected');
    +			});
    +			jq('.item-list-tabs li#' + objects[i] + '-' + jq.cookie('bp-' + objects[i] + '-scope') + ', div.item-list-tabs#object-nav li.current').addClass('selected');
    +		}
    +	});
    +}
    +
    +/* Filter the current content list (groups/members/blogs/topics) */
    +function bp_filter_request( object, filter, scope, target, search_terms, page, extras ) {
    +	if ( 'activity' == object )
    +		return false;
    +
    +	if ( jq.query.get('s') && !search_terms )
    +		search_terms = jq.query.get('s');
    +
    +	if ( null == scope )
    +		scope = 'all';
    +
    +	/* Save the settings we want to remain persistent to a cookie */
    +	jq.cookie( 'bp-' + object + '-scope', scope, {
    +		path: '/'
    +	} );
    +	jq.cookie( 'bp-' + object + '-filter', filter, {
    +		path: '/'
    +	} );
    +	jq.cookie( 'bp-' + object + '-extras', extras, {
    +		path: '/'
    +	} );
    +
    +	/* Set the correct selected nav and filter */
    +	jq('.item-list-tabs li').each( function() {
    +		jq(this).removeClass('selected');
    +	});
    +	jq('.item-list-tabs li#' + object + '-' + scope + ', .item-list-tabs#object-nav li.current').addClass('selected');
    +	jq('.item-list-tabs li.selected').addClass('loading');
    +	jq('.item-list-tabs select option[value="' + filter + '"]').prop( 'selected', true );
    +
    +	if ( 'friends' == object )
    +		object = 'members';
    +
    +	if ( bp_ajax_request )
    +		bp_ajax_request.abort();
    +
    +	bp_ajax_request = jq.post( ajaxurl, {
    +		action: object + '_filter',
    +		'cookie': encodeURIComponent(document.cookie),
    +		'object': object,
    +		'filter': filter,
    +		'search_terms': search_terms,
    +		'scope': scope,
    +		'page': page,
    +		'extras': extras
    +	},
    +	function(response)
    +	{
    +		jq(target).fadeOut( 100, function() {
    +			jq(this).html(response);
    +			jq(this).fadeIn(100);
    +		});
    +		jq('.item-list-tabs li.selected').removeClass('loading');
    +	});
    +}
    +
    +/* Activity Loop Requesting */
    +function bp_activity_request(scope, filter) {
    +	/* Save the type and filter to a session cookie */
    +	jq.cookie( 'bp-activity-scope', scope, {
    +		path: '/'
    +	} );
    +	jq.cookie( 'bp-activity-filter', filter, {
    +		path: '/'
    +	} );
    +	jq.cookie( 'bp-activity-oldestpage', 1, {
    +		path: '/'
    +	} );
    +
    +	/* Remove selected and loading classes from tabs */
    +	jq('.item-list-tabs li').each( function() {
    +		jq(this).removeClass('selected loading');
    +	});
    +	/* Set the correct selected nav and filter */
    +	jq('li#activity-' + scope + ', .item-list-tabs li.current').addClass('selected');
    +	jq('#object-nav.item-list-tabs li.selected, div.activity-type-tabs li.selected').addClass('loading');
    +	jq('#activity-filter-select select option[value="' + filter + '"]').prop( 'selected', true );
    +
    +	/* Reload the activity stream based on the selection */
    +	jq('.widget_bp_activity_widget h2 span.ajax-loader').show();
    +
    +	if ( bp_ajax_request )
    +		bp_ajax_request.abort();
    +
    +	bp_ajax_request = jq.post( ajaxurl, {
    +		action: 'activity_widget_filter',
    +		'cookie': encodeURIComponent(document.cookie),
    +		'_wpnonce_activity_filter': jq("input#_wpnonce_activity_filter").val(),
    +		'scope': scope,
    +		'filter': filter
    +	},
    +	function(response)
    +	{
    +		jq('.widget_bp_activity_widget h2 span.ajax-loader').hide();
    +
    +		jq('div.activity').fadeOut( 100, function() {
    +			jq(this).html(response.contents);
    +			jq(this).fadeIn(100);
    +
    +			/* Selectively hide comments */
    +			bp_legacy_theme_hide_comments();
    +		});
    +
    +		/* Update the feed link */
    +		if ( null != response.feed_url )
    +			jq('.directory #subnav li.feed a, .home-page #subnav li.feed a').attr('href', response.feed_url);
    +
    +		jq('.item-list-tabs li.selected').removeClass('loading');
    +
    +	}, 'json' );
    +}
    +
    +/* Hide long lists of activity comments, only show the latest five root comments. */
    +function bp_legacy_theme_hide_comments() {
    +	var comments_divs = jq('div.activity-comments');
    +
    +	if ( !comments_divs.length )
    +		return false;
    +
    +	comments_divs.each( function() {
    +		if ( jq(this).children('ul').children('li').length < 5 ) return;
    +
    +		var comments_div = jq(this);
    +		var parent_li = comments_div.parents('ul#activity-stream > li');
    +		var comment_lis = jq(this).children('ul').children('li');
    +		var comment_count = ' ';
    +
    +		if ( jq('li#' + parent_li.attr('id') + ' a.acomment-reply span').length )
    +			var comment_count = jq('li#' + parent_li.attr('id') + ' a.acomment-reply span').html();
    +
    +		comment_lis.each( function(i) {
    +			/* Show the latest 5 root comments */
    +			if ( i < comment_lis.length - 5 ) {
    +				jq(this).addClass('hidden');
    +				jq(this).toggle();
    +
    +				if ( !i )
    +					jq(this).before( '<li class="show-all"><a href="#' + parent_li.attr('id') + '/show-all/" title="' + BP_DTheme.show_all_comments + '">' + BP_DTheme.show_all + ' ' + comment_count + ' ' + BP_DTheme.comments + '</a></li>' );
    +			}
    +		});
    +
    +	});
    +}
    +
    +/* Helper Functions */
    +
    +function checkAll() {
    +	var checkboxes = document.getElementsByTagName("input");
    +	for(var i=0; i<checkboxes.length; i++) {
    +		if(checkboxes[i].type == "checkbox") {
    +			if($("check_all").checked == "") {
    +				checkboxes[i].checked = "";
    +			}
    +			else {
    +				checkboxes[i].checked = "checked";
    +			}
    +		}
    +	}
    +}
    +
    +function clear(container) {
    +	if( !document.getElementById(container) ) return;
    +
    +	var container = document.getElementById(container);
    +
    +	if ( radioButtons = container.getElementsByTagName('INPUT') ) {
    +		for(var i=0; i<radioButtons.length; i++) {
    +			radioButtons[i].checked = '';
    +		}
    +	}
    +
    +	if ( options = container.getElementsByTagName('OPTION') ) {
    +		for(var i=0; i<options.length; i++) {
    +			options[i].selected = false;
    +		}
    +	}
    +
    +	return;
    +}
    +
    +/* ScrollTo plugin - just inline and minified */
    +;(function(d){var k=d.scrollTo=function(a,i,e){d(window).scrollTo(a,i,e)};k.defaults={axis:'xy',duration:parseFloat(d.fn.jquery)>=1.3?0:1};k.window=function(a){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var a=this,i=!a.nodeName||d.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!i)return a;var e=(a.contentWindow||a).document||a.ownerDocument||a;return d.browser.safari||e.compatMode=='BackCompat'?e.body:e.documentElement})};d.fn.scrollTo=function(n,j,b){if(typeof j=='object'){b=j;j=0}if(typeof b=='function')b={onAfter:b};if(n=='max')n=9e9;b=d.extend({},k.defaults,b);j=j||b.speed||b.duration;b.queue=b.queue&&b.axis.length>1;if(b.queue)j/=2;b.offset=p(b.offset);b.over=p(b.over);return this._scrollable().each(function(){var q=this,r=d(q),f=n,s,g={},u=r.is('html,body');switch(typeof f){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)){f=p(f);break}f=d(f,this);case'object':if(f.is||f.style)s=(f=d(f)).offset()}d.each(b.axis.split(''),function(a,i){var e=i=='x'?'Left':'Top',h=e.toLowerCase(),c='scroll'+e,l=q[c],m=k.max(q,i);if(s){g[c]=s[h]+(u?0:l-r.offset()[h]);if(b.margin){g[c]-=parseInt(f.css('margin'+e))||0;g[c]-=parseInt(f.css('border'+e+'Width'))||0}g[c]+=b.offset[h]||0;if(b.over[h])g[c]+=f[i=='x'?'width':'height']()*b.over[h]}else{var o=f[h];g[c]=o.slice&&o.slice(-1)=='%'?parseFloat(o)/100*m:o}if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],m);if(!a&&b.queue){if(l!=g[c])t(b.onAfterFirst);delete g[c]}});t(b.onAfter);function t(a){r.animate(g,j,b.easing,a&&function(){a.call(this,n,b)})}}).end()};k.max=function(a,i){var e=i=='x'?'Width':'Height',h='scroll'+e;if(!d(a).is('html,body'))return a[h]-d(a)[e.toLowerCase()]();var c='client'+e,l=a.ownerDocument.documentElement,m=a.ownerDocument.body;return Math.max(l[h],m[h])-Math.min(l[c],m[c])};function p(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);
    +
    +/* jQuery Easing Plugin, v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ */
    +jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});
    +
    +/* jQuery Cookie plugin */
    +jQuery.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options.expires=-1;}var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;}expires='; expires='+date.toUTCString();}var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('');}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+'=')){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break;}}}return cookieValue;}};
    +
    +/* jQuery querystring plugin */
    +eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('M 6(A){4 $11=A.11||\'&\';4 $V=A.V===r?r:j;4 $1p=A.1p===r?\'\':\'[]\';4 $13=A.13===r?r:j;4 $D=$13?A.D===j?"#":"?":"";4 $15=A.15===r?r:j;v.1o=M 6(){4 f=6(o,t){8 o!=1v&&o!==x&&(!!t?o.1t==t:j)};4 14=6(1m){4 m,1l=/\\[([^[]*)\\]/g,T=/^([^[]+)(\\[.*\\])?$/.1r(1m),k=T[1],e=[];19(m=1l.1r(T[2]))e.u(m[1]);8[k,e]};4 w=6(3,e,7){4 o,y=e.1b();b(I 3!=\'X\')3=x;b(y===""){b(!3)3=[];b(f(3,L)){3.u(e.h==0?7:w(x,e.z(0),7))}n b(f(3,1a)){4 i=0;19(3[i++]!=x);3[--i]=e.h==0?7:w(3[i],e.z(0),7)}n{3=[];3.u(e.h==0?7:w(x,e.z(0),7))}}n b(y&&y.T(/^\\s*[0-9]+\\s*$/)){4 H=1c(y,10);b(!3)3=[];3[H]=e.h==0?7:w(3[H],e.z(0),7)}n b(y){4 H=y.B(/^\\s*|\\s*$/g,"");b(!3)3={};b(f(3,L)){4 18={};1w(4 i=0;i<3.h;++i){18[i]=3[i]}3=18}3[H]=e.h==0?7:w(3[H],e.z(0),7)}n{8 7}8 3};4 C=6(a){4 p=d;p.l={};b(a.C){v.J(a.Z(),6(5,c){p.O(5,c)})}n{v.J(1u,6(){4 q=""+d;q=q.B(/^[?#]/,\'\');q=q.B(/[;&]$/,\'\');b($V)q=q.B(/[+]/g,\' \');v.J(q.Y(/[&;]/),6(){4 5=1e(d.Y(\'=\')[0]||"");4 c=1e(d.Y(\'=\')[1]||"");b(!5)8;b($15){b(/^[+-]?[0-9]+\\.[0-9]*$/.1d(c))c=1A(c);n b(/^[+-]?[0-9]+$/.1d(c))c=1c(c,10)}c=(!c&&c!==0)?j:c;b(c!==r&&c!==j&&I c!=\'1g\')c=c;p.O(5,c)})})}8 p};C.1H={C:j,1G:6(5,1f){4 7=d.Z(5);8 f(7,1f)},1h:6(5){b(!f(5))8 d.l;4 K=14(5),k=K[0],e=K[1];4 3=d.l[k];19(3!=x&&e.h!=0){3=3[e.1b()]}8 I 3==\'1g\'?3:3||""},Z:6(5){4 3=d.1h(5);b(f(3,1a))8 v.1E(j,{},3);n b(f(3,L))8 3.z(0);8 3},O:6(5,c){4 7=!f(c)?x:c;4 K=14(5),k=K[0],e=K[1];4 3=d.l[k];d.l[k]=w(3,e.z(0),7);8 d},w:6(5,c){8 d.N().O(5,c)},1s:6(5){8 d.O(5,x).17()},1z:6(5){8 d.N().1s(5)},1j:6(){4 p=d;v.J(p.l,6(5,7){1y p.l[5]});8 p},1F:6(Q){4 D=Q.B(/^.*?[#](.+?)(?:\\?.+)?$/,"$1");4 S=Q.B(/^.*?[?](.+?)(?:#.+)?$/,"$1");8 M C(Q.h==S.h?\'\':S,Q.h==D.h?\'\':D)},1x:6(){8 d.N().1j()},N:6(){8 M C(d)},17:6(){6 F(G){4 R=I G=="X"?f(G,L)?[]:{}:G;b(I G==\'X\'){6 1k(o,5,7){b(f(o,L))o.u(7);n o[5]=7}v.J(G,6(5,7){b(!f(7))8 j;1k(R,5,F(7))})}8 R}d.l=F(d.l);8 d},1B:6(){8 d.N().17()},1D:6(){4 i=0,U=[],W=[],p=d;4 16=6(E){E=E+"";b($V)E=E.B(/ /g,"+");8 1C(E)};4 1n=6(1i,5,7){b(!f(7)||7===r)8;4 o=[16(5)];b(7!==j){o.u("=");o.u(16(7))}1i.u(o.P(""))};4 F=6(R,k){4 12=6(5){8!k||k==""?[5].P(""):[k,"[",5,"]"].P("")};v.J(R,6(5,7){b(I 7==\'X\')F(7,12(5));n 1n(W,12(5),7)})};F(d.l);b(W.h>0)U.u($D);U.u(W.P($11));8 U.P("")}};8 M C(1q.S,1q.D)}}(v.1o||{});',62,106,'|||target|var|key|function|value|return|||if|val|this|tokens|is||length||true|base|keys||else||self||false|||push|jQuery|set|null|token|slice|settings|replace|queryObject|hash|str|build|orig|index|typeof|each|parsed|Array|new|copy|SET|join|url|obj|search|match|queryString|spaces|chunks|object|split|get||separator|newKey|prefix|parse|numbers|encode|COMPACT|temp|while|Object|shift|parseInt|test|decodeURIComponent|type|number|GET|arr|EMPTY|add|rx|path|addFields|query|suffix|location|exec|REMOVE|constructor|arguments|undefined|for|empty|delete|remove|parseFloat|compact|encodeURIComponent|toString|extend|load|has|prototype'.split('|'),0,{}))
    deleted file mode 100644
    + -  
    1 <?php
    2 
    3 /**
    4  * Functions of BuddyPress's Legacy theme
    5  *
    6  * @package BuddyPress
    7  * @subpackage BP_Theme_Compat
    8  * @since BuddyPress (1.7)
    9  */
    10 
    11 // Exit if accessed directly
    12 if ( !defined( 'ABSPATH' ) ) exit;
    13 
    14 /** Theme Setup ***************************************************************/
    15 
    16 if ( !class_exists( 'BP_Legacy' ) ) :
    17 
    18 /**
    19  * Loads BuddyPress Legacy Theme functionality
    20  *
    21  * This is not a real theme by WordPress standards, and is instead used as the
    22  * fallback for any WordPress theme that does not have BuddyPress templates in it.
    23  *
    24  * To make your custom theme BuddyPress compatible and customize the templates, you
    25  * can copy these files into your theme without needing to merge anything
    26  * together; BuddyPress should safely handle the rest.
    27  *
    28  * See @link BP_Theme_Compat() for more.
    29  *
    30  * @since BuddyPress (1.7)
    31  *
    32  * @package BuddyPress
    33  * @subpackage BP_Theme_Compat
    34  */
    35 class BP_Legacy extends BP_Theme_Compat {
    36 
    37         /** Functions *************************************************************/
    38 
    39         /**
    40          * The main BuddyPress (Legacy) Loader
    41          *
    42          * @since BuddyPress (1.7)
    43          *
    44          * @uses BP_Legacy::setup_globals()
    45          * @uses BP_Legacy::setup_actions()
    46          */
    47         public function __construct() {
    48 
    49                 // Bail if parent/child themes are bp-default
    50                 if ( in_array( 'bp-default', array( get_template(), get_stylesheet() ) ) )
    51                         return;
    52 
    53                 $this->setup_globals();
    54                 $this->setup_actions();
    55         }
    56 
    57         /**
    58          * Component global variables
    59          *
    60          * Note that this function is currently commented out in the constructor.
    61          * It will only be used if you copy this file into your current theme and
    62          * uncomment the line above.
    63          *
    64          * You'll want to customize the values in here, so they match whatever your
    65          * needs are.
    66          *
    67          * @since BuddyPress (1.7)
    68          * @access private
    69          */
    70         private function setup_globals() {
    71                 $bp            = buddypress();
    72                 $this->id      = 'legacy';
    73                 $this->name    = __( 'BuddyPress Legacy', 'buddypress' );
    74                 $this->version = bp_get_version();
    75                 $this->dir     = trailingslashit( $bp->themes_dir . '/bp-legacy' );
    76                 $this->url     = trailingslashit( $bp->themes_url . '/bp-legacy' );
    77         }
    78 
    79         /**
    80          * Setup the theme hooks
    81          *
    82          * @since BuddyPress (1.7)
    83          * @access private
    84          *
    85          * @uses add_filter() To add various filters
    86          * @uses add_action() To add various actions
    87          */
    88         private function setup_actions() {
    89 
    90                 /** Scripts ***********************************************************/
    91 
    92                 add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_styles'   ) ); // Enqueue theme CSS
    93                 add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_scripts'  ) ); // Enqueue theme JS
    94                 add_filter( 'bp_enqueue_scripts', array( $this, 'localize_scripts' ) ); // Enqueue theme script localization
    95                 add_action( 'bp_head',            array( $this, 'head_scripts'     ) ); // Output some extra JS in the <head>
    96 
    97                 /** Ajax **************************************************************/
    98 
    99                 $actions = array(
    100 
    101                         // Directory filters
    102                         'blogs_filter'    => 'bp_legacy_theme_object_template_loader',
    103                         'forums_filter'   => 'bp_legacy_theme_object_template_loader',
    104                         'groups_filter'   => 'bp_legacy_theme_object_template_loader',
    105                         'members_filter'  => 'bp_legacy_theme_object_template_loader',
    106                         'messages_filter' => 'bp_legacy_theme_messages_template_loader',
    107 
    108                         // Friends
    109                         'accept_friendship' => 'bp_legacy_theme_ajax_accept_friendship',
    110                         'addremove_friend'  => 'bp_legacy_theme_ajax_addremove_friend',
    111                         'reject_friendship' => 'bp_legacy_theme_ajax_reject_friendship',
    112 
    113                         // Activity
    114                         'activity_get_older_updates'  => 'bp_legacy_theme_activity_template_loader',
    115                         'activity_mark_fav'           => 'bp_legacy_theme_mark_activity_favorite',
    116                         'activity_mark_unfav'         => 'bp_legacy_theme_unmark_activity_favorite',
    117                         'activity_widget_filter'      => 'bp_legacy_theme_activity_template_loader',
    118                         'delete_activity'             => 'bp_legacy_theme_delete_activity',
    119                         'delete_activity_comment'     => 'bp_legacy_theme_delete_activity_comment',
    120                         'get_single_activity_content' => 'bp_legacy_theme_get_single_activity_content',
    121                         'new_activity_comment'        => 'bp_legacy_theme_new_activity_comment',
    122                         'post_update'                 => 'bp_legacy_theme_post_update',
    123                         'bp_spam_activity'            => 'bp_legacy_theme_spam_activity',
    124                         'bp_spam_activity_comment'    => 'bp_legacy_theme_spam_activity',
    125 
    126                         // Groups
    127                         'groups_invite_user' => 'bp_legacy_theme_ajax_invite_user',
    128                         'joinleave_group'    => 'bp_legacy_theme_ajax_joinleave_group',
    129 
    130                         // Messages
    131                         'messages_autocomplete_results' => 'bp_legacy_theme_ajax_messages_autocomplete_results',
    132                         'messages_close_notice'         => 'bp_legacy_theme_ajax_close_notice',
    133                         'messages_delete'               => 'bp_legacy_theme_ajax_messages_delete',
    134                         'messages_markread'             => 'bp_legacy_theme_ajax_message_markread',
    135                         'messages_markunread'           => 'bp_legacy_theme_ajax_message_markunread',
    136                         'messages_send_reply'           => 'bp_legacy_theme_ajax_messages_send_reply',
    137                 );
    138 
    139                 /**
    140                  * Register all of these AJAX handlers
    141                  *
    142                  * The "wp_ajax_" action is used for logged in users, and "wp_ajax_nopriv_"
    143                  * executes for users that aren't logged in. This is for backpat with BP <1.6.
    144                  */
    145                 foreach( $actions as $name => $function ) {
    146                         add_action( 'wp_ajax_'        . $name, $function );
    147                         add_action( 'wp_ajax_nopriv_' . $name, $function );
    148                 }
    149 
    150                 add_filter( 'bp_ajax_querystring', 'bp_legacy_theme_ajax_querystring', 10, 2 );
    151 
    152                 /** Override **********************************************************/
    153 
    154                 do_action_ref_array( 'bp_theme_compat_actions', array( &$this ) );
    155         }
    156 
    157         /**
    158          * Load the theme CSS
    159          *
    160          * @since BuddyPress (1.7)
    161          *
    162          * @uses wp_enqueue_style() To enqueue the styles
    163          */
    164         public function enqueue_styles() {
    165 
    166                 // LTR or RTL
    167                 $file = is_rtl() ? 'css/buddypress-rtl.css' : 'css/buddypress.css';
    168 
    169                 // Check child theme
    170                 if ( file_exists( trailingslashit( get_stylesheet_directory() ) . $file ) ) {
    171                         $location = trailingslashit( get_stylesheet_directory_uri() );
    172                         $handle   = 'bp-child-css';
    173 
    174                 // Check parent theme
    175                 } elseif ( file_exists( trailingslashit( get_template_directory() ) . $file ) ) {
    176                         $location = trailingslashit( get_template_directory_uri() );
    177                         $handle   = 'bp-parent-css';
    178 
    179                 // BuddyPress Theme Compatibility
    180                 } else {
    181                         $location = trailingslashit( $this->url );
    182                         $handle   = 'bp-legacy-css';
    183                 }
    184 
    185                 // Enqueue the BuddyPress styling
    186                 wp_enqueue_style( $handle, $location . $file, array(), $this->version, 'screen' );
    187         }
    188 
    189         /**
    190          * Enqueue the required Javascript files
    191          *
    192          * @since BuddyPress (1.7)
    193          */
    194         public function enqueue_scripts() {
    195 
    196                 // LTR or RTL
    197                 $file = 'js/buddypress.js';
    198 
    199                 // Check child theme
    200                 if ( file_exists( trailingslashit( get_stylesheet_directory() ) . $file ) ) {
    201                         $location = trailingslashit( get_stylesheet_directory_uri() );
    202                         $handle   = 'bp-child-js';
    203 
    204                 // Check parent theme
    205                 } elseif ( file_exists( trailingslashit( get_template_directory() ) . $file ) ) {
    206                         $location = trailingslashit( get_template_directory_uri() );
    207                         $handle   = 'bp-parent-js';
    208 
    209                 // BuddyPress Theme Compatibility
    210                 } else {
    211                         $location = trailingslashit( $this->url );
    212                         $handle   = 'bp-legacy-js';
    213                 }
    214 
    215                 // Enqueue the global JS - Ajax will not work without it
    216                 wp_enqueue_script( $handle, $location . $file, array( 'jquery' ), $this->version );
    217 
    218                 // Add words that we need to use in JS to the end of the page so they can be translated and still used.
    219                 $params = array(
    220                         'my_favs'           => __( 'My Favorites', 'buddypress' ),
    221                         'accepted'          => __( 'Accepted', 'buddypress' ),
    222                         'rejected'          => __( 'Rejected', 'buddypress' ),
    223                         'show_all_comments' => __( 'Show all comments for this thread', 'buddypress' ),
    224                         'show_all'          => __( 'Show all', 'buddypress' ),
    225                         'comments'          => __( 'comments', 'buddypress' ),
    226                         'close'             => __( 'Close', 'buddypress' ),
    227                         'view'              => __( 'View', 'buddypress' ),
    228                         'mark_as_fav'       => __( 'Favorite', 'buddypress' ),
    229                         'remove_fav'        => __( 'Remove Favorite', 'buddypress' )
    230                 );
    231                 wp_localize_script( $handle, 'BP_DTheme', $params );
    232 
    233                 // Maybe enqueue comment reply JS
    234                 if ( is_singular() && bp_is_blog_page() && get_option( 'thread_comments' ) ) {
    235                         wp_enqueue_script( 'comment-reply' );
    236                 }
    237         }
    238 
    239         /**
    240          * Put some scripts in the header, like AJAX url for wp-lists
    241          *
    242          * @since BuddyPress (1.7)
    243          */
    244         public function head_scripts() {
    245         ?>
    246 
    247                 <script type="text/javascript" charset="utf-8">
    248                         /* <![CDATA[ */
    249                         var ajaxurl = '<?php echo admin_url( 'admin-ajax.php' ); ?>';
    250                         /* ]]> */
    251                 </script>
    252 
    253         <?php
    254         }
    255 
    256         /**
    257          * Load localizations for topic script
    258          *
    259          * These localizations require information that may not be loaded even by init.
    260          *
    261          * @since BuddyPress (1.7)
    262          */
    263         public function localize_scripts() {
    264 
    265         }
    266 }
    267 new BP_Legacy();
    268 endif;
    269 
    270 /**
    271  * This function looks scarier than it actually is. :)
    272  * Each object loop (activity/members/groups/blogs/forums) contains default
    273  * parameters to show specific information based on the page we are currently
    274  * looking at.
    275  *
    276  * The following function will take into account any cookies set in the JS and
    277  * allow us to override the parameters sent. That way we can change the results
    278  * returned without reloading the page.
    279  *
    280  * By using cookies we can also make sure that user settings are retained
    281  * across page loads.
    282  *
    283  * @return string Query string for the component loops
    284  * @since BuddyPress (1.2)
    285  */
    286 function bp_legacy_theme_ajax_querystring( $query_string, $object ) {
    287         if ( empty( $object ) )
    288                 return '';
    289 
    290         // Set up the cookies passed on this AJAX request. Store a local var to avoid conflicts
    291         if ( ! empty( $_POST['cookie'] ) )
    292                 $_BP_COOKIE = wp_parse_args( str_replace( '; ', '&', urldecode( $_POST['cookie'] ) ) );
    293         else
    294                 $_BP_COOKIE = &$_COOKIE;
    295 
    296         $qs = array();
    297 
    298         /**
    299          * Check if any cookie values are set. If there are then override the
    300          * default params passed to the template loop.
    301          */
    302 
    303         // Activity stream filtering on action
    304         if ( ! empty( $_BP_COOKIE['bp-' . $object . '-filter'] ) && '-1' != $_BP_COOKIE['bp-' . $object . '-filter'] ) {
    305                 $qs[] = 'type='   . $_BP_COOKIE['bp-' . $object . '-filter'];
    306                 $qs[] = 'action=' . $_BP_COOKIE['bp-' . $object . '-filter'];
    307         }
    308 
    309         if ( ! empty( $_BP_COOKIE['bp-' . $object . '-scope'] ) ) {
    310                 if ( 'personal' == $_BP_COOKIE['bp-' . $object . '-scope'] ) {
    311                         $user_id = ( bp_displayed_user_id() ) ? bp_displayed_user_id() : bp_loggedin_user_id();
    312                         $qs[] = 'user_id=' . $user_id;
    313                 }
    314 
    315                 // Activity stream scope only on activity directory.
    316                 if ( 'all' != $_BP_COOKIE['bp-' . $object . '-scope'] && ! bp_displayed_user_id() && ! bp_is_single_item() )
    317                         $qs[] = 'scope=' . $_BP_COOKIE['bp-' . $object . '-scope'];
    318         }
    319 
    320         // If page and search_terms have been passed via the AJAX post request, use those.
    321         if ( ! empty( $_POST['page'] ) && '-1' != $_POST['page'] )
    322                 $qs[] = 'page=' . $_POST['page'];
    323 
    324         $object_search_text = bp_get_search_default_text( $object );
    325         if ( ! empty( $_POST['search_terms'] ) && $object_search_text != $_POST['search_terms'] && 'false' != $_POST['search_terms'] && 'undefined' != $_POST['search_terms'] )
    326                 $qs[] = 'search_terms=' . $_POST['search_terms'];
    327 
    328         // Now pass the querystring to override default values.
    329         $query_string = empty( $qs ) ? '' : join( '&', (array) $qs );
    330 
    331         $object_filter = '';
    332         if ( isset( $_BP_COOKIE['bp-' . $object . '-filter'] ) )
    333                 $object_filter = $_BP_COOKIE['bp-' . $object . '-filter'];
    334 
    335         $object_scope = '';
    336         if ( isset( $_BP_COOKIE['bp-' . $object . '-scope'] ) )
    337                 $object_scope = $_BP_COOKIE['bp-' . $object . '-scope'];
    338 
    339         $object_page = '';
    340         if ( isset( $_BP_COOKIE['bp-' . $object . '-page'] ) )
    341                 $object_page = $_BP_COOKIE['bp-' . $object . '-page'];
    342 
    343         $object_search_terms = '';
    344         if ( isset( $_BP_COOKIE['bp-' . $object . '-search-terms'] ) )
    345                 $object_search_terms = $_BP_COOKIE['bp-' . $object . '-search-terms'];
    346 
    347         $object_extras = '';
    348         if ( isset( $_BP_COOKIE['bp-' . $object . '-extras'] ) )
    349                 $object_extras = $_BP_COOKIE['bp-' . $object . '-extras'];
    350 
    351         return apply_filters( 'bp_legacy_theme_ajax_querystring', $query_string, $object, $object_filter, $object_scope, $object_page, $object_search_terms, $object_extras );
    352 }
    353 
    354 /**
    355  * Load the template loop for the current object.
    356  *
    357  * @return string Prints template loop for the specified object
    358  * @since BuddyPress (1.2)
    359  */
    360 function bp_legacy_theme_object_template_loader() {
    361         // Bail if not a POST action
    362         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    363                 return;
    364 
    365         /**
    366          * AJAX requests happen too early to be seen by bp_update_is_directory()
    367          * so we do it manually here to ensure templates load with the correct
    368          * context. Without this check, templates will load the 'single' version
    369          * of themselves rather than the directory version.
    370          */
    371 
    372         if ( ! bp_current_action() )
    373                 bp_update_is_directory( true, bp_current_component() );
    374 
    375         // Sanitize the post object
    376         $object = esc_attr( $_POST['object'] );
    377 
    378         // Locate the object template
    379         bp_get_template_part( "$object/$object-loop" );
    380         exit();
    381 }
    382 
    383 /**
    384  * Load messages template loop when searched on the private message page
    385  *
    386  * @return string Prints template loop for the Messages component
    387  * @since BuddyPress (1.6)
    388  */
    389 function bp_legacy_theme_messages_template_loader() {
    390         bp_get_template_part( 'members/single/messages/messages-loop' );
    391         exit();
    392 }
    393 
    394 /**
    395  * Load the activity loop template when activity is requested via AJAX,
    396  *
    397  * @return string JSON object containing 'contents' (output of the template loop
    398  * for the Activity component) and 'feed_url' (URL to the relevant RSS feed).
    399  *
    400  * @since BuddyPress (1.2)
    401  */
    402 function bp_legacy_theme_activity_template_loader() {
    403         // Bail if not a POST action
    404         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    405                 return;
    406 
    407         $scope = '';
    408         if ( ! empty( $_POST['scope'] ) )
    409                 $scope = $_POST['scope'];
    410 
    411         // We need to calculate and return the feed URL for each scope
    412         switch ( $scope ) {
    413                 case 'friends':
    414                         $feed_url = bp_loggedin_user_domain() . bp_get_activity_slug() . '/friends/feed/';
    415                         break;
    416                 case 'groups':
    417                         $feed_url = bp_loggedin_user_domain() . bp_get_activity_slug() . '/groups/feed/';
    418                         break;
    419                 case 'favorites':
    420                         $feed_url = bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/feed/';
    421                         break;
    422                 case 'mentions':
    423                         $feed_url = bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/feed/';
    424                         bp_activity_clear_new_mentions( bp_loggedin_user_id() );
    425                         break;
    426                 default:
    427                         $feed_url = home_url( bp_get_activity_root_slug() . '/feed/' );
    428                         break;
    429         }
    430 
    431         // Buffer the loop in the template to a var for JS to spit out.
    432         ob_start();
    433         bp_get_template_part( 'activity/activity-loop' );
    434         $result['contents'] = ob_get_contents();
    435         $result['feed_url'] = apply_filters( 'bp_legacy_theme_activity_feed_url', $feed_url, $scope );
    436         ob_end_clean();
    437 
    438         exit( json_encode( $result ) );
    439 }
    440 
    441 /**
    442  * Processes Activity updates received via a POST request.
    443  *
    444  * @return string HTML
    445  * @since BuddyPress (1.2)
    446  */
    447 function bp_legacy_theme_post_update() {
    448         // Bail if not a POST action
    449         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    450                 return;
    451 
    452         // Check the nonce
    453         check_admin_referer( 'post_update', '_wpnonce_post_update' );
    454 
    455         if ( ! is_user_logged_in() )
    456                 exit( '-1' );
    457 
    458         if ( empty( $_POST['content'] ) )
    459                 exit( '-1<div id="message" class="error"><p>' . __( 'Please enter some content to post.', 'buddypress' ) . '</p></div>' );
    460 
    461         $activity_id = 0;
    462         if ( empty( $_POST['object'] ) && bp_is_active( 'activity' ) ) {
    463                 $activity_id = bp_activity_post_update( array( 'content' => $_POST['content'] ) );
    464 
    465         } elseif ( $_POST['object'] == 'groups' ) {
    466                 if ( ! empty( $_POST['item_id'] ) && bp_is_active( 'groups' ) )
    467                         $activity_id = groups_post_update( array( 'content' => $_POST['content'], 'group_id' => $_POST['item_id'] ) );
    468 
    469         } else {
    470                 $activity_id = apply_filters( 'bp_activity_custom_update', $_POST['object'], $_POST['item_id'], $_POST['content'] );
    471         }
    472 
    473         if ( empty( $activity_id ) )
    474                 exit( '-1<div id="message" class="error"><p>' . __( 'There was a problem posting your update, please try again.', 'buddypress' ) . '</p></div>' );
    475 
    476         if ( bp_has_activities ( 'include=' . $activity_id ) ) {
    477                 while ( bp_activities() ) {
    478                         bp_the_activity();
    479                         bp_get_template_part( 'activity/entry' );
    480                 }
    481         }
    482 
    483         exit;
    484 }
    485 
    486 /**
    487  * Posts new Activity comments received via a POST request.
    488  *
    489  * @global BP_Activity_Template $activities_template
    490  * @return string HTML
    491  * @since BuddyPress (1.2)
    492  */
    493 function bp_legacy_theme_new_activity_comment() {
    494         global $activities_template;
    495 
    496         // Bail if not a POST action
    497         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    498                 return;
    499 
    500         // Check the nonce
    501         check_admin_referer( 'new_activity_comment', '_wpnonce_new_activity_comment' );
    502 
    503         if ( ! is_user_logged_in() )
    504                 exit( '-1' );
    505 
    506         if ( empty( $_POST['content'] ) )
    507                 exit( '-1<div id="message" class="error"><p>' . __( 'Please do not leave the comment area blank.', 'buddypress' ) . '</p></div>' );
    508 
    509         if ( empty( $_POST['form_id'] ) || empty( $_POST['comment_id'] ) || ! is_numeric( $_POST['form_id'] ) || ! is_numeric( $_POST['comment_id'] ) )
    510                 exit( '-1<div id="message" class="error"><p>' . __( 'There was an error posting that reply, please try again.', 'buddypress' ) . '</p></div>' );
    511 
    512         $comment_id = bp_activity_new_comment( array(
    513                 'activity_id' => $_POST['form_id'],
    514                 'content'     => $_POST['content'],
    515                 'parent_id'   => $_POST['comment_id'],
    516         ) );
    517 
    518         if ( ! $comment_id )
    519                 exit( '-1<div id="message" class="error"><p>' . __( 'There was an error posting that reply, please try again.', 'buddypress' ) . '</p></div>' );
    520 
    521         // Load the new activity item into the $activities_template global
    522         bp_has_activities( 'display_comments=stream&hide_spam=false&include=' . $comment_id );
    523 
    524         // Swap the current comment with the activity item we just loaded
    525         $activities_template->activity->id              = $activities_template->activities[0]->item_id;
    526         $activities_template->activity->current_comment = $activities_template->activities[0];
    527 
    528         $template = bp_locate_template( 'activity/comment.php', false, false );
    529 
    530         /**
    531          * Backward compatibility. In older versions of BP, the markup was
    532          * generated in the PHP instead of a template. This ensures that
    533          * older themes (which are not children of bp-legacy and won't
    534          * have the new template) will still work.
    535          */
    536         if ( empty( $template ) )
    537                 $template = BP_PLUGIN_DIR . '/bp-themes/bp-legacy/activity/comment.php';
    538 
    539         bp_get_template_part( $template );
    540 
    541         unset( $activities_template );
    542         exit;
    543 }
    544 
    545 /**
    546  * Deletes an Activity item received via a POST request.
    547  *
    548  * @return mixed String on error, void on success
    549  * @since BuddyPress (1.2)
    550  */
    551 function bp_legacy_theme_delete_activity() {
    552         // Bail if not a POST action
    553         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    554                 return;
    555 
    556         // Check the nonce
    557         check_admin_referer( 'bp_activity_delete_link' );
    558 
    559         if ( ! is_user_logged_in() )
    560                 exit( '-1' );
    561 
    562         if ( empty( $_POST['id'] ) || ! is_numeric( $_POST['id'] ) )
    563                 exit( '-1' );
    564 
    565         $activity = new BP_Activity_Activity( (int) $_POST['id'] );
    566 
    567         // Check access
    568         if ( empty( $activity->user_id ) || ! bp_activity_user_can_delete( $activity ) )
    569                 exit( '-1' );
    570 
    571         // Call the action before the delete so plugins can still fetch information about it
    572         do_action( 'bp_activity_before_action_delete_activity', $activity->id, $activity->user_id );
    573 
    574         if ( ! bp_activity_delete( array( 'id' => $activity->id, 'user_id' => $activity->user_id ) ) )
    575                 exit( '-1<div id="message" class="error"><p>' . __( 'There was a problem when deleting. Please try again.', 'buddypress' ) . '</p></div>' );
    576 
    577         do_action( 'bp_activity_action_delete_activity', $activity->id, $activity->user_id );
    578         exit;
    579 }
    580 
    581 /**
    582  * Deletes an Activity comment received via a POST request
    583  *
    584  * @return mixed String on error, void on success
    585  * @since BuddyPress (1.2)
    586  */
    587 function bp_legacy_theme_delete_activity_comment() {
    588         // Bail if not a POST action
    589         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    590                 return;
    591 
    592         // Check the nonce
    593         check_admin_referer( 'bp_activity_delete_link' );
    594 
    595         if ( ! is_user_logged_in() )
    596                 exit( '-1' );
    597 
    598         $comment = new BP_Activity_Activity( $_POST['id'] );
    599 
    600         // Check access
    601         if ( ! bp_current_user_can( 'bp_moderate' ) && $comment->user_id != bp_loggedin_user_id() )
    602                 exit( '-1' );
    603 
    604         if ( empty( $_POST['id'] ) || ! is_numeric( $_POST['id'] ) )
    605                 exit( '-1' );
    606 
    607         // Call the action before the delete so plugins can still fetch information about it
    608         do_action( 'bp_activity_before_action_delete_activity', $_POST['id'], $comment->user_id );
    609 
    610         if ( ! bp_activity_delete_comment( $comment->item_id, $comment->id ) )
    611                 exit( '-1<div id="message" class="error"><p>' . __( 'There was a problem when deleting. Please try again.', 'buddypress' ) . '</p></div>' );
    612 
    613         do_action( 'bp_activity_action_delete_activity', $_POST['id'], $comment->user_id );
    614         exit;
    615 }
    616 
    617 /**
    618  * AJAX spam an activity item or comment
    619  *
    620  * @global BuddyPress $bp The one true BuddyPress instance
    621  * @return mixed String on error, void on success
    622  * @since BuddyPress (1.6)
    623  */
    624 function bp_legacy_theme_spam_activity() {
    625         global $bp;
    626 
    627         // Bail if not a POST action
    628         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    629                 return;
    630 
    631         // Check that user is logged in, Activity Streams are enabled, and Akismet is present.
    632         if ( ! is_user_logged_in() || ! bp_is_active( 'activity' ) || empty( $bp->activity->akismet ) )
    633                 exit( '-1' );
    634 
    635         // Check an item ID was passed
    636         if ( empty( $_POST['id'] ) || ! is_numeric( $_POST['id'] ) )
    637                 exit( '-1' );
    638 
    639         // Is the current user allowed to spam items?
    640         if ( ! bp_activity_user_can_mark_spam() )
    641                 exit( '-1' );
    642 
    643         // Load up the activity item
    644         $activity = new BP_Activity_Activity( (int) $_POST['id'] );
    645         if ( empty( $activity->component ) )
    646                 exit( '-1' );
    647 
    648         // Check nonce
    649         check_admin_referer( 'bp_activity_akismet_spam_' . $activity->id );
    650 
    651         // Call an action before the spamming so plugins can modify things if they want to
    652         do_action( 'bp_activity_before_action_spam_activity', $activity->id, $activity );
    653 
    654         // Mark as spam
    655         bp_activity_mark_as_spam( $activity );
    656         $activity->save();
    657 
    658         do_action( 'bp_activity_action_spam_activity', $activity->id, $activity->user_id );
    659         exit;
    660 }
    661 
    662 /**
    663  * Mark an activity as a favourite via a POST request.
    664  *
    665  * @return string HTML
    666  * @since BuddyPress (1.2)
    667  */
    668 function bp_legacy_theme_mark_activity_favorite() {
    669         // Bail if not a POST action
    670         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    671                 return;
    672 
    673         if ( bp_activity_add_user_favorite( $_POST['id'] ) )
    674                 _e( 'Remove Favorite', 'buddypress' );
    675         else
    676                 _e( 'Favorite', 'buddypress' );
    677 
    678         exit;
    679 }
    680 
    681 /**
    682  * Un-favourite an activity via a POST request.
    683  *
    684  * @return string HTML
    685  * @since BuddyPress (1.2)
    686  */
    687 function bp_legacy_theme_unmark_activity_favorite() {
    688         // Bail if not a POST action
    689         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    690                 return;
    691 
    692         if ( bp_activity_remove_user_favorite( $_POST['id'] ) )
    693                 _e( 'Favorite', 'buddypress' );
    694         else
    695                 _e( 'Remove Favorite', 'buddypress' );
    696 
    697         exit;
    698 }
    699 
    700 /**
    701  * Fetches full an activity's full, non-excerpted content via a POST request.
    702  * Used for the 'Read More' link on long activity items.
    703  *
    704  * @return string HTML
    705  * @since BuddyPress (1.5)
    706  */
    707 function bp_legacy_theme_get_single_activity_content() {
    708         // Bail if not a POST action
    709         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    710                 return;
    711 
    712         $activity_array = bp_activity_get_specific( array(
    713                 'activity_ids'     => $_POST['activity_id'],
    714                 'display_comments' => 'stream'
    715         ) );
    716 
    717         $activity = ! empty( $activity_array['activities'][0] ) ? $activity_array['activities'][0] : false;
    718 
    719         if ( empty( $activity ) )
    720                 exit; // @todo: error?
    721 
    722         do_action_ref_array( 'bp_legacy_theme_get_single_activity_content', array( &$activity ) );
    723 
    724         // Activity content retrieved through AJAX should run through normal filters, but not be truncated
    725         remove_filter( 'bp_get_activity_content_body', 'bp_activity_truncate_entry', 5 );
    726         $content = apply_filters( 'bp_get_activity_content_body', $activity->content );
    727 
    728         exit( $content );
    729 }
    730 
    731 /**
    732  * Invites a friend to join a group via a POST request.
    733  *
    734  * @return unknown
    735  * @since BuddyPress (1.2)
    736  * @todo Audit return types
    737  */
    738 function bp_legacy_theme_ajax_invite_user() {
    739         // Bail if not a POST action
    740         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    741                 return;
    742 
    743         check_ajax_referer( 'groups_invite_uninvite_user' );
    744 
    745         if ( ! $_POST['friend_id'] || ! $_POST['friend_action'] || ! $_POST['group_id'] )
    746                 return;
    747 
    748         if ( ! bp_groups_user_can_send_invites( $_POST['group_id'] ) )
    749                 return;
    750 
    751         if ( ! friends_check_friendship( bp_loggedin_user_id(), $_POST['friend_id'] ) )
    752                 return;
    753 
    754         if ( 'invite' == $_POST['friend_action'] ) {
    755                 if ( ! groups_invite_user( array( 'user_id' => $_POST['friend_id'], 'group_id' => $_POST['group_id'] ) ) )
    756                         return;
    757 
    758                 $user = new BP_Core_User( $_POST['friend_id'] );
    759 
    760                 echo '<li id="uid-' . $user->id . '">';
    761                 echo $user->avatar_thumb;
    762                 echo '<h4>' . $user->user_link . '</h4>';
    763                 echo '<span class="activity">' . esc_attr( $user->last_active ) . '</span>';
    764                 echo '<div class="action">
    765                                 <a class="button remove" href="' . wp_nonce_url( bp_loggedin_user_domain() . bp_get_groups_slug() . '/' . $_POST['group_id'] . '/invites/remove/' . $user->id, 'groups_invite_uninvite_user' ) . '" id="uid-' . esc_attr( $user->id ) . '">' . __( 'Remove Invite', 'buddypress' ) . '</a>
    766                           </div>';
    767                 echo '</li>';
    768                 exit;
    769 
    770         } elseif ( 'uninvite' == $_POST['friend_action'] ) {
    771                 if ( ! groups_uninvite_user( $_POST['friend_id'], $_POST['group_id'] ) )
    772                         return;
    773 
    774                 exit;
    775 
    776         } else {
    777                 return;
    778         }
    779 }
    780 
    781 /**
    782  * Friend/un-friend a user via a POST request.
    783  *
    784  * @return string HTML
    785  * @since BuddyPress (1.2)
    786  */
    787 function bp_legacy_theme_ajax_addremove_friend() {
    788         // Bail if not a POST action
    789         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    790                 return;
    791 
    792         if ( 'is_friend' == BP_Friends_Friendship::check_is_friend( bp_loggedin_user_id(), $_POST['fid'] ) ) {
    793                 check_ajax_referer( 'friends_remove_friend' );
    794 
    795                 if ( ! friends_remove_friend( bp_loggedin_user_id(), $_POST['fid'] ) )
    796                         echo __( 'Friendship could not be canceled.', 'buddypress' );
    797                 else
    798                         echo '<a id="friend-' . $_POST['fid'] . '" class="add" rel="add" title="' . __( 'Add Friend', 'buddypress' ) . '" href="' . wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/add-friend/' . $_POST['fid'], 'friends_add_friend' ) . '">' . __( 'Add Friend', 'buddypress' ) . '</a>';
    799 
    800         } elseif ( 'not_friends' == BP_Friends_Friendship::check_is_friend( bp_loggedin_user_id(), $_POST['fid'] ) ) {
    801                 check_ajax_referer( 'friends_add_friend' );
    802 
    803                 if ( ! friends_add_friend( bp_loggedin_user_id(), $_POST['fid'] ) )
    804                         echo __(' Friendship could not be requested.', 'buddypress' );
    805                 else
    806                         echo '<a id="friend-' . $_POST['fid'] . '" class="remove" rel="remove" title="' . __( 'Cancel Friendship Request', 'buddypress' ) . '" href="' . wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/cancel/' . (int) $_POST['fid'] . '/', 'friends_withdraw_friendship' ) . '" class="requested">' . __( 'Cancel Friendship Request', 'buddypress' ) . '</a>';
    807 
    808         } elseif ( 'pending' == BP_Friends_Friendship::check_is_friend( bp_loggedin_user_id(), (int) $_POST['fid'] ) ) {               
    809                 check_ajax_referer( 'friends_withdraw_friendship' );
    810 
    811                 if ( friends_withdraw_friendship( bp_loggedin_user_id(), (int) $_POST['fid'] ) )
    812                         echo '<a id="friend-' . $_POST['fid'] . '" class="add" rel="add" title="' . __( 'Add Friend', 'buddypress' ) . '" href="' . wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/add-friend/' . $_POST['fid'], 'friends_add_friend' ) . '">' . __( 'Add Friend', 'buddypress' ) . '</a>';
    813                 else
    814                         echo __("Friendship request could not be cancelled.", 'buddypress');
    815 
    816         } else {
    817                 echo __( 'Request Pending', 'buddypress' );
    818         }
    819 
    820         exit;
    821 }
    822 
    823 /**
    824  * Accept a user friendship request via a POST request.
    825  *
    826  * @return mixed String on error, void on success
    827  * @since BuddyPress (1.2)
    828  */
    829 function bp_legacy_theme_ajax_accept_friendship() {
    830         // Bail if not a POST action
    831         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    832                 return;
    833 
    834         check_admin_referer( 'friends_accept_friendship' );
    835 
    836         if ( ! friends_accept_friendship( $_POST['id'] ) )
    837                 echo "-1<div id='message' class='error'><p>" . __( 'There was a problem accepting that request. Please try again.', 'buddypress' ) . '</p></div>';
    838 
    839         exit;
    840 }
    841 
    842 /**
    843  * Reject a user friendship request via a POST request.
    844  *
    845  * @return mixed String on error, void on success
    846  * @since BuddyPress (1.2)
    847  */
    848 function bp_legacy_theme_ajax_reject_friendship() {
    849         // Bail if not a POST action
    850         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    851                 return;
    852 
    853         check_admin_referer( 'friends_reject_friendship' );
    854 
    855         if ( ! friends_reject_friendship( $_POST['id'] ) )
    856                 echo "-1<div id='message' class='error'><p>" . __( 'There was a problem rejecting that request. Please try again.', 'buddypress' ) . '</p></div>';
    857 
    858         exit;
    859 }
    860 
    861 /**
    862  * Join or leave a group when clicking the "join/leave" button via a POST request.
    863  *
    864  * @return string HTML
    865  * @since BuddyPress (1.2)
    866  */
    867 function bp_legacy_theme_ajax_joinleave_group() {
    868         // Bail if not a POST action
    869         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    870                 return;
    871 
    872         if ( groups_is_user_banned( bp_loggedin_user_id(), $_POST['gid'] ) )
    873                 return;
    874 
    875         if ( ! $group = groups_get_group( array( 'group_id' => $_POST['gid'] ) ) )
    876                 return;
    877 
    878         if ( ! groups_is_user_member( bp_loggedin_user_id(), $group->id ) ) {
    879                 if ( 'public' == $group->status ) {
    880                         check_ajax_referer( 'groups_join_group' );
    881 
    882                         if ( ! groups_join_group( $group->id ) )
    883                                 _e( 'Error joining group', 'buddypress' );
    884                         else
    885                                 echo '<a id="group-' . esc_attr( $group->id ) . '" class="leave-group" rel="leave" title="' . __( 'Leave Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>';
    886 
    887                 } elseif ( 'private' == $group->status ) {
    888                         check_ajax_referer( 'groups_request_membership' );
    889 
    890                         if ( ! groups_send_membership_request( bp_loggedin_user_id(), $group->id ) )
    891                                 _e( 'Error requesting membership', 'buddypress' );
    892                         else
    893                                 echo '<a id="group-' . esc_attr( $group->id ) . '" class="membership-requested" rel="membership-requested" title="' . __( 'Membership Requested', 'buddypress' ) . '" href="' . bp_get_group_permalink( $group ) . '">' . __( 'Membership Requested', 'buddypress' ) . '</a>';
    894                 }
    895 
    896         } else {
    897                 check_ajax_referer( 'groups_leave_group' );
    898 
    899                 if ( ! groups_leave_group( $group->id ) )
    900                         _e( 'Error leaving group', 'buddypress' );
    901                 elseif ( 'public' == $group->status )
    902                         echo '<a id="group-' . esc_attr( $group->id ) . '" class="join-group" rel="join" title="' . __( 'Join Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'join', 'groups_join_group' ) . '">' . __( 'Join Group', 'buddypress' ) . '</a>';
    903                 elseif ( 'private' == $group->status )
    904                         echo '<a id="group-' . esc_attr( $group->id ) . '" class="request-membership" rel="join" title="' . __( 'Request Membership', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'request-membership', 'groups_send_membership_request' ) . '">' . __( 'Request Membership', 'buddypress' ) . '</a>';
    905         }
    906 
    907         exit;
    908 }
    909 
    910 /**
    911  * Close and keep closed site wide notices from an admin in the sidebar, via a POST request.
    912  *
    913  * @return mixed String on error, void on success
    914  * @since BuddyPress (1.2)
    915  */
    916 function bp_legacy_theme_ajax_close_notice() {
    917         // Bail if not a POST action
    918         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    919                 return;
    920 
    921         if ( ! isset( $_POST['notice_id'] ) ) {
    922                 echo "-1<div id='message' class='error'><p>" . __( 'There was a problem closing the notice.', 'buddypress' ) . '</p></div>';
    923 
    924         } else {
    925                 $user_id      = get_current_user_id();
    926                 $notice_ids   = bp_get_user_meta( $user_id, 'closed_notices', true );
    927                 $notice_ids[] = (int) $_POST['notice_id'];
    928 
    929                 bp_update_user_meta( $user_id, 'closed_notices', $notice_ids );
    930         }
    931 
    932         exit;
    933 }
    934 
    935 /**
    936  * Send a private message reply to a thread via a POST request.
    937  *
    938  * @return string HTML
    939  * @since BuddyPress (1.2)
    940  */
    941 function bp_legacy_theme_ajax_messages_send_reply() {
    942         // Bail if not a POST action
    943         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    944                 return;
    945 
    946         check_ajax_referer( 'messages_send_message' );
    947 
    948         $result = messages_new_message( array( 'thread_id' => $_REQUEST['thread_id'], 'content' => $_REQUEST['content'] ) );
    949 
    950         if ( $result ) { ?>
    951                 <div class="message-box new-message">
    952                         <div class="message-metadata">
    953                                 <?php do_action( 'bp_before_message_meta' ); ?>
    954                                 <?php echo bp_loggedin_user_avatar( 'type=thumb&width=30&height=30' ); ?>
    955 
    956                                 <strong><a href="<?php echo bp_loggedin_user_domain(); ?>"><?php bp_loggedin_user_fullname(); ?></a> <span class="activity"><?php printf( __( 'Sent %s', 'buddypress' ), bp_core_time_since( bp_core_current_time() ) ); ?></span></strong>
    957 
    958                                 <?php do_action( 'bp_after_message_meta' ); ?>
    959                         </div>
    960 
    961                         <?php do_action( 'bp_before_message_content' ); ?>
    962 
    963                         <div class="message-content">
    964                                 <?php echo stripslashes( apply_filters( 'bp_get_the_thread_message_content', $_REQUEST['content'] ) ); ?>
    965                         </div>
    966 
    967                         <?php do_action( 'bp_after_message_content' ); ?>
    968 
    969                         <div class="clear"></div>
    970                 </div>
    971         <?php
    972         } else {
    973                 echo "-1<div id='message' class='error'><p>" . __( 'There was a problem sending that reply. Please try again.', 'buddypress' ) . '</p></div>';
    974         }
    975 
    976         exit;
    977 }
    978 
    979 /**
    980  * Mark a private message as unread in your inbox via a POST request.
    981  *
    982  * @return mixed String on error, void on success
    983  * @since BuddyPress (1.2)
    984  */
    985 function bp_legacy_theme_ajax_message_markunread() {
    986         // Bail if not a POST action
    987         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    988                 return;
    989 
    990         if ( ! isset($_POST['thread_ids']) ) {
    991                 echo "-1<div id='message' class='error'><p>" . __( 'There was a problem marking messages as unread.', 'buddypress' ) . '</p></div>';
    992 
    993         } else {
    994                 $thread_ids = explode( ',', $_POST['thread_ids'] );
    995 
    996                 for ( $i = 0, $count = count( $thread_ids ); $i < $count; ++$i ) {
    997                         BP_Messages_Thread::mark_as_unread($thread_ids[$i]);
    998                 }
    999         }
    1000 
    1001         exit;
    1002 }
    1003 
    1004 /**
    1005  * Mark a private message as read in your inbox via a POST request.
    1006  *
    1007  * @return mixed String on error, void on success
    1008  * @since BuddyPress (1.2)
    1009  */
    1010 function bp_legacy_theme_ajax_message_markread() {
    1011         // Bail if not a POST action
    1012         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    1013                 return;
    1014 
    1015         if ( ! isset($_POST['thread_ids']) ) {
    1016                 echo "-1<div id='message' class='error'><p>" . __('There was a problem marking messages as read.', 'buddypress' ) . '</p></div>';
    1017 
    1018         } else {
    1019                 $thread_ids = explode( ',', $_POST['thread_ids'] );
    1020 
    1021                 for ( $i = 0, $count = count( $thread_ids ); $i < $count; ++$i ) {
    1022                         BP_Messages_Thread::mark_as_read($thread_ids[$i]);
    1023                 }
    1024         }
    1025 
    1026         exit;
    1027 }
    1028 
    1029 /**
    1030  * Delete a private message(s) in your inbox via a POST request.
    1031  *
    1032  * @return string HTML
    1033  * @since BuddyPress (1.2)
    1034  */
    1035 function bp_legacy_theme_ajax_messages_delete() {
    1036         // Bail if not a POST action
    1037         if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    1038                 return;
    1039 
    1040         if ( ! isset($_POST['thread_ids']) ) {
    1041                 echo "-1<div id='message' class='error'><p>" . __( 'There was a problem deleting messages.', 'buddypress' ) . '</p></div>';
    1042 
    1043         } else {
    1044                 $thread_ids = explode( ',', $_POST['thread_ids'] );
    1045 
    1046                 for ( $i = 0, $count = count( $thread_ids ); $i < $count; ++$i )
    1047                         BP_Messages_Thread::delete($thread_ids[$i]);
    1048 
    1049                 _e( 'Messages deleted.', 'buddypress' );
    1050         }
    1051 
    1052         exit;
    1053 }
    1054 
    1055 /**
    1056  * AJAX handler for autocomplete. Displays friends only, unless BP_MESSAGES_AUTOCOMPLETE_ALL is defined.
    1057  *
    1058  * @global BuddyPress $bp The one true BuddyPress instance
    1059  * @return string HTML
    1060  * @since BuddyPress (1.2)
    1061  */
    1062 function bp_legacy_theme_ajax_messages_autocomplete_results() {
    1063         global $bp;
    1064 
    1065         // Include everyone in the autocomplete, or just friends?
    1066         if ( bp_is_current_component( bp_get_messages_slug() ) )
    1067                 $autocomplete_all = $bp->messages->autocomplete_all;
    1068 
    1069         $pag_page = 1;
    1070         $limit    = $_GET['limit'] ? $_GET['limit'] : apply_filters( 'bp_autocomplete_max_results', 10 );
    1071 
    1072         // Get the user ids based on the search terms
    1073         if ( ! empty( $autocomplete_all ) ) {
    1074                 $users = BP_Core_User::search_users( $_GET['q'], $limit, $pag_page );
    1075 
    1076                 if ( ! empty( $users['users'] ) ) {
    1077                         // Build an array with the correct format
    1078                         $user_ids = array();
    1079                         foreach( $users['users'] as $user ) {
    1080                                 if ( $user->id != bp_loggedin_user_id() )
    1081                                         $user_ids[] = $user->id;
    1082                         }
    1083 
    1084                         $user_ids = apply_filters( 'bp_core_autocomplete_ids', $user_ids, $_GET['q'], $limit );
    1085                 }
    1086 
    1087         } else {
    1088                 if ( bp_is_active( 'friends' ) ) {
    1089                         $users = friends_search_friends( $_GET['q'], bp_loggedin_user_id(), $limit, 1 );
    1090 
    1091                         // Keeping the bp_friends_autocomplete_list filter for backward compatibility
    1092                         $users = apply_filters( 'bp_friends_autocomplete_list', $users, $_GET['q'], $limit );
    1093 
    1094                         if ( ! empty( $users['friends'] ) )
    1095                                 $user_ids = apply_filters( 'bp_friends_autocomplete_ids', $users['friends'], $_GET['q'], $limit );
    1096                 }
    1097         }
    1098 
    1099         if ( ! empty( $user_ids ) ) {
    1100                 foreach ( $user_ids as $user_id ) {
    1101                         $ud = get_userdata( $user_id );
    1102                         if ( ! $ud )
    1103                                 continue;
    1104 
    1105                         if ( bp_is_username_compatibility_mode() )
    1106                                 $username = $ud->user_login;
    1107                         else
    1108                                 $username = $ud->user_nicename;
    1109 
    1110                         // Note that the final line break acts as a delimiter for the
    1111                         // autocomplete javascript and thus should not be removed
    1112                         echo '<span id="link-' . $username . '" href="' . bp_core_get_user_domain( $user_id ) . '"></span>' . bp_core_fetch_avatar( array( 'item_id' => $user_id, 'type' => 'thumb', 'width' => 15, 'height' => 15, 'alt' => $ud->display_name ) ) . ' &nbsp;' . bp_core_get_user_displayname( $user_id ) . ' (' . $username . ')' . "\n";
    1113                 }
    1114         }
    1115 
    1116         exit;
    1117 }
  • deleted file bp-themes/bp-legacy/buddypress/activity/activity-loop.php

    deleted file mode 100644
    + -  
    1 <?php do_action( 'bp_before_activity_loop' ); ?>
    2 
    3 <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
    4 
    5         <?php /* Show pagination if JS is not enabled, since the "Load More" link will do nothing */ ?>
    6         <noscript>
    7                 <div class="pagination">
    8                         <div class="pag-count"><?php bp_activity_pagination_count(); ?></div>
    9                         <div class="pagination-links"><?php bp_activity_pagination_links(); ?></div>
    10                 </div>
    11         </noscript>
    12 
    13         <?php if ( empty( $_POST['page'] ) ) : ?>
    14 
    15                 <ul id="activity-stream" class="activity-list item-list">
    16 
    17         <?php endif; ?>
    18 
    19         <?php while ( bp_activities() ) : bp_the_activity(); ?>
    20 
    21                 <?php bp_get_template_part( 'activity/entry' ); ?>
    22 
    23         <?php endwhile; ?>
    24 
    25         <?php if ( bp_activity_has_more_items() ) : ?>
    26 
    27                 <li class="load-more">
    28                         <a href="#more"><?php _e( 'Load More', 'buddypress' ); ?></a>
    29                 </li>
    30 
    31         <?php endif; ?>
    32 
    33         <?php if ( empty( $_POST['page'] ) ) : ?>
    34 
    35                 </ul>
    36 
    37         <?php endif; ?>
    38 
    39 <?php else : ?>
    40 
    41         <div id="message" class="info">
    42                 <p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p>
    43         </div>
    44 
    45 <?php endif; ?>
    46 
    47 <?php do_action( 'bp_after_activity_loop' ); ?>
    48 
    49 <form action="" name="activity-loop-form" id="activity-loop-form" method="post">
    50 
    51         <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?>
    52 
    53 </form>
    54  No newline at end of file
  • deleted file bp-themes/bp-legacy/buddypress/activity/comment.php

    deleted file mode 100644
    + -  
    1 <?php
    2 
    3 /**
    4  * BuddyPress - Activity Stream Comment
    5  *
    6  * This template is used by bp_activity_comments() functions to show
    7  * each activity.
    8  *
    9  * @package BuddyPress
    10  * @subpackage bp-legacy
    11  */
    12 
    13 ?>
    14 
    15 <?php do_action( 'bp_before_activity_comment' ); ?>
    16 
    17 <li id="acomment-<?php bp_activity_comment_id(); ?>">
    18         <div class="acomment-avatar">
    19                 <a href="<?php bp_activity_comment_user_link(); ?>">
    20                         <?php bp_activity_avatar( 'type=thumb&user_id=' . bp_get_activity_comment_user_id() ); ?>
    21                 </a>
    22         </div>
    23 
    24         <div class="acomment-meta">
    25                 <?php
    26                 /* translators: 1: user profile link, 2: user name, 3: activity permalink, 4: activity timestamp */
    27                 printf( __( '<a href="%1$s">%2$s</a> replied <a href="%3$s" class="activity-time-since"><span class="time-since">%4$s</span></a>', 'buddypress' ), bp_get_activity_comment_user_link(), bp_get_activity_comment_name(), bp_get_activity_thread_permalink(), bp_get_activity_comment_date_recorded() );
    28                 ?>
    29         </div>
    30 
    31         <div class="acomment-content"><?php bp_activity_comment_content(); ?></div>
    32 
    33         <div class="acomment-options">
    34 
    35                 <?php if ( is_user_logged_in() && bp_activity_can_comment_reply( bp_activity_current_comment() ) ) : ?>
    36 
    37                         <a href="#acomment-<?php bp_activity_comment_id(); ?>" class="acomment-reply bp-primary-action" id="acomment-reply-<?php bp_activity_id(); ?>-from-<?php bp_activity_comment_id(); ?>"><?php _e( 'Reply', 'buddypress' ); ?></a>
    38 
    39                 <?php endif; ?>
    40 
    41                 <?php if ( bp_activity_user_can_delete() ) : ?>
    42 
    43                         <a href="<?php bp_activity_comment_delete_link(); ?>" class="delete acomment-delete confirm bp-secondary-action" rel="nofollow"><?php _e( 'Delete', 'buddypress' ); ?></a>
    44 
    45                 <?php endif; ?>
    46 
    47                 <?php do_action( 'bp_activity_comment_options' ); ?>
    48 
    49         </div>
    50 
    51         <?php bp_activity_recurse_comments( bp_activity_current_comment() ); ?>
    52 </li>
    53 
    54 <?php do_action( 'bp_after_activity_comment' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/activity/entry.php

    deleted file mode 100644
    + -  
    1 <?php
    2 
    3 /**
    4  * BuddyPress - Activity Stream (Single Item)
    5  *
    6  * This template is used by activity-loop.php and AJAX functions to show
    7  * each activity.
    8  *
    9  * @package BuddyPress
    10  * @subpackage bp-legacy
    11  */
    12 
    13 ?>
    14 
    15 <?php do_action( 'bp_before_activity_entry' ); ?>
    16 
    17 <li class="<?php bp_activity_css_class(); ?>" id="activity-<?php bp_activity_id(); ?>">
    18         <div class="activity-avatar">
    19                 <a href="<?php bp_activity_user_link(); ?>">
    20 
    21                         <?php bp_activity_avatar(); ?>
    22 
    23                 </a>
    24         </div>
    25 
    26         <div class="activity-content">
    27 
    28                 <div class="activity-header">
    29 
    30                         <?php bp_activity_action(); ?>
    31 
    32                 </div>
    33 
    34                 <?php if ( 'activity_comment' == bp_get_activity_type() ) : ?>
    35 
    36                         <div class="activity-inreplyto">
    37                                 <strong><?php _e( 'In reply to: ', 'buddypress' ); ?></strong><?php bp_activity_parent_content(); ?> <a href="<?php bp_activity_thread_permalink(); ?>" class="view" title="<?php _e( 'View Thread / Permalink', 'buddypress' ); ?>"><?php _e( 'View', 'buddypress' ); ?></a>
    38                         </div>
    39 
    40                 <?php endif; ?>
    41 
    42                 <?php if ( bp_activity_has_content() ) : ?>
    43 
    44                         <div class="activity-inner">
    45 
    46                                 <?php bp_activity_content_body(); ?>
    47 
    48                         </div>
    49 
    50                 <?php endif; ?>
    51 
    52                 <?php do_action( 'bp_activity_entry_content' ); ?>
    53 
    54                 <?php if ( is_user_logged_in() ) : ?>
    55 
    56                         <div class="activity-meta">
    57 
    58                                 <?php if ( bp_activity_can_comment() ) : ?>
    59 
    60                                         <a href="<?php bp_get_activity_comment_link(); ?>" class="button acomment-reply bp-primary-action" id="acomment-comment-<?php bp_activity_id(); ?>"><?php printf( __( 'Comment <span>%s</span>', 'buddypress' ), bp_activity_get_comment_count() ); ?></a>
    61 
    62                                 <?php endif; ?>
    63 
    64                                 <?php if ( bp_activity_can_favorite() ) : ?>
    65 
    66                                         <?php if ( !bp_get_activity_is_favorite() ) : ?>
    67 
    68                                                 <a href="<?php bp_activity_favorite_link(); ?>" class="button fav bp-secondary-action" title="<?php esc_attr_e( 'Mark as Favorite', 'buddypress' ); ?>"><?php _e( 'Favorite', 'buddypress' ); ?></a>
    69 
    70                                         <?php else : ?>
    71 
    72                                                 <a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action" title="<?php esc_attr_e( 'Remove Favorite', 'buddypress' ); ?>"><?php _e( 'Remove Favorite', 'buddypress' ); ?></a>
    73 
    74                                         <?php endif; ?>
    75 
    76                                 <?php endif; ?>
    77 
    78                                 <?php if ( bp_activity_user_can_delete() ) bp_activity_delete_link(); ?>
    79 
    80                                 <?php do_action( 'bp_activity_entry_meta' ); ?>
    81 
    82                         </div>
    83 
    84                 <?php endif; ?>
    85 
    86         </div>
    87 
    88         <?php do_action( 'bp_before_activity_entry_comments' ); ?>
    89 
    90         <?php if ( ( is_user_logged_in() && bp_activity_can_comment() ) || bp_activity_get_comment_count() ) : ?>
    91 
    92                 <div class="activity-comments">
    93 
    94                         <?php bp_activity_comments(); ?>
    95 
    96                         <?php if ( is_user_logged_in() ) : ?>
    97 
    98                                 <form action="<?php bp_activity_comment_form_action(); ?>" method="post" id="ac-form-<?php bp_activity_id(); ?>" class="ac-form"<?php bp_activity_comment_form_nojs_display(); ?>>
    99                                         <div class="ac-reply-avatar"><?php bp_loggedin_user_avatar( 'width=' . BP_AVATAR_THUMB_WIDTH . '&height=' . BP_AVATAR_THUMB_HEIGHT ); ?></div>
    100                                         <div class="ac-reply-content">
    101                                                 <div class="ac-textarea">
    102                                                         <textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input" name="ac_input_<?php bp_activity_id(); ?>"></textarea>
    103                                                 </div>
    104                                                 <input type="submit" name="ac_form_submit" value="<?php _e( 'Post', 'buddypress' ); ?>" /> &nbsp; <?php _e( 'or press esc to cancel.', 'buddypress' ); ?>
    105                                                 <input type="hidden" name="comment_form_id" value="<?php bp_activity_id(); ?>" />
    106                                         </div>
    107 
    108                                         <?php do_action( 'bp_activity_entry_comments' ); ?>
    109 
    110                                         <?php wp_nonce_field( 'new_activity_comment', '_wpnonce_new_activity_comment' ); ?>
    111 
    112                                 </form>
    113 
    114                         <?php endif; ?>
    115 
    116                 </div>
    117 
    118         <?php endif; ?>
    119 
    120         <?php do_action( 'bp_after_activity_entry_comments' ); ?>
    121 
    122 </li>
    123 
    124 <?php do_action( 'bp_after_activity_entry' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/activity/index.php

    deleted file mode 100644
    + -  
    1 <?php do_action( 'bp_before_directory_activity' ); ?>
    2 
    3 <div id="buddypress">
    4 
    5         <?php do_action( 'bp_before_directory_activity_content' ); ?>
    6 
    7         <?php if ( is_user_logged_in() ) : ?>
    8 
    9                 <?php bp_get_template_part( 'activity/post-form' ); ?>
    10 
    11         <?php endif; ?>
    12 
    13         <?php do_action( 'template_notices' ); ?>
    14 
    15         <div class="item-list-tabs activity-type-tabs" role="navigation">
    16                 <ul>
    17                         <?php do_action( 'bp_before_activity_type_tab_all' ); ?>
    18 
    19                         <li class="selected" id="activity-all"><a href="<?php bp_activity_directory_permalink(); ?>" title="<?php _e( 'The public activity for everyone on this site.', 'buddypress' ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'buddypress' ), bp_get_total_member_count() ); ?></a></li>
    20 
    21                         <?php if ( is_user_logged_in() ) : ?>
    22 
    23                                 <?php do_action( 'bp_before_activity_type_tab_friends' ); ?>
    24 
    25                                 <?php if ( bp_is_active( 'friends' ) ) : ?>
    26 
    27                                         <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    28 
    29                                                 <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?>" title="<?php _e( 'The activity of my friends only.', 'buddypress' ); ?>"><?php printf( __( 'My Friends <span>%s</span>', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a></li>
    30 
    31                                         <?php endif; ?>
    32 
    33                                 <?php endif; ?>
    34 
    35                                 <?php do_action( 'bp_before_activity_type_tab_groups' ); ?>
    36 
    37                                 <?php if ( bp_is_active( 'groups' ) ) : ?>
    38 
    39                                         <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
    40 
    41                                                 <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() . '/'; ?>" title="<?php _e( 'The activity of groups I am a member of.', 'buddypress' ); ?>"><?php printf( __( 'My Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
    42 
    43                                         <?php endif; ?>
    44 
    45                                 <?php endif; ?>
    46 
    47                                 <?php do_action( 'bp_before_activity_type_tab_favorites' ); ?>
    48 
    49                                 <?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?>
    50 
    51                                         <li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/'; ?>" title="<?php _e( "The activity I've marked as a favorite.", 'buddypress' ); ?>"><?php printf( __( 'My Favorites <span>%s</span>', 'buddypress' ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
    52 
    53                                 <?php endif; ?>
    54 
    55                                 <?php do_action( 'bp_before_activity_type_tab_mentions' ); ?>
    56 
    57                                 <li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/'; ?>" title="<?php _e( 'Activity that I have been mentioned in.', 'buddypress' ); ?>"><?php _e( 'Mentions', 'buddypress' ); ?><?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?> <strong><?php printf( __( '<span>%s new</span>', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ); ?></strong><?php endif; ?></a></li>
    58 
    59                         <?php endif; ?>
    60 
    61                         <?php do_action( 'bp_activity_type_tabs' ); ?>
    62                 </ul>
    63         </div><!-- .item-list-tabs -->
    64 
    65         <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    66                 <ul>
    67                         <li class="feed"><a href="<?php bp_sitewide_activity_feed_link(); ?>" title="<?php _e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ); ?></a></li>
    68 
    69                         <?php do_action( 'bp_activity_syndication_options' ); ?>
    70 
    71                         <li id="activity-filter-select" class="last">
    72                                 <label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label>
    73                                 <select id="activity-filter-by">
    74                                         <option value="-1"><?php _e( 'Everything', 'buddypress' ); ?></option>
    75                                         <option value="activity_update"><?php _e( 'Updates', 'buddypress' ); ?></option>
    76 
    77                                         <?php if ( bp_is_active( 'blogs' ) ) : ?>
    78 
    79                                                 <option value="new_blog_post"><?php _e( 'Posts', 'buddypress' ); ?></option>
    80                                                 <option value="new_blog_comment"><?php _e( 'Comments', 'buddypress' ); ?></option>
    81 
    82                                         <?php endif; ?>
    83 
    84                                         <?php if ( bp_is_active( 'forums' ) ) : ?>
    85 
    86                                                 <option value="new_forum_topic"><?php _e( 'Forum Topics', 'buddypress' ); ?></option>
    87                                                 <option value="new_forum_post"><?php _e( 'Forum Replies', 'buddypress' ); ?></option>
    88 
    89                                         <?php endif; ?>
    90 
    91                                         <?php if ( bp_is_active( 'groups' ) ) : ?>
    92 
    93                                                 <option value="created_group"><?php _e( 'New Groups', 'buddypress' ); ?></option>
    94                                                 <option value="joined_group"><?php _e( 'Group Memberships', 'buddypress' ); ?></option>
    95 
    96                                         <?php endif; ?>
    97 
    98                                         <?php if ( bp_is_active( 'friends' ) ) : ?>
    99 
    100                                                 <option value="friendship_accepted,friendship_created"><?php _e( 'Friendships', 'buddypress' ); ?></option>
    101 
    102                                         <?php endif; ?>
    103 
    104                                         <option value="new_member"><?php _e( 'New Members', 'buddypress' ); ?></option>
    105 
    106                                         <?php do_action( 'bp_activity_filter_options' ); ?>
    107 
    108                                 </select>
    109                         </li>
    110                 </ul>
    111         </div><!-- .item-list-tabs -->
    112 
    113         <?php do_action( 'bp_before_directory_activity_list' ); ?>
    114 
    115         <div class="activity" role="main">
    116 
    117                 <?php bp_get_template_part( 'activity/activity-loop' ); ?>
    118 
    119         </div><!-- .activity -->
    120 
    121         <?php do_action( 'bp_after_directory_activity_list' ); ?>
    122 
    123         <?php do_action( 'bp_directory_activity_content' ); ?>
    124 
    125         <?php do_action( 'bp_after_directory_activity_content' ); ?>
    126 
    127         <?php do_action( 'bp_after_directory_activity' ); ?>
    128 
    129 </div>
    130  No newline at end of file
  • deleted file bp-themes/bp-legacy/buddypress/activity/post-form.php

    deleted file mode 100644
    + -  
    1 <?php
    2 
    3 /**
    4  * BuddyPress - Activity Post Form
    5  *
    6  * @package BuddyPress
    7  * @subpackage bp-legacy
    8  */
    9 
    10 ?>
    11 
    12 <form action="<?php bp_activity_post_form_action(); ?>" method="post" id="whats-new-form" name="whats-new-form" role="complementary">
    13 
    14         <?php do_action( 'bp_before_activity_post_form' ); ?>
    15 
    16         <div id="whats-new-avatar">
    17                 <a href="<?php echo bp_loggedin_user_domain(); ?>">
    18                         <?php bp_loggedin_user_avatar( 'width=' . bp_core_avatar_thumb_width() . '&height=' . bp_core_avatar_thumb_height() ); ?>
    19                 </a>
    20         </div>
    21 
    22         <div id="whats-new-content">
    23                 <div id="whats-new-textarea">
    24                         <textarea name="whats-new" id="whats-new" cols="50" rows="10"><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_attr( $_GET['r'] ); ?> <?php endif; ?></textarea>
    25                 </div>
    26 
    27                 <div id="whats-new-options">
    28                         <div id="whats-new-submit">
    29                                 <input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="<?php _e( 'Post Update', 'buddypress' ); ?>" />
    30                         </div>
    31 
    32                         <?php if ( bp_is_active( 'groups' ) && !bp_is_my_profile() && !bp_is_group() ) : ?>
    33 
    34                                 <div id="whats-new-post-in-box">
    35 
    36                                         <?php _e( 'Post in', 'buddypress' ); ?>:
    37 
    38                                         <select id="whats-new-post-in" name="whats-new-post-in">
    39                                                 <option selected="selected" value="0"><?php _e( 'My Profile', 'buddypress' ); ?></option>
    40 
    41                                                 <?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100&populate_extras=0' ) ) :
    42                                                         while ( bp_groups() ) : bp_the_group(); ?>
    43 
    44                                                                 <option value="<?php bp_group_id(); ?>"><?php bp_group_name(); ?></option>
    45 
    46                                                         <?php endwhile;
    47                                                 endif; ?>
    48 
    49                                         </select>
    50                                 </div>
    51                                 <input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" />
    52 
    53                         <?php elseif ( bp_is_group_home() ) : ?>
    54 
    55                                 <input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" />
    56                                 <input type="hidden" id="whats-new-post-in" name="whats-new-post-in" value="<?php bp_group_id(); ?>" />
    57 
    58                         <?php endif; ?>
    59 
    60                         <?php do_action( 'bp_activity_post_form_options' ); ?>
    61 
    62                 </div><!-- #whats-new-options -->
    63         </div><!-- #whats-new-content -->
    64 
    65         <?php wp_nonce_field( 'post_update', '_wpnonce_post_update' ); ?>
    66         <?php do_action( 'bp_after_activity_post_form' ); ?>
    67 
    68 </form><!-- #whats-new-form -->
  • deleted file bp-themes/bp-legacy/buddypress/blogs/blogs-loop.php

    deleted file mode 100644
    + -  
    1 <?php
    2 
    3 /**
    4  * BuddyPress - Blogs Loop
    5  *
    6  * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter()
    7  *
    8  * @package BuddyPress
    9  * @subpackage bp-legacy
    10  */
    11 
    12 ?>
    13 
    14 <?php do_action( 'bp_before_blogs_loop' ); ?>
    15 
    16 <?php if ( bp_has_blogs( bp_ajax_querystring( 'blogs' ) ) ) : ?>
    17 
    18         <div id="pag-top" class="pagination">
    19 
    20                 <div class="pag-count" id="blog-dir-count-top">
    21                         <?php bp_blogs_pagination_count(); ?>
    22                 </div>
    23 
    24                 <div class="pagination-links" id="blog-dir-pag-top">
    25                         <?php bp_blogs_pagination_links(); ?>
    26                 </div>
    27 
    28         </div>
    29 
    30         <?php do_action( 'bp_before_directory_blogs_list' ); ?>
    31 
    32         <ul id="blogs-list" class="item-list" role="main">
    33 
    34         <?php while ( bp_blogs() ) : bp_the_blog(); ?>
    35 
    36                 <li>
    37                         <div class="item-avatar">
    38                                 <a href="<?php bp_blog_permalink(); ?>"><?php bp_blog_avatar( 'type=thumb' ); ?></a>
    39                         </div>
    40 
    41                         <div class="item">
    42                                 <div class="item-title"><a href="<?php bp_blog_permalink(); ?>"><?php bp_blog_name(); ?></a></div>
    43                                 <div class="item-meta"><span class="activity"><?php bp_blog_last_active(); ?></span></div>
    44 
    45                                 <?php do_action( 'bp_directory_blogs_item' ); ?>
    46                         </div>
    47 
    48                         <div class="action">
    49 
    50                                 <?php do_action( 'bp_directory_blogs_actions' ); ?>
    51 
    52                                 <div class="meta">
    53 
    54                                         <?php bp_blog_latest_post(); ?>
    55 
    56                                 </div>
    57 
    58                         </div>
    59 
    60                         <div class="clear"></div>
    61                 </li>
    62 
    63         <?php endwhile; ?>
    64 
    65         </ul>
    66 
    67         <?php do_action( 'bp_after_directory_blogs_list' ); ?>
    68 
    69         <?php bp_blog_hidden_fields(); ?>
    70 
    71         <div id="pag-bottom" class="pagination">
    72 
    73                 <div class="pag-count" id="blog-dir-count-bottom">
    74 
    75                         <?php bp_blogs_pagination_count(); ?>
    76 
    77                 </div>
    78 
    79                 <div class="pagination-links" id="blog-dir-pag-bottom">
    80 
    81                         <?php bp_blogs_pagination_links(); ?>
    82 
    83                 </div>
    84 
    85         </div>
    86 
    87 <?php else: ?>
    88 
    89         <div id="message" class="info">
    90                 <p><?php _e( 'Sorry, there were no sites found.', 'buddypress' ); ?></p>
    91         </div>
    92 
    93 <?php endif; ?>
    94 
    95 <?php do_action( 'bp_after_blogs_loop' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/blogs/create.php

    deleted file mode 100644
    + -  
    1 <?php do_action( 'bp_before_create_blog_content_template' ); ?>
    2 
    3 <?php do_action( 'template_notices' ); ?>
    4 
    5 <?php do_action( 'bp_before_create_blog_content' ); ?>
    6 
    7 <?php if ( bp_blog_signup_enabled() ) : ?>
    8 
    9         <?php bp_show_blog_signup_form(); ?>
    10 
    11 <?php else: ?>
    12 
    13         <div id="message" class="info">
    14                 <p><?php _e( 'Site registration is currently disabled', 'buddypress' ); ?></p>
    15         </div>
    16 
    17 <?php endif; ?>
    18 
    19 <?php do_action( 'bp_after_create_blog_content' ); ?>
    20 
    21 <?php do_action( 'bp_after_create_blog_content_template' ); ?>
    22  No newline at end of file
  • deleted file bp-themes/bp-legacy/buddypress/blogs/index.php

    deleted file mode 100644
    + -  
    1 <?php do_action( 'bp_before_directory_blogs' ); ?>
    2 
    3 <div id="buddypress">
    4         <form action="" method="post" id="blogs-directory-form" class="dir-form">
    5 
    6                 <?php do_action( 'bp_before_directory_blogs_content' ); ?>
    7 
    8                 <div id="blog-dir-search" class="dir-search" role="search">
    9 
    10                         <?php bp_directory_blogs_search_form(); ?>
    11 
    12                 </div><!-- #blog-dir-search -->
    13 
    14                 <div class="item-list-tabs" role="navigation">
    15                         <ul>
    16                                 <li class="selected" id="blogs-all"><a href="<?php bp_root_domain(); ?>/<?php bp_blogs_root_slug(); ?>"><?php printf( __( 'All Sites <span>%s</span>', 'buddypress' ), bp_get_total_blog_count() ); ?></a></li>
    17 
    18                                 <?php if ( is_user_logged_in() && bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ) : ?>
    19 
    20                                         <li id="blogs-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_blogs_slug(); ?>"><?php printf( __( 'My Sites <span>%s</span>', 'buddypress' ), bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
    21 
    22                                 <?php endif; ?>
    23 
    24                                 <?php do_action( 'bp_blogs_directory_blog_types' ); ?>
    25 
    26                         </ul>
    27                 </div><!-- .item-list-tabs -->
    28 
    29                 <div class="item-list-tabs" id="subnav" role="navigation">
    30                         <ul>
    31 
    32                                 <?php do_action( 'bp_blogs_directory_blog_sub_types' ); ?>
    33 
    34                                 <li id="blogs-order-select" class="last filter">
    35 
    36                                         <label for="blogs-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
    37                                         <select id="blogs-order-by">
    38                                                 <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
    39                                                 <option value="newest"><?php _e( 'Newest', 'buddypress' ); ?></option>
    40                                                 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    41 
    42                                                 <?php do_action( 'bp_blogs_directory_order_options' ); ?>
    43 
    44                                         </select>
    45                                 </li>
    46                         </ul>
    47                 </div>
    48 
    49                 <div id="blogs-dir-list" class="blogs dir-list">
    50 
    51                         <?php bp_get_template_part( 'blogs/blogs-loop' ); ?>
    52 
    53                 </div><!-- #blogs-dir-list -->
    54 
    55                 <?php do_action( 'bp_directory_blogs_content' ); ?>
    56 
    57                 <?php wp_nonce_field( 'directory_blogs', '_wpnonce-blogs-filter' ); ?>
    58 
    59                 <?php do_action( 'bp_after_directory_blogs_content' ); ?>
    60 
    61         </form><!-- #blogs-directory-form -->
    62 
    63         <?php do_action( 'bp_after_directory_blogs' ); ?>
    64 
    65 </div>
    66  No newline at end of file
  • deleted file bp-themes/bp-legacy/buddypress/forums/forums-loop.php

    deleted file mode 100644
    + -  
    1 <?php
    2 
    3 /**
    4  * BuddyPress - Forums Loop
    5  *
    6  * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter()
    7  *
    8  * @package BuddyPress
    9  * @subpackage bp-legacy
    10  */
    11 
    12 ?>
    13 
    14 <?php do_action( 'bp_before_forums_loop' ); ?>
    15 
    16 <?php if ( bp_has_forum_topics( bp_ajax_querystring( 'forums' ) ) ) : ?>
    17 
    18         <div id="pag-top" class="pagination">
    19 
    20                 <div class="pag-count" id="topic-count-top">
    21 
    22                         <?php bp_forum_pagination_count(); ?>
    23 
    24                 </div>
    25 
    26                 <div class="pagination-links" id="topic-pag-top">
    27 
    28                         <?php bp_forum_pagination(); ?>
    29 
    30                 </div>
    31 
    32         </div>
    33 
    34         <?php do_action( 'bp_before_directory_forums_list' ); ?>
    35 
    36         <table class="forum">
    37                 <thead>
    38                         <tr>
    39                                 <th id="th-title"><?php _e( 'Topic', 'buddypress' ); ?></th>
    40                                 <th id="th-postcount"><?php _e( 'Posts', 'buddypress' ); ?></th>
    41                                 <th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ); ?></th>
    42 
    43                                 <?php do_action( 'bp_directory_forums_extra_cell_head' ); ?>
    44 
    45                         </tr>
    46                 </thead>
    47 
    48                 <tbody>
    49 
    50                         <?php while ( bp_forum_topics() ) : bp_the_forum_topic(); ?>
    51 
    52                         <tr class="<?php bp_the_topic_css_class(); ?>">
    53                                 <td class="td-title">
    54                                         <a class="topic-title" href="<?php bp_the_topic_permalink(); ?>" title="<?php bp_the_topic_title(); ?> - <?php _e( 'Permalink', 'buddypress' ); ?>">
    55 
    56                                                 <?php bp_the_topic_title(); ?>
    57 
    58                                         </a>
    59 
    60                                         <p class="topic-meta">
    61                                                 <span class="topic-by"><?php /* translators: "started by [poster] in [forum]" */ printf( __( 'Started by %1$s', 'buddypress' ), bp_get_the_topic_poster_avatar( 'height=20&width=20') . bp_get_the_topic_poster_name() ); ?></span>
    62 
    63                                                 <?php if ( !bp_is_group_forum() ) : ?>
    64 
    65                                                         <span class="topic-in">
    66 
    67                                                                 <?php
    68                                                                         $topic_in = '<a href="' . bp_get_the_topic_object_permalink() . '">' . bp_get_the_topic_object_avatar( 'type=thumb&width=20&height=20' ) . '</a>' .
    69                                                                                                         '<a href="' . bp_get_the_topic_object_permalink() . '" title="' . bp_get_the_topic_object_name() . '">' . bp_get_the_topic_object_name() .'</a>';
    70 
    71                                                                         /* translators: "started by [poster] in [forum]" */
    72                                                                         printf( __( 'in %1$s', 'buddypress' ), $topic_in );
    73                                                                 ?>
    74 
    75                                                         </span>
    76 
    77                                                 <?php endif; ?>
    78 
    79                                         </p>
    80                                 </td>
    81                                 <td class="td-postcount">
    82                                         <?php bp_the_topic_total_posts(); ?>
    83                                 </td>
    84                                 <td class="td-freshness">
    85                                         <span class="time-since"><?php bp_the_topic_time_since_last_post(); ?></span>
    86                                         <p class="topic-meta">
    87                                                 <span class="freshness-author">
    88                                                         <a href="<?php bp_the_topic_permalink(); ?>"><?php bp_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ); ?></a>
    89                                                         <?php bp_the_topic_last_poster_name(); ?>
    90                                                 </span>
    91                                         </p>
    92                                 </td>
    93 
    94                                 <?php do_action( 'bp_directory_forums_extra_cell' ); ?>
    95 
    96                         </tr>
    97 
    98                         <?php do_action( 'bp_directory_forums_extra_row' ); ?>
    99 
    100                         <?php endwhile; ?>
    101 
    102                 </tbody>
    103         </table>
    104 
    105         <?php do_action( 'bp_after_directory_forums_list' ); ?>
    106 
    107         <div id="pag-bottom" class="pagination">
    108 
    109                 <div class="pag-count" id="topic-count-bottom">
    110                         <?php bp_forum_pagination_count(); ?>
    111                 </div>
    112 
    113                 <div class="pagination-links" id="topic-pag-bottom">
    114                         <?php bp_forum_pagination(); ?>
    115                 </div>
    116 
    117         </div>
    118 
    119 <?php else: ?>
    120 
    121         <div id="message" class="info">
    122                 <p><?php _e( 'Sorry, there were no forum topics found.', 'buddypress' ); ?></p>
    123         </div>
    124 
    125 <?php endif; ?>
    126 
    127 <?php do_action( 'bp_after_forums_loop' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/forums/index.php

    deleted file mode 100644
    + -  
    1 <?php do_action( 'bp_before_directory_forums' ); ?>
    2 
    3 <form action="" method="post" id="forums-search-form" class="dir-form">
    4 
    5         <?php do_action( 'bp_before_directory_forums_content' ); ?>
    6 
    7         <div id="forums-dir-search" class="dir-search" role="search">
    8 
    9                 <?php bp_directory_forums_search_form(); ?>
    10 
    11         </div>
    12 </form>
    13 
    14 <?php do_action( 'bp_before_topics' ); ?>
    15 
    16 <form action="" method="post" id="forums-directory-form" class="dir-form">
    17 
    18         <div class="item-list-tabs" role="navigation">
    19                 <ul>
    20                         <li class="selected" id="forums-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_forums_root_slug() ); ?>"><?php printf( __( 'All Topics <span>%s</span>', 'buddypress' ), bp_get_forum_topic_count() ); ?></a></li>
    21 
    22                         <?php if ( is_user_logged_in() && bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) : ?>
    23 
    24                                 <li id="forums-personal"><a href="<?php echo trailingslashit( bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics' ); ?>"><?php printf( __( 'My Topics <span>%s</span>', 'buddypress' ), bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
    25 
    26                         <?php endif; ?>
    27 
    28                         <?php do_action( 'bp_forums_directory_group_types' ); ?>
    29 
    30                 </ul>
    31         </div>
    32 
    33         <div class="item-list-tabs" id="subnav" role="navigation">
    34                 <ul>
    35 
    36                         <?php do_action( 'bp_forums_directory_group_sub_types' ); ?>
    37 
    38                         <li id="forums-order-select" class="last filter">
    39 
    40                                 <label for="forums-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
    41                                 <select id="forums-order-by">
    42                                         <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
    43                                         <option value="popular"><?php _e( 'Most Posts', 'buddypress' ); ?></option>
    44                                         <option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ); ?></option>
    45 
    46                                         <?php do_action( 'bp_forums_directory_order_options' ); ?>
    47 
    48                                 </select>
    49                         </li>
    50                 </ul>
    51         </div>
    52 
    53         <div id="forums-dir-list" class="forums dir-list" role="main">
    54 
    55                 <?php bp_get_template_part( 'forums/forums-loop' ); ?>
    56 
    57         </div>
    58 
    59         <?php do_action( 'bp_directory_forums_content' ); ?>
    60 
    61         <?php wp_nonce_field( 'directory_forums', '_wpnonce-forums-filter' ); ?>
    62 
    63 </form>
    64 
    65 <?php do_action( 'bp_after_directory_forums' ); ?>
    66 
    67 <?php do_action( 'bp_before_new_topic_form' ); ?>
    68 
    69 <div id="new-topic-post">
    70 
    71         <?php if ( is_user_logged_in() ) : ?>
    72 
    73                 <?php if ( bp_is_active( 'groups' ) && bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100' ) ) : ?>
    74 
    75                         <form action="" method="post" id="forum-topic-form" class="standard-form">
    76 
    77                                 <?php do_action( 'groups_forum_new_topic_before' ); ?>
    78 
    79                                 <a name="post-new"></a>
    80                                 <h5><?php _e( 'Create New Topic:', 'buddypress' ); ?></h5>
    81 
    82                                 <?php do_action( 'template_notices' ); ?>
    83 
    84                                 <label><?php _e( 'Title:', 'buddypress' ); ?></label>
    85                                 <input type="text" name="topic_title" id="topic_title" value="" maxlength="100" />
    86 
    87                                 <label><?php _e( 'Content:', 'buddypress' ); ?></label>
    88                                 <textarea name="topic_text" id="topic_text"></textarea>
    89 
    90                                 <label><?php _e( 'Tags (comma separated):', 'buddypress' ); ?></label>
    91                                 <input type="text" name="topic_tags" id="topic_tags" value="" />
    92 
    93                                 <label><?php _e( 'Post In Group Forum:', 'buddypress' ); ?></label>
    94                                 <select id="topic_group_id" name="topic_group_id">
    95 
    96                                         <option value=""><?php /* translators: no option picked in select box */ _e( '----', 'buddypress' ); ?></option>
    97 
    98                                         <?php while ( bp_groups() ) : bp_the_group(); ?>
    99 
    100                                                 <?php if ( bp_group_is_forum_enabled() && ( bp_current_user_can( 'bp_moderate' ) || 'public' == bp_get_group_status() || bp_group_is_member() ) ) : ?>
    101 
    102                                                         <option value="<?php bp_group_id(); ?>"><?php bp_group_name(); ?></option>
    103 
    104                                                 <?php endif; ?>
    105 
    106                                         <?php endwhile; ?>
    107 
    108                                 </select><!-- #topic_group_id -->
    109 
    110                                 <?php do_action( 'groups_forum_new_topic_after' ); ?>
    111 
    112                                 <div class="submit">
    113                                         <input type="submit" name="submit_topic" id="submit" value="<?php _e( 'Post Topic', 'buddypress' ); ?>" />
    114                                         <input type="button" name="submit_topic_cancel" id="submit_topic_cancel" value="<?php _e( 'Cancel', 'buddypress' ); ?>" />
    115                                 </div>
    116 
    117                                 <?php wp_nonce_field( 'bp_forums_new_topic' ); ?>
    118 
    119                         </form><!-- #forum-topic-form -->
    120 
    121                 <?php elseif ( bp_is_active( 'groups' ) ) : ?>
    122 
    123                         <div id="message" class="info">
    124 
    125                                 <p><?php printf( __( "You are not a member of any groups so you don't have any group forums you can post in. To start posting, first find a group that matches the topic subject you'd like to start. If this group does not exist, why not <a href='%s'>create a new group</a>? Once you have joined or created the group you can post your topic in that group's forum.", 'buddypress' ), site_url( bp_get_groups_root_slug() . '/create/' ) ); ?></p>
    126 
    127                         </div>
    128 
    129                 <?php endif; ?>
    130 
    131         <?php endif; ?>
    132 </div><!-- #new-topic-post -->
    133 
    134 <?php do_action( 'bp_after_new_topic_form' ); ?>
    135 
    136 <?php do_action( 'bp_after_directory_forums_content' ); ?>
    137  No newline at end of file
  • deleted file bp-themes/bp-legacy/buddypress/groups/create.php

    deleted file mode 100644
    + -  
    1 <?php do_action( 'bp_before_create_group_page' ); ?>
    2 
    3 <div id="buddypress">
    4 
    5         <?php do_action( 'bp_before_create_group_content_template' ); ?>
    6 
    7         <form action="<?php bp_group_creation_form_action(); ?>" method="post" id="create-group-form" class="standard-form" enctype="multipart/form-data">
    8 
    9                 <?php do_action( 'bp_before_create_group' ); ?>
    10 
    11                 <div class="item-list-tabs no-ajax" id="group-create-tabs" role="navigation">
    12                         <ul>
    13 
    14                                 <?php bp_group_creation_tabs(); ?>
    15 
    16                         </ul>
    17                 </div>
    18 
    19                 <?php do_action( 'template_notices' ); ?>
    20 
    21                 <div class="item-body" id="group-create-body">
    22 
    23                         <?php /* Group creation step 1: Basic group details */ ?>
    24                         <?php if ( bp_is_group_creation_step( 'group-details' ) ) : ?>
    25 
    26                                 <?php do_action( 'bp_before_group_details_creation_step' ); ?>
    27 
    28                                 <div>
    29                                         <label for="group-name"><?php _e( 'Group Name (required)', 'buddypress' ); ?></label>
    30                                         <input type="text" name="group-name" id="group-name" aria-required="true" value="<?php bp_new_group_name(); ?>" />
    31                                 </div>
    32 
    33                                 <div>
    34                                         <label for="group-desc"><?php _e( 'Group Description (required)', 'buddypress' ); ?></label>
    35                                         <textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_new_group_description(); ?></textarea>
    36                                 </div>
    37 
    38                                 <?php
    39                                 do_action( 'bp_after_group_details_creation_step' );
    40                                 do_action( 'groups_custom_group_fields_editable' ); // @Deprecated
    41 
    42                                 wp_nonce_field( 'groups_create_save_group-details' ); ?>
    43 
    44                         <?php endif; ?>
    45 
    46                         <?php /* Group creation step 2: Group settings */ ?>
    47                         <?php if ( bp_is_group_creation_step( 'group-settings' ) ) : ?>
    48 
    49                                 <?php do_action( 'bp_before_group_settings_creation_step' ); ?>
    50 
    51                                 <h4><?php _e( 'Privacy Options', 'buddypress' ); ?></h4>
    52 
    53                                 <div class="radio">
    54                                         <label><input type="radio" name="group-status" value="public"<?php if ( 'public' == bp_get_new_group_status() || !bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
    55                                                 <strong><?php _e( 'This is a public group', 'buddypress' ); ?></strong>
    56                                                 <ul>
    57                                                         <li><?php _e( 'Any site member can join this group.', 'buddypress' ); ?></li>
    58                                                         <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
    59                                                         <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li>
    60                                                 </ul>
    61                                         </label>
    62 
    63                                         <label><input type="radio" name="group-status" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
    64                                                 <strong><?php _e( 'This is a private group', 'buddypress' ); ?></strong>
    65                                                 <ul>
    66                                                         <li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ); ?></li>
    67                                                         <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
    68                                                         <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    69                                                 </ul>
    70                                         </label>
    71 
    72                                         <label><input type="radio" name="group-status" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
    73                                                 <strong><?php _e('This is a hidden group', 'buddypress' ); ?></strong>
    74                                                 <ul>
    75                                                         <li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li>
    76                                                         <li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>
    77                                                         <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    78                                                 </ul>
    79                                         </label>
    80                                 </div>
    81 
    82                                 <h4><?php _e( 'Group Invitations', 'buddypress' ); ?></h4>
    83 
    84                                 <p><?php _e( 'Which members of this group are allowed to invite others?', 'buddypress' ); ?></p>
    85 
    86                                 <div class="radio">
    87                                         <label>
    88                                                 <input type="radio" name="group-invite-status" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> />
    89                                                 <strong><?php _e( 'All group members', 'buddypress' ); ?></strong>
    90                                         </label>
    91 
    92                                         <label>
    93                                                 <input type="radio" name="group-invite-status" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> />
    94                                                 <strong><?php _e( 'Group admins and mods only', 'buddypress' ); ?></strong>
    95                                         </label>
    96 
    97                                         <label>
    98                                                 <input type="radio" name="group-invite-status" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> />
    99                                                 <strong><?php _e( 'Group admins only', 'buddypress' ); ?></strong>
    100                                         </label>
    101                                 </div>
    102 
    103                                 <?php if ( bp_is_active( 'forums' ) ) : ?>
    104 
    105                                         <h4><?php _e( 'Group Forums', 'buddypress' ); ?></h4>
    106 
    107                                         <?php if ( bp_forums_is_installed_correctly() ) : ?>
    108 
    109                                                 <p><?php _e( 'Should this group have a forum?', 'buddypress' ); ?></p>
    110 
    111                                                 <div class="checkbox">
    112                                                         <label><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php checked( bp_get_new_group_enable_forum(), true, true ); ?> /> <?php _e( 'Enable discussion forum', 'buddypress' ); ?></label>
    113                                                 </div>
    114                                         <?php elseif ( is_super_admin() ) : ?>
    115 
    116                                                 <p><?php printf( __( '<strong>Attention Site Admin:</strong> Group forums require the <a href="%s">correct setup and configuration</a> of a bbPress installation.', 'buddypress' ), bp_core_do_network_admin() ? network_admin_url( 'settings.php?page=bb-forums-setup' ) :  admin_url( 'admin.php?page=bb-forums-setup' ) ); ?></p>
    117 
    118                                         <?php endif; ?>
    119 
    120                                 <?php endif; ?>
    121 
    122                                 <?php do_action( 'bp_after_group_settings_creation_step' ); ?>
    123 
    124                                 <?php wp_nonce_field( 'groups_create_save_group-settings' ); ?>
    125 
    126                         <?php endif; ?>
    127 
    128                         <?php /* Group creation step 3: Avatar Uploads */ ?>
    129                         <?php if ( bp_is_group_creation_step( 'group-avatar' ) ) : ?>
    130 
    131                                 <?php do_action( 'bp_before_group_avatar_creation_step' ); ?>
    132 
    133                                 <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?>
    134 
    135                                         <div class="left-menu">
    136 
    137                                                 <?php bp_new_group_avatar(); ?>
    138 
    139                                         </div><!-- .left-menu -->
    140 
    141                                         <div class="main-column">
    142                                                 <p><?php _e( "Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress' ); ?></p>
    143 
    144                                                 <p>
    145                                                         <input type="file" name="file" id="file" />
    146                                                         <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ); ?>" />
    147                                                         <input type="hidden" name="action" id="action" value="bp_avatar_upload" />
    148                                                 </p>
    149 
    150                                                 <p><?php _e( 'To skip the avatar upload process, hit the "Next Step" button.', 'buddypress' ); ?></p>
    151                                         </div><!-- .main-column -->
    152 
    153                                 <?php endif; ?>
    154 
    155                                 <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>
    156 
    157                                         <h4><?php _e( 'Crop Group Avatar', 'buddypress' ); ?></h4>
    158 
    159                                         <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ); ?>" />
    160 
    161                                         <div id="avatar-crop-pane">
    162                                                 <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ); ?>" />
    163                                         </div>
    164 
    165                                         <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ); ?>" />
    166 
    167                                         <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src(); ?>" />
    168                                         <input type="hidden" name="upload" id="upload" />
    169                                         <input type="hidden" id="x" name="x" />
    170                                         <input type="hidden" id="y" name="y" />
    171                                         <input type="hidden" id="w" name="w" />
    172                                         <input type="hidden" id="h" name="h" />
    173 
    174                                 <?php endif; ?>
    175 
    176                                 <?php do_action( 'bp_after_group_avatar_creation_step' ); ?>
    177 
    178                                 <?php wp_nonce_field( 'groups_create_save_group-avatar' ); ?>
    179 
    180                         <?php endif; ?>
    181 
    182                         <?php /* Group creation step 4: Invite friends to group */ ?>
    183                         <?php if ( bp_is_group_creation_step( 'group-invites' ) ) : ?>
    184 
    185                                 <?php do_action( 'bp_before_group_invites_creation_step' ); ?>
    186 
    187                                 <?php if ( bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    188 
    189                                         <div class="left-menu">
    190 
    191                                                 <div id="invite-list">
    192                                                         <ul>
    193                                                                 <?php bp_new_group_invite_friend_list(); ?>
    194                                                         </ul>
    195 
    196                                                         <?php wp_nonce_field( 'groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user' ); ?>
    197                                                 </div>
    198 
    199                                         </div><!-- .left-menu -->
    200 
    201                                         <div class="main-column">
    202 
    203                                                 <div id="message" class="info">
    204                                                         <p><?php _e('Select people to invite from your friends list.', 'buddypress' ); ?></p>
    205                                                 </div>
    206 
    207                                                 <?php /* The ID 'friend-list' is important for AJAX support. */ ?>
    208                                                 <ul id="friend-list" class="item-list" role="main">
    209 
    210                                                 <?php if ( bp_group_has_invites() ) : ?>
    211 
    212                                                         <?php while ( bp_group_invites() ) : bp_group_the_invite(); ?>
    213 
    214                                                                 <li id="<?php bp_group_invite_item_id(); ?>">
    215 
    216                                                                         <?php bp_group_invite_user_avatar(); ?>
    217 
    218                                                                         <h4><?php bp_group_invite_user_link(); ?></h4>
    219                                                                         <span class="activity"><?php bp_group_invite_user_last_active(); ?></span>
    220 
    221                                                                         <div class="action">
    222                                                                                 <a class="remove" href="<?php bp_group_invite_user_remove_invite_url(); ?>" id="<?php bp_group_invite_item_id(); ?>"><?php _e( 'Remove Invite', 'buddypress' ); ?></a>
    223                                                                         </div>
    224                                                                 </li>
    225 
    226                                                         <?php endwhile; ?>
    227 
    228                                                         <?php wp_nonce_field( 'groups_send_invites', '_wpnonce_send_invites' ); ?>
    229 
    230                                                 <?php endif; ?>
    231 
    232                                                 </ul>
    233 
    234                                         </div><!-- .main-column -->
    235 
    236                                 <?php else : ?>
    237 
    238                                         <div id="message" class="info">
    239                                                 <p><?php _e( 'Once you have built up friend connections you will be able to invite others to your group. You can send invites any time in the future by selecting the "Send Invites" option when viewing your new group.', 'buddypress' ); ?></p>
    240                                         </div>
    241 
    242                                 <?php endif; ?>
    243 
    244                                 <?php wp_nonce_field( 'groups_create_save_group-invites' ); ?>
    245 
    246                                 <?php do_action( 'bp_after_group_invites_creation_step' ); ?>
    247 
    248                         <?php endif; ?>
    249 
    250                         <?php do_action( 'groups_custom_create_steps' ); // Allow plugins to add custom group creation steps ?>
    251 
    252                         <?php do_action( 'bp_before_group_creation_step_buttons' ); ?>
    253 
    254                         <?php if ( 'crop-image' != bp_get_avatar_admin_step() ) : ?>
    255 
    256                                 <div class="submit" id="previous-next">
    257 
    258                                         <?php /* Previous Button */ ?>
    259                                         <?php if ( !bp_is_first_group_creation_step() ) : ?>
    260 
    261                                                 <input type="button" value="<?php _e( 'Back to Previous Step', 'buddypress' ); ?>" id="group-creation-previous" name="previous" onclick="location.href='<?php bp_group_creation_previous_link(); ?>'" />
    262 
    263                                         <?php endif; ?>
    264 
    265                                         <?php /* Next Button */ ?>
    266                                         <?php if ( !bp_is_last_group_creation_step() && !bp_is_first_group_creation_step() ) : ?>
    267 
    268                                                 <input type="submit" value="<?php _e( 'Next Step', 'buddypress' ); ?>" id="group-creation-next" name="save" />
    269 
    270                                         <?php endif;?>
    271 
    272                                         <?php /* Create Button */ ?>
    273                                         <?php if ( bp_is_first_group_creation_step() ) : ?>
    274 
    275                                                 <input type="submit" value="<?php _e( 'Create Group and Continue', 'buddypress' ); ?>" id="group-creation-create" name="save" />
    276 
    277                                         <?php endif; ?>
    278 
    279                                         <?php /* Finish Button */ ?>
    280                                         <?php if ( bp_is_last_group_creation_step() ) : ?>
    281 
    282                                                 <input type="submit" value="<?php _e( 'Finish', 'buddypress' ); ?>" id="group-creation-finish" name="save" />
    283 
    284                                         <?php endif; ?>
    285                                 </div>
    286 
    287                         <?php endif;?>
    288 
    289                         <?php do_action( 'bp_after_group_creation_step_buttons' ); ?>
    290 
    291                         <?php /* Don't leave out this hidden field */ ?>
    292                         <input type="hidden" name="group_id" id="group_id" value="<?php bp_new_group_id(); ?>" />
    293 
    294                         <?php do_action( 'bp_directory_groups_content' ); ?>
    295 
    296                 </div><!-- .item-body -->
    297 
    298                 <?php do_action( 'bp_after_create_group' ); ?>
    299 
    300         </form>
    301 
    302         <?php do_action( 'bp_after_create_group_content_template' ); ?>
    303 
    304 </div>
    305 
    306 <?php do_action( 'bp_after_create_group_page' ); ?>
    307  No newline at end of file
  • deleted file bp-themes/bp-legacy/buddypress/groups/groups-loop.php

    deleted file mode 100644
    + -  
    1 <?php
    2 
    3 /**
    4  * BuddyPress - Groups Loop
    5  *
    6  * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter()
    7  *
    8  * @package BuddyPress
    9  * @subpackage bp-legacy
    10  */
    11 
    12 ?>
    13 
    14 <?php do_action( 'bp_before_groups_loop' ); ?>
    15 
    16 <?php if ( bp_has_groups( bp_ajax_querystring( 'groups' ) ) ) : ?>
    17 
    18         <div id="pag-top" class="pagination">
    19 
    20                 <div class="pag-count" id="group-dir-count-top">
    21 
    22                         <?php bp_groups_pagination_count(); ?>
    23 
    24                 </div>
    25 
    26                 <div class="pagination-links" id="group-dir-pag-top">
    27 
    28                         <?php bp_groups_pagination_links(); ?>
    29 
    30                 </div>
    31 
    32         </div>
    33 
    34         <?php do_action( 'bp_before_directory_groups_list' ); ?>
    35 
    36         <ul id="groups-list" class="item-list" role="main">
    37 
    38         <?php while ( bp_groups() ) : bp_the_group(); ?>
    39 
    40                 <li>
    41                         <div class="item-avatar">
    42                                 <a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ); ?></a>
    43                         </div>
    44 
    45                         <div class="item">
    46                                 <div class="item-title"><a href="<?php bp_group_permalink(); ?>"><?php bp_group_name(); ?></a></div>
    47                                 <div class="item-meta"><span class="activity"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span></div>
    48 
    49                                 <div class="item-desc"><?php bp_group_description_excerpt(); ?></div>
    50 
    51                                 <?php do_action( 'bp_directory_groups_item' ); ?>
    52 
    53                         </div>
    54 
    55                         <div class="action">
    56 
    57                                 <?php do_action( 'bp_directory_groups_actions' ); ?>
    58 
    59                                 <div class="meta">
    60 
    61                                         <?php bp_group_type(); ?> / <?php bp_group_member_count(); ?>
    62 
    63                                 </div>
    64 
    65                         </div>
    66 
    67                         <div class="clear"></div>
    68                 </li>
    69 
    70         <?php endwhile; ?>
    71 
    72         </ul>
    73 
    74         <?php do_action( 'bp_after_directory_groups_list' ); ?>
    75 
    76         <div id="pag-bottom" class="pagination">
    77 
    78                 <div class="pag-count" id="group-dir-count-bottom">
    79 
    80                         <?php bp_groups_pagination_count(); ?>
    81 
    82                 </div>
    83 
    84                 <div class="pagination-links" id="group-dir-pag-bottom">
    85 
    86                         <?php bp_groups_pagination_links(); ?>
    87 
    88                 </div>
    89 
    90         </div>
    91 
    92 <?php else: ?>
    93 
    94         <div id="message" class="info">
    95                 <p><?php _e( 'There were no groups found.', 'buddypress' ); ?></p>
    96         </div>
    97 
    98 <?php endif; ?>
    99 
    100 <?php do_action( 'bp_after_groups_loop' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/groups/index.php

    deleted file mode 100644
    + -  
    1 <?php do_action( 'bp_before_directory_groups_page' ); ?>
    2 
    3 <div id="buddypress">
    4 
    5         <?php do_action( 'bp_before_directory_groups' ); ?>
    6 
    7         <form action="" method="post" id="groups-directory-form" class="dir-form">
    8 
    9                 <?php do_action( 'bp_before_directory_groups_content' ); ?>
    10 
    11                 <div id="group-dir-search" class="dir-search" role="search">
    12 
    13                         <?php bp_directory_groups_search_form(); ?>
    14 
    15                 </div><!-- #group-dir-search -->
    16 
    17                 <?php do_action( 'template_notices' ); ?>
    18 
    19                 <div class="item-list-tabs" role="navigation">
    20                         <ul>
    21                                 <li class="selected" id="groups-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() ); ?>"><?php printf( __( 'All Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count() ); ?></a></li>
    22 
    23                                 <?php if ( is_user_logged_in() && bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
    24 
    25                                         <li id="groups-personal"><a href="<?php echo trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() . '/my-groups' ); ?>"><?php printf( __( 'My Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
    26 
    27                                 <?php endif; ?>
    28 
    29                                 <?php do_action( 'bp_groups_directory_group_filter' ); ?>
    30 
    31                         </ul>
    32                 </div><!-- .item-list-tabs -->
    33 
    34                 <div class="item-list-tabs" id="subnav" role="navigation">
    35                         <ul>
    36 
    37                                 <?php do_action( 'bp_groups_directory_group_types' ); ?>
    38 
    39                                 <li id="groups-order-select" class="last filter">
    40 
    41                                         <label for="groups-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
    42                                         <select id="groups-order-by">
    43                                                 <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
    44                                                 <option value="popular"><?php _e( 'Most Members', 'buddypress' ); ?></option>
    45                                                 <option value="newest"><?php _e( 'Newly Created', 'buddypress' ); ?></option>
    46                                                 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    47 
    48                                                 <?php do_action( 'bp_groups_directory_order_options' ); ?>
    49 
    50                                         </select>
    51                                 </li>
    52                         </ul>
    53                 </div>
    54 
    55                 <div id="groups-dir-list" class="groups dir-list">
    56 
    57                         <?php bp_get_template_part( 'groups/groups-loop' ); ?>
    58 
    59                 </div><!-- #groups-dir-list -->
    60 
    61                 <?php do_action( 'bp_directory_groups_content' ); ?>
    62 
    63                 <?php wp_nonce_field( 'directory_groups', '_wpnonce-groups-filter' ); ?>
    64 
    65                 <?php do_action( 'bp_after_directory_groups_content' ); ?>
    66 
    67         </form><!-- #groups-directory-form -->
    68 
    69         <?php do_action( 'bp_after_directory_groups' ); ?>
    70 
    71 </div><!-- #buddypress -->
    72 
    73 <?php do_action( 'bp_after_directory_groups_page' ); ?>
    74  No newline at end of file
  • deleted file bp-themes/bp-legacy/buddypress/groups/single/activity.php

    deleted file mode 100644
    + -  
    1 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    2         <ul>
    3                 <li class="feed"><a href="<?php bp_group_activity_feed_link(); ?>" title="<?php _e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ); ?></a></li>
    4 
    5                 <?php do_action( 'bp_group_activity_syndication_options' ); ?>
    6 
    7                 <li id="activity-filter-select" class="last">
    8                         <label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label>
    9                         <select id="activity-filter-by">
    10                                 <option value="-1"><?php _e( 'Everything', 'buddypress' ); ?></option>
    11                                 <option value="activity_update"><?php _e( 'Updates', 'buddypress' ); ?></option>
    12 
    13                                 <?php if ( bp_is_active( 'forums' ) ) : ?>
    14                                         <option value="new_forum_topic"><?php _e( 'Forum Topics', 'buddypress' ); ?></option>
    15                                         <option value="new_forum_post"><?php _e( 'Forum Replies', 'buddypress' ); ?></option>
    16                                 <?php endif; ?>
    17 
    18                                 <option value="joined_group"><?php _e( 'Group Memberships', 'buddypress' ); ?></option>
    19 
    20                                 <?php do_action( 'bp_group_activity_filter_options' ); ?>
    21                         </select>
    22                 </li>
    23         </ul>
    24 </div><!-- .item-list-tabs -->
    25 
    26 <?php do_action( 'bp_before_group_activity_post_form' ); ?>
    27 
    28 <?php if ( is_user_logged_in() && bp_group_is_member() ) : ?>
    29 
    30         <?php bp_get_template_part( 'activity/post-form' ); ?>
    31 
    32 <?php endif; ?>
    33 
    34 <?php do_action( 'bp_after_group_activity_post_form' ); ?>
    35 <?php do_action( 'bp_before_group_activity_content' ); ?>
    36 
    37 <div class="activity single-group" role="main">
    38 
    39         <?php bp_get_template_part( 'activity/activity-loop' ); ?>
    40 
    41 </div><!-- .activity.single-group -->
    42 
    43 <?php do_action( 'bp_after_group_activity_content' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/groups/single/admin.php

    deleted file mode 100644
    + -  
    1 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    2         <ul>
    3                 <?php bp_group_admin_tabs(); ?>
    4         </ul>
    5 </div><!-- .item-list-tabs -->
    6 
    7 <form action="<?php bp_group_admin_form_action(); ?>" name="group-settings-form" id="group-settings-form" class="standard-form" method="post" enctype="multipart/form-data" role="main">
    8 
    9 <?php do_action( 'bp_before_group_admin_content' ); ?>
    10 
    11 <?php /* Edit Group Details */ ?>
    12 <?php if ( bp_is_group_admin_screen( 'edit-details' ) ) : ?>
    13 
    14         <?php do_action( 'bp_before_group_details_admin' ); ?>
    15 
    16         <label for="group-name"><?php _e( 'Group Name (required)', 'buddypress' ); ?></label>
    17         <input type="text" name="group-name" id="group-name" value="<?php bp_group_name(); ?>" aria-required="true" />
    18 
    19         <label for="group-desc"><?php _e( 'Group Description (required)', 'buddypress' ); ?></label>
    20         <textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_group_description_editable(); ?></textarea>
    21 
    22         <?php do_action( 'groups_custom_group_fields_editable' ); ?>
    23 
    24         <p>
    25                 <label for="group-notifiy-members"><?php _e( 'Notify group members of changes via email', 'buddypress' ); ?></label>
    26                 <input type="radio" name="group-notify-members" value="1" /> <?php _e( 'Yes', 'buddypress' ); ?>&nbsp;
    27                 <input type="radio" name="group-notify-members" value="0" checked="checked" /> <?php _e( 'No', 'buddypress' ); ?>&nbsp;
    28         </p>
    29 
    30         <?php do_action( 'bp_after_group_details_admin' ); ?>
    31 
    32         <p><input type="submit" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" id="save" name="save" /></p>
    33         <?php wp_nonce_field( 'groups_edit_group_details' ); ?>
    34 
    35 <?php endif; ?>
    36 
    37 <?php /* Manage Group Settings */ ?>
    38 <?php if ( bp_is_group_admin_screen( 'group-settings' ) ) : ?>
    39 
    40         <?php do_action( 'bp_before_group_settings_admin' ); ?>
    41 
    42         <?php if ( bp_is_active( 'forums' ) ) : ?>
    43 
    44                 <?php if ( bp_forums_is_installed_correctly() ) : ?>
    45 
    46                         <div class="checkbox">
    47                                 <label><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php bp_group_show_forum_setting(); ?> /> <?php _e( 'Enable discussion forum', 'buddypress' ); ?></label>
    48                         </div>
    49 
    50                         <hr />
    51 
    52                 <?php endif; ?>
    53 
    54         <?php endif; ?>
    55 
    56         <h4><?php _e( 'Privacy Options', 'buddypress' ); ?></h4>
    57 
    58         <div class="radio">
    59                 <label>
    60                         <input type="radio" name="group-status" value="public"<?php bp_group_show_status_setting( 'public' ); ?> />
    61                         <strong><?php _e( 'This is a public group', 'buddypress' ); ?></strong>
    62                         <ul>
    63                                 <li><?php _e( 'Any site member can join this group.', 'buddypress' ); ?></li>
    64                                 <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
    65                                 <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li>
    66                         </ul>
    67                 </label>
    68 
    69                 <label>
    70                         <input type="radio" name="group-status" value="private"<?php bp_group_show_status_setting( 'private' ); ?> />
    71                         <strong><?php _e( 'This is a private group', 'buddypress' ); ?></strong>
    72                         <ul>
    73                                 <li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ); ?></li>
    74                                 <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
    75                                 <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    76                         </ul>
    77                 </label>
    78 
    79                 <label>
    80                         <input type="radio" name="group-status" value="hidden"<?php bp_group_show_status_setting( 'hidden' ); ?> />
    81                         <strong><?php _e( 'This is a hidden group', 'buddypress' ); ?></strong>
    82                         <ul>
    83                                 <li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li>
    84                                 <li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>
    85                                 <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    86                         </ul>
    87                 </label>
    88         </div>
    89 
    90         <hr />
    91          
    92         <h4><?php _e( 'Group Invitations', 'buddypress' ); ?></h4>
    93 
    94         <p><?php _e( 'Which members of this group are allowed to invite others?', 'buddypress' ); ?></p>
    95 
    96         <div class="radio">
    97                 <label>
    98                         <input type="radio" name="group-invite-status" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> />
    99                         <strong><?php _e( 'All group members', 'buddypress' ); ?></strong>
    100                 </label>
    101 
    102                 <label>
    103                         <input type="radio" name="group-invite-status" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> />
    104                         <strong><?php _e( 'Group admins and mods only', 'buddypress' ); ?></strong>
    105                 </label>
    106                
    107                 <label>
    108                         <input type="radio" name="group-invite-status" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> />
    109                         <strong><?php _e( 'Group admins only', 'buddypress' ); ?></strong>
    110                 </label>
    111         </div>
    112 
    113         <hr />
    114 
    115         <?php do_action( 'bp_after_group_settings_admin' ); ?>
    116 
    117         <p><input type="submit" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" id="save" name="save" /></p>
    118         <?php wp_nonce_field( 'groups_edit_group_settings' ); ?>
    119 
    120 <?php endif; ?>
    121 
    122 <?php /* Group Avatar Settings */ ?>
    123 <?php if ( bp_is_group_admin_screen( 'group-avatar' ) ) : ?>
    124 
    125         <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?>
    126 
    127                         <p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress' ); ?></p>
    128 
    129                         <p>
    130                                 <input type="file" name="file" id="file" />
    131                                 <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ); ?>" />
    132                                 <input type="hidden" name="action" id="action" value="bp_avatar_upload" />
    133                         </p>
    134 
    135                         <?php if ( bp_get_group_has_avatar() ) : ?>
    136 
    137                                 <p><?php _e( "If you'd like to remove the existing avatar but not upload a new one, please use the delete avatar button.", 'buddypress' ); ?></p>
    138 
    139                                 <?php bp_button( array( 'id' => 'delete_group_avatar', 'component' => 'groups', 'wrapper_id' => 'delete-group-avatar-button', 'link_class' => 'edit', 'link_href' => bp_get_group_avatar_delete_link(), 'link_title' => __( 'Delete Avatar', 'buddypress' ), 'link_text' => __( 'Delete Avatar', 'buddypress' ) ) ); ?>
    140 
    141                         <?php endif; ?>
    142 
    143                         <?php wp_nonce_field( 'bp_avatar_upload' ); ?>
    144 
    145         <?php endif; ?>
    146 
    147         <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>
    148 
    149                 <h4><?php _e( 'Crop Avatar', 'buddypress' ); ?></h4>
    150 
    151                 <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ); ?>" />
    152 
    153                 <div id="avatar-crop-pane">
    154                         <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ); ?>" />
    155                 </div>
    156 
    157                 <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ); ?>" />
    158 
    159                 <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src(); ?>" />
    160                 <input type="hidden" id="x" name="x" />
    161                 <input type="hidden" id="y" name="y" />
    162                 <input type="hidden" id="w" name="w" />
    163                 <input type="hidden" id="h" name="h" />
    164 
    165                 <?php wp_nonce_field( 'bp_avatar_cropstore' ); ?>
    166 
    167         <?php endif; ?>
    168 
    169 <?php endif; ?>
    170 
    171 <?php /* Manage Group Members */ ?>
    172 <?php if ( bp_is_group_admin_screen( 'manage-members' ) ) : ?>
    173 
    174         <?php do_action( 'bp_before_group_manage_members_admin' ); ?>
    175        
    176         <div class="bp-widget">
    177                 <h4><?php _e( 'Administrators', 'buddypress' ); ?></h4>
    178 
    179                 <?php if ( bp_has_members( '&include='. bp_group_admin_ids() ) ) : ?>
    180                
    181                 <ul id="admins-list" class="item-list single-line">
    182                        
    183                         <?php while ( bp_members() ) : bp_the_member(); ?>
    184                         <li>
    185                                 <?php echo bp_core_fetch_avatar( array( 'item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_member_name() ) ) ); ?>
    186                                 <h5>
    187                                         <a href="<?php bp_member_permalink(); ?>"> <?php bp_member_name(); ?></a>
    188                                         <?php if ( count( bp_group_admin_ids( false, 'array' ) ) > 1 ) : ?>
    189                                         <span class="small">
    190                                                 <a class="button confirm admin-demote-to-member" href="<?php bp_group_member_demote_link( bp_get_member_user_id() ); ?>"><?php _e( 'Demote to Member', 'buddypress' ); ?></a>
    191                                         </span>                 
    192                                         <?php endif; ?>
    193                                 </h5>           
    194                         </li>
    195                         <?php endwhile; ?>
    196                
    197                 </ul>
    198                
    199                 <?php endif; ?>
    200 
    201         </div>
    202        
    203         <?php if ( bp_group_has_moderators() ) : ?>
    204                 <div class="bp-widget">
    205                         <h4><?php _e( 'Moderators', 'buddypress' ); ?></h4>             
    206                        
    207                         <?php if ( bp_has_members( '&include=' . bp_group_mod_ids() ) ) : ?>
    208                                 <ul id="mods-list" class="item-list single-line">
    209                                
    210                                         <?php while ( bp_members() ) : bp_the_member(); ?>                                     
    211                                         <li>
    212                                                 <?php echo bp_core_fetch_avatar( array( 'item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_member_name() ) ) ); ?>
    213                                                 <h5>
    214                                                         <a href="<?php bp_member_permalink(); ?>"> <?php bp_member_name(); ?></a>
    215                                                         <span class="small">
    216                                                                 <a href="<?php bp_group_member_promote_admin_link( array( 'user_id' => bp_get_member_user_id() ) ); ?>" class="button confirm mod-promote-to-admin" title="<?php _e( 'Promote to Admin', 'buddypress' ); ?>"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a>
    217                                                                 <a class="button confirm mod-demote-to-member" href="<?php bp_group_member_demote_link( bp_get_member_user_id() ); ?>"><?php _e( 'Demote to Member', 'buddypress' ); ?></a>
    218                                                         </span>         
    219                                                 </h5>           
    220                                         </li>   
    221                                         <?php endwhile; ?>                     
    222                                
    223                                 </ul>
    224                        
    225                         <?php endif; ?>
    226                 </div>
    227         <?php endif ?>
    228 
    229 
    230         <div class="bp-widget">
    231                 <h4><?php _e("Members", "buddypress"); ?></h4>
    232 
    233                 <?php if ( bp_group_has_members( 'per_page=15&exclude_banned=false' ) ) : ?>
    234 
    235                         <?php if ( bp_group_member_needs_pagination() ) : ?>
    236 
    237                                 <div class="pagination no-ajax">
    238 
    239                                         <div id="member-count" class="pag-count">
    240                                                 <?php bp_group_member_pagination_count(); ?>
    241                                         </div>
    242 
    243                                         <div id="member-admin-pagination" class="pagination-links">
    244                                                 <?php bp_group_member_admin_pagination(); ?>
    245                                         </div>
    246 
    247                                 </div>
    248 
    249                         <?php endif; ?>
    250 
    251                         <ul id="members-list" class="item-list single-line">
    252                                 <?php while ( bp_group_members() ) : bp_group_the_member(); ?>
    253 
    254                                         <li class="<?php bp_group_member_css_class(); ?>">
    255                                                 <?php bp_group_member_avatar_mini(); ?>
    256 
    257                                                 <h5>
    258                                                         <?php bp_group_member_link(); ?>
    259 
    260                                                         <?php if ( bp_get_group_member_is_banned() ) _e( '(banned)', 'buddypress' ); ?>
    261 
    262                                                         <span class="small">
    263 
    264                                                         <?php if ( bp_get_group_member_is_banned() ) : ?>
    265 
    266                                                                 <a href="<?php bp_group_member_unban_link(); ?>" class="button confirm member-unban" title="<?php _e( 'Unban this member', 'buddypress' ); ?>"><?php _e( 'Remove Ban', 'buddypress' ); ?></a>
    267 
    268                                                         <?php else : ?>
    269 
    270                                                                 <a href="<?php bp_group_member_ban_link(); ?>" class="button confirm member-ban" title="<?php _e( 'Kick and ban this member', 'buddypress' ); ?>"><?php _e( 'Kick &amp; Ban', 'buddypress' ); ?></a>
    271                                                                 <a href="<?php bp_group_member_promote_mod_link(); ?>" class="button confirm member-promote-to-mod" title="<?php _e( 'Promote to Mod', 'buddypress' ); ?>"><?php _e( 'Promote to Mod', 'buddypress' ); ?></a>
    272                                                                 <a href="<?php bp_group_member_promote_admin_link(); ?>" class="button confirm member-promote-to-admin" title="<?php _e( 'Promote to Admin', 'buddypress' ); ?>"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a>
    273 
    274                                                         <?php endif; ?>
    275 
    276                                                                 <a href="<?php bp_group_member_remove_link(); ?>" class="button confirm" title="<?php _e( 'Remove this member', 'buddypress' ); ?>"><?php _e( 'Remove from group', 'buddypress' ); ?></a>
    277 
    278                                                                 <?php do_action( 'bp_group_manage_members_admin_item' ); ?>
    279 
    280                                                         </span>
    281                                                 </h5>
    282                                         </li>
    283 
    284                                 <?php endwhile; ?>
    285                         </ul>
    286 
    287                 <?php else: ?>
    288 
    289                         <div id="message" class="info">
    290                                 <p><?php _e( 'This group has no members.', 'buddypress' ); ?></p>
    291                         </div>
    292 
    293                 <?php endif; ?>
    294 
    295         </div>
    296 
    297         <?php do_action( 'bp_after_group_manage_members_admin' ); ?>
    298 
    299 <?php endif; ?>
    300 
    301 <?php /* Manage Membership Requests */ ?>
    302 <?php if ( bp_is_group_admin_screen( 'membership-requests' ) ) : ?>
    303 
    304         <?php do_action( 'bp_before_group_membership_requests_admin' ); ?>
    305 
    306         <?php if ( bp_group_has_membership_requests() ) : ?>
    307 
    308                 <ul id="request-list" class="item-list">
    309                         <?php while ( bp_group_membership_requests() ) : bp_group_the_membership_request(); ?>
    310 
    311                                 <li>
    312                                         <?php bp_group_request_user_avatar_thumb(); ?>
    313                                         <h4><?php bp_group_request_user_link(); ?> <span class="comments"><?php bp_group_request_comment(); ?></span></h4>
    314                                         <span class="activity"><?php bp_group_request_time_since_requested(); ?></span>
    315 
    316                                         <?php do_action( 'bp_group_membership_requests_admin_item' ); ?>
    317 
    318                                         <div class="action">
    319 
    320                                                 <?php bp_button( array( 'id' => 'group_membership_accept', 'component' => 'groups', 'wrapper_class' => 'accept', 'link_href' => bp_get_group_request_accept_link(), 'link_title' => __( 'Accept', 'buddypress' ), 'link_text' => __( 'Accept', 'buddypress' ) ) ); ?>
    321 
    322                                                 <?php bp_button( array( 'id' => 'group_membership_reject', 'component' => 'groups', 'wrapper_class' => 'reject', 'link_href' => bp_get_group_request_reject_link(), 'link_title' => __( 'Reject', 'buddypress' ), 'link_text' => __( 'Reject', 'buddypress' ) ) ); ?>
    323 
    324                                                 <?php do_action( 'bp_group_membership_requests_admin_item_action' ); ?>
    325 
    326                                         </div>
    327                                 </li>
    328 
    329                         <?php endwhile; ?>
    330                 </ul>
    331 
    332         <?php else: ?>
    333 
    334                 <div id="message" class="info">
    335                         <p><?php _e( 'There are no pending membership requests.', 'buddypress' ); ?></p>
    336                 </div>
    337 
    338         <?php endif; ?>
    339 
    340         <?php do_action( 'bp_after_group_membership_requests_admin' ); ?>
    341 
    342 <?php endif; ?>
    343 
    344 <?php do_action( 'groups_custom_edit_steps' ) // Allow plugins to add custom group edit screens ?>
    345 
    346 <?php /* Delete Group Option */ ?>
    347 <?php if ( bp_is_group_admin_screen( 'delete-group' ) ) : ?>
    348 
    349         <?php do_action( 'bp_before_group_delete_admin' ); ?>
    350 
    351         <div id="message" class="info">
    352                 <p><?php _e( 'WARNING: Deleting this group will completely remove ALL content associated with it. There is no way back, please be careful with this option.', 'buddypress' ); ?></p>
    353         </div>
    354 
    355         <label><input type="checkbox" name="delete-group-understand" id="delete-group-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-group-button').disabled = ''; } else { document.getElementById('delete-group-button').disabled = 'disabled'; }" /> <?php _e( 'I understand the consequences of deleting this group.', 'buddypress' ); ?></label>
    356 
    357         <?php do_action( 'bp_after_group_delete_admin' ); ?>
    358 
    359         <div class="submit">
    360                 <input type="submit" disabled="disabled" value="<?php _e( 'Delete Group', 'buddypress' ); ?>" id="delete-group-button" name="delete-group-button" />
    361         </div>
    362 
    363         <?php wp_nonce_field( 'groups_delete_group' ); ?>
    364 
    365 <?php endif; ?>
    366 
    367 <?php /* This is important, don't forget it */ ?>
    368         <input type="hidden" name="group-id" id="group-id" value="<?php bp_group_id(); ?>" />
    369 
    370 <?php do_action( 'bp_after_group_admin_content' ); ?>
    371 
    372 </form><!-- #group-settings-form -->
    373 
  • deleted file bp-themes/bp-legacy/buddypress/groups/single/forum.php

    deleted file mode 100644
    + -  
    1 <?php
    2 
    3 do_action( 'bp_before_group_forum_content' );
    4 
    5 if ( bp_is_group_forum_topic_edit() ) :
    6         bp_get_template_part( 'groups/single/forum/edit' );
    7 
    8 elseif ( bp_is_group_forum_topic() ) :
    9         bp_get_template_part( 'groups/single/forum/topic' );
    10 
    11 else : ?>
    12 
    13         <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    14                 <ul>
    15 
    16                         <?php if ( is_user_logged_in() ) : ?>
    17 
    18                                 <li>
    19                                         <a href="#post-new" class="show-hide-new"><?php _e( 'New Topic', 'buddypress' ); ?></a>
    20                                 </li>
    21 
    22                         <?php endif; ?>
    23 
    24                         <?php if ( bp_forums_has_directory() ) : ?>
    25 
    26                                 <li>
    27                                         <a href="<?php bp_forums_directory_permalink(); ?>"><?php _e( 'Forum Directory', 'buddypress' ); ?></a>
    28                                 </li>
    29 
    30                         <?php endif; ?>
    31 
    32                         <?php do_action( 'bp_forums_directory_group_sub_types' ); ?>
    33 
    34                         <li id="forums-order-select" class="last filter">
    35 
    36                                 <label for="forums-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
    37                                 <select id="forums-order-by">
    38                                         <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
    39                                         <option value="popular"><?php _e( 'Most Posts', 'buddypress' ); ?></option>
    40                                         <option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ); ?></option>
    41 
    42                                         <?php do_action( 'bp_forums_directory_order_options' ); ?>
    43 
    44                                 </select>
    45                         </li>
    46                 </ul>
    47         </div>
    48 
    49         <div class="forums single-forum" role="main">
    50 
    51                 <?php bp_get_template_part( 'forums/forums-loop' ) ?>
    52 
    53         </div><!-- .forums.single-forum -->
    54 
    55 <?php endif; ?>
    56 
    57 <?php do_action( 'bp_after_group_forum_content' ); ?>
    58 
    59 <?php if ( !bp_is_group_forum_topic_edit() && !bp_is_group_forum_topic() ) : ?>
    60 
    61         <?php if ( !bp_group_is_user_banned() && ( ( is_user_logged_in() && 'public' == bp_get_group_status() ) || bp_group_is_member() ) ) : ?>
    62 
    63                 <form action="" method="post" id="forum-topic-form" class="standard-form">
    64                         <div id="new-topic-post">
    65 
    66                                 <?php do_action( 'bp_before_group_forum_post_new' ); ?>
    67 
    68                                 <?php if ( bp_groups_auto_join() && !bp_group_is_member() ) : ?>
    69                                         <p><?php _e( 'You will auto join this group when you start a new topic.', 'buddypress' ); ?></p>
    70                                 <?php endif; ?>
    71 
    72                                 <p id="post-new"></p>
    73                                 <h4><?php _e( 'Post a New Topic:', 'buddypress' ); ?></h4>
    74 
    75                                 <label><?php _e( 'Title:', 'buddypress' ); ?></label>
    76                                 <input type="text" name="topic_title" id="topic_title" value="" maxlength="100" />
    77 
    78                                 <label><?php _e( 'Content:', 'buddypress' ); ?></label>
    79                                 <textarea name="topic_text" id="topic_text"></textarea>
    80 
    81                                 <label><?php _e( 'Tags (comma separated):', 'buddypress' ); ?></label>
    82                                 <input type="text" name="topic_tags" id="topic_tags" value="" />
    83 
    84                                 <?php do_action( 'bp_after_group_forum_post_new' ); ?>
    85 
    86                                 <div class="submit">
    87                                         <input type="submit" name="submit_topic" id="submit" value="<?php _e( 'Post Topic', 'buddypress' ); ?>" />
    88                                 </div>
    89 
    90                                 <?php wp_nonce_field( 'bp_forums_new_topic' ); ?>
    91                         </div><!-- #new-topic-post -->
    92                 </form><!-- #forum-topic-form -->
    93 
    94         <?php endif; ?>
    95 
    96 <?php endif; ?>
    97 
  • deleted file bp-themes/bp-legacy/buddypress/groups/single/forum/edit.php

    deleted file mode 100644
    + -  
    1 <?php do_action( 'bp_before_group_forum_edit_form' ); ?>
    2 
    3 <?php if ( bp_has_forum_topic_posts() ) : ?>
    4 
    5         <form action="<?php bp_forum_topic_action(); ?>" method="post" id="forum-topic-form" class="standard-form">
    6 
    7                 <div class="item-list-tabs" id="subnav" role="navigation">
    8                         <ul>
    9                                 <li>
    10                                         <a href="#post-topic-reply"><?php _e( 'Reply', 'buddypress' ); ?></a>
    11                                 </li>
    12 
    13                                 <?php if ( bp_forums_has_directory() ) : ?>
    14 
    15                                         <li>
    16                                                 <a href="<?php bp_forums_directory_permalink(); ?>"><?php _e( 'Forum Directory', 'buddypress' ); ?></a>
    17                                         </li>
    18 
    19                                 <?php endif; ?>
    20 
    21                         </ul>
    22                 </div>
    23 
    24                 <div id="topic-meta">
    25                         <h3><?php _e( 'Edit:', 'buddypress' ); ?> <?php bp_the_topic_title(); ?> (<?php bp_the_topic_total_post_count(); ?>)</h3>
    26 
    27                         <?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?>
    28 
    29                                 <div class="last admin-links">
    30 
    31                                         <?php bp_the_topic_admin_links(); ?>
    32 
    33                                 </div>
    34 
    35                         <?php endif; ?>
    36 
    37                         <?php do_action( 'bp_group_forum_topic_meta' ); ?>
    38 
    39                 </div>
    40 
    41                 <?php if ( bp_is_edit_topic() ) : ?>
    42 
    43                         <div id="edit-topic">
    44 
    45                                 <?php do_action( 'bp_group_before_edit_forum_topic' ); ?>
    46 
    47                                 <label for="topic_title"><?php _e( 'Title:', 'buddypress' ); ?></label>
    48                                 <input type="text" name="topic_title" id="topic_title" value="<?php bp_the_topic_title(); ?>" maxlength="100" />
    49 
    50                                 <label for="topic_text"><?php _e( 'Content:', 'buddypress' ); ?></label>
    51                                 <textarea name="topic_text" id="topic_text"><?php bp_the_topic_text(); ?></textarea>
    52 
    53                                 <label><?php _e( 'Tags (comma separated):', 'buddypress' ); ?></label>
    54                                 <input type="text" name="topic_tags" id="topic_tags" value="<?php bp_forum_topic_tag_list(); ?>" />
    55 
    56                                 <?php do_action( 'bp_group_after_edit_forum_topic' ); ?>
    57 
    58                                 <p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" /></p>
    59 
    60                                 <?php wp_nonce_field( 'bp_forums_edit_topic' ); ?>
    61 
    62                         </div>
    63 
    64                 <?php else : ?>
    65 
    66                         <div id="edit-post">
    67 
    68                                 <?php do_action( 'bp_group_before_edit_forum_post' ); ?>
    69 
    70                                 <textarea name="post_text" id="post_text"><?php bp_the_topic_post_edit_text(); ?></textarea>
    71 
    72                                 <?php do_action( 'bp_group_after_edit_forum_post' ); ?>
    73 
    74                                 <p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" /></p>
    75 
    76                                 <?php wp_nonce_field( 'bp_forums_edit_post' ); ?>
    77 
    78                         </div>
    79 
    80                 <?php endif; ?>
    81 
    82         </form><!-- #forum-topic-form -->
    83 
    84 <?php else: ?>
    85 
    86         <div id="message" class="info">
    87                 <p><?php _e( 'This topic does not exist.', 'buddypress' ); ?></p>
    88         </div>
    89 
    90 <?php endif;?>
    91 
    92 <?php do_action( 'bp_after_group_forum_edit_form' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/groups/single/forum/topic.php

    deleted file mode 100644
    + -  
    1 <?php do_action( 'bp_before_group_forum_topic' ); ?>
    2 
    3 <form action="<?php bp_forum_topic_action(); ?>" method="post" id="forum-topic-form" class="standard-form">
    4         <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    5                 <ul>
    6                         <?php if ( is_user_logged_in() ) : ?>
    7        
    8                                 <li>
    9                                         <a href="<?php bp_forum_topic_new_reply_link(); ?>" class="new-reply-link"><?php _e( 'New Reply', 'buddypress' ); ?></a>
    10                                 </li>
    11        
    12                         <?php endif; ?>
    13        
    14                         <?php if ( bp_forums_has_directory() ) : ?>
    15        
    16                                 <li>
    17                                         <a href="<?php bp_forums_directory_permalink(); ?>"><?php _e( 'Forum Directory', 'buddypress' ); ?></a>
    18                                 </li>
    19        
    20                         <?php endif; ?>
    21        
    22                 </ul>
    23         </div>
    24        
    25         <div id="topic-meta">
    26                 <h3><?php bp_the_topic_title(); ?> (<?php bp_the_topic_total_post_count(); ?>)</h3>
    27        
    28                 <?php if ( bp_forum_topic_has_tags() ) : ?>
    29        
    30                         <div class="topic-tags">
    31        
    32                                 <?php _e( 'Topic tags:', 'buddypress' ); ?> <?php bp_forum_topic_tag_list(); ?>
    33        
    34                         </div>
    35        
    36                 <?php endif; ?>
    37        
    38                 <?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?>
    39        
    40                         <div class="last admin-links">
    41        
    42                                 <?php bp_the_topic_admin_links(); ?>
    43        
    44                         </div>
    45        
    46                 <?php endif; ?>
    47        
    48                 <?php do_action( 'bp_group_forum_topic_meta' ); ?>
    49        
    50         </div>
    51 
    52 
    53         <?php if ( bp_has_forum_topic_posts() ) : ?>
    54 
    55                 <div class="pagination no-ajax">
    56 
    57                         <div id="post-count-top" class="pag-count">
    58 
    59                                 <?php bp_the_topic_pagination_count(); ?>
    60 
    61                         </div>
    62 
    63                         <div class="pagination-links" id="topic-pag-top">
    64 
    65                                 <?php bp_the_topic_pagination(); ?>
    66 
    67                         </div>
    68 
    69                 </div>
    70 
    71                 <?php do_action( 'bp_before_group_forum_topic_posts' ); ?>
    72 
    73                 <ul id="topic-post-list" class="item-list" role="main">
    74                         <?php while ( bp_forum_topic_posts() ) : bp_the_forum_topic_post(); ?>
    75 
    76                                 <li id="post-<?php bp_the_topic_post_id(); ?>" class="<?php bp_the_topic_post_css_class(); ?>">
    77                                         <div class="poster-meta">
    78                                                 <a href="<?php bp_the_topic_post_poster_link(); ?>">
    79                                                         <?php bp_the_topic_post_poster_avatar( 'width=40&height=40' ); ?>
    80                                                 </a>
    81                                                 <?php echo sprintf( __( '%1$s said %2$s:', 'buddypress' ), bp_get_the_topic_post_poster_name(), bp_get_the_topic_post_time_since() ); ?>
    82                                         </div>
    83 
    84                                         <div class="post-content">
    85                                                 <?php bp_the_topic_post_content(); ?>
    86                                         </div>
    87 
    88                                         <div class="admin-links">
    89                                                 <?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_post_is_mine() ) : ?>
    90                                                         <?php bp_the_topic_post_admin_links(); ?>
    91                                                 <?php endif; ?>
    92 
    93                                                 <?php do_action( 'bp_group_forum_post_meta' ); ?>
    94 
    95                                                 <a href="#post-<?php bp_the_topic_post_id(); ?>" title="<?php _e( 'Permanent link to this post', 'buddypress' ); ?>">#</a>
    96                                         </div>
    97                                 </li>
    98 
    99                         <?php endwhile; ?>
    100                 </ul><!-- #topic-post-list -->
    101 
    102                 <?php do_action( 'bp_after_group_forum_topic_posts' ); ?>
    103 
    104                 <div class="pagination no-ajax">
    105 
    106                         <div id="post-count-bottom" class="pag-count">
    107                                 <?php bp_the_topic_pagination_count(); ?>
    108                         </div>
    109 
    110                         <div class="pagination-links" id="topic-pag-bottom">
    111                                 <?php bp_the_topic_pagination(); ?>
    112                         </div>
    113 
    114                 </div>
    115 
    116         <?php else: ?>
    117        
    118                 <div id="message" class="info">
    119                         <p><?php _e( 'There are no posts for this topic.', 'buddypress' ); ?></p>
    120                 </div>
    121        
    122         <?php endif;?>
    123 
    124         <?php if ( ( is_user_logged_in() && 'public' == bp_get_group_status() ) || bp_group_is_member() ) : ?>
    125 
    126                 <?php if ( bp_get_the_topic_is_last_page() ) : ?>
    127 
    128                         <?php if ( bp_get_the_topic_is_topic_open() && !bp_group_is_user_banned() ) : ?>
    129 
    130                                 <div id="post-topic-reply">
    131                                         <p id="post-reply"></p>
    132 
    133                                         <?php if ( bp_groups_auto_join() && !bp_group_is_member() ) : ?>
    134                                                 <p><?php _e( 'You will auto join this group when you reply to this topic.', 'buddypress' ); ?></p>
    135                                         <?php endif; ?>
    136 
    137                                         <?php do_action( 'groups_forum_new_reply_before' ); ?>
    138 
    139                                         <h4><?php _e( 'Add a reply:', 'buddypress' ); ?></h4>
    140 
    141                                         <textarea name="reply_text" id="reply_text"></textarea>
    142 
    143                                         <div class="submit">
    144                                                 <input type="submit" name="submit_reply" id="submit" value="<?php _e( 'Post Reply', 'buddypress' ); ?>" />
    145                                         </div>
    146 
    147                                         <?php do_action( 'groups_forum_new_reply_after' ); ?>
    148 
    149                                         <?php wp_nonce_field( 'bp_forums_new_reply' ); ?>
    150                                 </div>
    151 
    152                         <?php elseif ( !bp_group_is_user_banned() ) : ?>
    153 
    154                                 <div id="message" class="info">
    155                                         <p><?php _e( 'This topic is closed, replies are no longer accepted.', 'buddypress' ); ?></p>
    156                                 </div>
    157 
    158                         <?php endif; ?>
    159 
    160                 <?php endif; ?>
    161 
    162         <?php endif; ?>
    163 
    164 </form><!-- #forum-topic-form -->
    165 
    166 <?php do_action( 'bp_after_group_forum_topic' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/groups/single/group-header.php

    deleted file mode 100644
    + -  
    1 <?php
    2 
    3 do_action( 'bp_before_group_header' );
    4 
    5 ?>
    6 
    7 <div id="item-actions">
    8 
    9         <?php if ( bp_group_is_visible() ) : ?>
    10 
    11                 <h3><?php _e( 'Group Admins', 'buddypress' ); ?></h3>
    12 
    13                 <?php bp_group_list_admins();
    14 
    15                 do_action( 'bp_after_group_menu_admins' );
    16 
    17                 if ( bp_group_has_moderators() ) :
    18                         do_action( 'bp_before_group_menu_mods' ); ?>
    19 
    20                         <h3><?php _e( 'Group Mods' , 'buddypress' ); ?></h3>
    21 
    22                         <?php bp_group_list_mods();
    23 
    24                         do_action( 'bp_after_group_menu_mods' );
    25 
    26                 endif;
    27 
    28         endif; ?>
    29 
    30 </div><!-- #item-actions -->
    31 
    32 <div id="item-header-avatar">
    33         <a href="<?php bp_group_permalink(); ?>" title="<?php bp_group_name(); ?>">
    34 
    35                 <?php bp_group_avatar(); ?>
    36 
    37         </a>
    38 </div><!-- #item-header-avatar -->
    39 
    40 <div id="item-header-content">
    41         <h2><a href="<?php bp_group_permalink(); ?>" title="<?php bp_group_name(); ?>"><?php bp_group_name(); ?></a></h2>
    42         <span class="highlight"><?php bp_group_type(); ?></span> <span class="activity"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span>
    43 
    44         <?php do_action( 'bp_before_group_header_meta' ); ?>
    45 
    46         <div id="item-meta">
    47 
    48                 <?php bp_group_description(); ?>
    49 
    50                 <div id="item-buttons">
    51 
    52                         <?php do_action( 'bp_group_header_actions' ); ?>
    53 
    54                 </div><!-- #item-buttons -->
    55 
    56                 <?php do_action( 'bp_group_header_meta' ); ?>
    57 
    58         </div>
    59 </div><!-- #item-header-content -->
    60 
    61 <?php
    62 do_action( 'bp_after_group_header' );
    63 do_action( 'template_notices' );
    64 ?>
    65  No newline at end of file
  • deleted file bp-themes/bp-legacy/buddypress/groups/single/home.php

    deleted file mode 100644
    + -  
    1 <div id="buddypress">
    2 
    3         <?php if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group(); ?>
    4 
    5         <?php do_action( 'bp_before_group_home_content' ); ?>
    6 
    7         <div id="item-header" role="complementary">
    8 
    9                 <?php bp_get_template_part( 'groups/single/group-header' ); ?>
    10 
    11         </div><!-- #item-header -->
    12 
    13         <div id="item-nav">
    14                 <div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
    15                         <ul>
    16 
    17                                 <?php bp_get_options_nav(); ?>
    18 
    19                                 <?php do_action( 'bp_group_options_nav' ); ?>
    20 
    21                         </ul>
    22                 </div>
    23         </div><!-- #item-nav -->
    24 
    25         <div id="item-body">
    26 
    27                 <?php do_action( 'bp_before_group_body' );
    28 
    29                 if ( bp_is_group_admin_page() && bp_group_is_visible() ) :
    30                         bp_get_template_part( 'groups/single/admin' );
    31 
    32                 elseif ( bp_is_group_members() && bp_group_is_visible() ) :
    33                         bp_get_template_part( 'groups/single/members' );
    34 
    35                 elseif ( bp_is_group_invites() && bp_group_is_visible() ) :
    36                         bp_get_template_part( 'groups/single/send-invites' );
    37 
    38                 elseif ( bp_is_group_forum() && bp_group_is_visible() && bp_is_active( 'forums' ) && bp_forums_is_installed_correctly() ) :
    39                         bp_get_template_part( 'groups/single/forum' );
    40 
    41                 elseif ( bp_is_group_membership_request() ) :
    42                         bp_get_template_part( 'groups/single/request-membership' );
    43 
    44                 elseif ( bp_group_is_visible() && bp_is_active( 'activity' ) ) :
    45                         bp_get_template_part( 'groups/single/activity' );
    46 
    47                 elseif ( bp_group_is_visible() ) :
    48                         bp_get_template_part( 'groups/single/members' );
    49 
    50                 // The group is not visible, show the status message
    51                 elseif ( !bp_group_is_visible() ) :
    52 
    53                         do_action( 'bp_before_group_status_message' ); ?>
    54 
    55                         <div id="message" class="info">
    56                                 <p><?php bp_group_status_message(); ?></p>
    57                         </div>
    58 
    59                         <?php do_action( 'bp_after_group_status_message' );
    60 
    61                 // If nothing sticks, just load a group front template if one exists.
    62                 else :
    63                         bp_get_template_part( 'groups/single/plugins' );
    64 
    65                 endif;
    66 
    67                 do_action( 'bp_after_group_body' ); ?>
    68 
    69         </div><!-- #item-body -->
    70 
    71         <?php do_action( 'bp_after_group_home_content' ); ?>
    72 
    73         <?php endwhile; endif; ?>
    74 
    75 </div><!-- #buddypress -->
  • deleted file bp-themes/bp-legacy/buddypress/groups/single/members.php

    deleted file mode 100644
    + -  
    1 <?php if ( bp_group_has_members( 'exclude_admins_mods=0' ) ) : ?>
    2 
    3         <?php do_action( 'bp_before_group_members_content' ); ?>
    4 
    5         <div class="item-list-tabs" id="subnav" role="navigation">
    6                 <ul>
    7 
    8                         <?php do_action( 'bp_members_directory_member_sub_types' ); ?>
    9 
    10                 </ul>
    11         </div>
    12 
    13         <div id="pag-top" class="pagination no-ajax">
    14 
    15                 <div class="pag-count" id="member-count-top">
    16 
    17                         <?php bp_members_pagination_count(); ?>
    18 
    19                 </div>
    20 
    21                 <div class="pagination-links" id="member-pag-top">
    22 
    23                         <?php bp_members_pagination_links(); ?>
    24 
    25                 </div>
    26 
    27         </div>
    28 
    29         <?php do_action( 'bp_before_group_members_list' ); ?>
    30 
    31         <ul id="member-list" class="item-list" role="main">
    32 
    33                 <?php while ( bp_group_members() ) : bp_group_the_member(); ?>
    34 
    35                         <li>
    36                                 <a href="<?php bp_group_member_domain(); ?>">
    37 
    38                                         <?php bp_group_member_avatar_thumb(); ?>
    39 
    40                                 </a>
    41 
    42                                 <h5><?php bp_group_member_link(); ?></h5>
    43                                 <span class="activity"><?php bp_group_member_joined_since(); ?></span>
    44 
    45                                 <?php do_action( 'bp_group_members_list_item' ); ?>
    46 
    47                                 <?php if ( bp_is_active( 'friends' ) ) : ?>
    48 
    49                                         <div class="action">
    50 
    51                                                 <?php bp_add_friend_button( bp_get_group_member_id(), bp_get_group_member_is_friend() ); ?>
    52 
    53                                                 <?php do_action( 'bp_group_members_list_item_action' ); ?>
    54 
    55                                         </div>
    56 
    57                                 <?php endif; ?>
    58                         </li>
    59 
    60                 <?php endwhile; ?>
    61 
    62         </ul>
    63 
    64         <?php do_action( 'bp_after_group_members_list' ); ?>
    65 
    66         <div id="pag-bottom" class="pagination no-ajax">
    67 
    68                 <div class="pag-count" id="member-count-bottom">
    69 
    70                         <?php bp_members_pagination_count(); ?>
    71 
    72                 </div>
    73 
    74                 <div class="pagination-links" id="member-pag-bottom">
    75 
    76                         <?php bp_members_pagination_links(); ?>
    77 
    78                 </div>
    79 
    80         </div>
    81 
    82         <?php do_action( 'bp_after_group_members_content' ); ?>
    83 
    84 <?php else: ?>
    85 
    86         <div id="message" class="info">
    87                 <p><?php _e( 'This group has no members.', 'buddypress' ); ?></p>
    88         </div>
    89 
    90 <?php endif; ?>
  • deleted file bp-themes/bp-legacy/buddypress/groups/single/plugins.php

    deleted file mode 100644
    + -  
    1 <div id="buddypress">
    2 
    3         <?php do_action( 'bp_before_group_plugin_template' ); ?>
    4 
    5         <div id="item-header">
    6 
    7                 <?php bp_get_template_part( 'groups/single/group-header' ); ?>
    8 
    9         </div><!-- #item-header -->
    10 
    11         <div id="item-nav">
    12                 <div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
    13                         <ul>
    14 
    15                                 <?php bp_get_options_nav(); ?>
    16 
    17                                 <?php do_action( 'bp_group_plugin_options_nav' ); ?>
    18 
    19                         </ul>
    20                 </div>
    21         </div><!-- #item-nav -->
    22 
    23         <div id="item-body">
    24 
    25                 <?php do_action( 'bp_before_group_body' ); ?>
    26 
    27                 <?php do_action( 'bp_template_content' ); ?>
    28 
    29                 <?php do_action( 'bp_after_group_body' ); ?>
    30 
    31         </div><!-- #item-body -->
    32 
    33         <?php do_action( 'bp_after_group_plugin_template' ); ?>
    34 
    35 </div><!-- #buddypress -->
  • deleted file bp-themes/bp-legacy/buddypress/groups/single/request-membership.php

    deleted file mode 100644
    + -  
    1 <?php do_action( 'bp_before_group_request_membership_content' ); ?>
    2 
    3 <?php if ( !bp_group_has_requested_membership() ) : ?>
    4         <p><?php printf( __( "You are requesting to become a member of the group '%s'.", "buddypress" ), bp_get_group_name( false ) ); ?></p>
    5 
    6         <form action="<?php bp_group_form_action('request-membership' ); ?>" method="post" name="request-membership-form" id="request-membership-form" class="standard-form">
    7                 <label for="group-request-membership-comments"><?php _e( 'Comments (optional)', 'buddypress' ); ?></label>
    8                 <textarea name="group-request-membership-comments" id="group-request-membership-comments"></textarea>
    9 
    10                 <?php do_action( 'bp_group_request_membership_content' ); ?>
    11 
    12                 <p><input type="submit" name="group-request-send" id="group-request-send" value="<?php _e( 'Send Request', 'buddypress' ); ?>" />
    13 
    14                 <?php wp_nonce_field( 'groups_request_membership' ); ?>
    15         </form><!-- #request-membership-form -->
    16 <?php endif; ?>
    17 
    18 <?php do_action( 'bp_after_group_request_membership_content' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/groups/single/send-invites.php

    deleted file mode 100644
    + -  
    1 <?php do_action( 'bp_before_group_send_invites_content' ); ?>
    2 
    3 <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    4 
    5         <form action="<?php bp_group_send_invite_form_action(); ?>" method="post" id="send-invite-form" class="standard-form" role="main">
    6 
    7                 <div class="left-menu">
    8 
    9                         <div id="invite-list">
    10                                 <ul>
    11                                         <?php bp_new_group_invite_friend_list(); ?>
    12                                 </ul>
    13 
    14                                 <?php wp_nonce_field( 'groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user' ); ?>
    15                         </div>
    16 
    17                 </div><!-- .left-menu -->
    18 
    19                 <div class="main-column">
    20 
    21                         <div id="message" class="info">
    22                                 <p><?php _e('Select people to invite from your friends list.', 'buddypress' ); ?></p>
    23                         </div>
    24 
    25                         <?php do_action( 'bp_before_group_send_invites_list' ); ?>
    26 
    27                         <?php /* The ID 'friend-list' is important for AJAX support. */ ?>
    28                         <ul id="friend-list" class="item-list">
    29                         <?php if ( bp_group_has_invites() ) : ?>
    30 
    31                                 <?php while ( bp_group_invites() ) : bp_group_the_invite(); ?>
    32 
    33                                         <li id="<?php bp_group_invite_item_id(); ?>">
    34                                                 <?php bp_group_invite_user_avatar(); ?>
    35 
    36                                                 <h4><?php bp_group_invite_user_link(); ?></h4>
    37                                                 <span class="activity"><?php bp_group_invite_user_last_active(); ?></span>
    38 
    39                                                 <?php do_action( 'bp_group_send_invites_item' ); ?>
    40 
    41                                                 <div class="action">
    42                                                         <a class="button remove" href="<?php bp_group_invite_user_remove_invite_url(); ?>" id="<?php bp_group_invite_item_id(); ?>"><?php _e( 'Remove Invite', 'buddypress' ); ?></a>
    43 
    44                                                         <?php do_action( 'bp_group_send_invites_item_action' ); ?>
    45                                                 </div>
    46                                         </li>
    47 
    48                                 <?php endwhile; ?>
    49 
    50                         <?php endif; ?>
    51                         </ul><!-- #friend-list -->
    52 
    53                         <?php do_action( 'bp_after_group_send_invites_list' ); ?>
    54 
    55                 </div><!-- .main-column -->
    56 
    57                 <div class="clear"></div>
    58 
    59                 <div class="submit">
    60                         <input type="submit" name="submit" id="submit" value="<?php _e( 'Send Invites', 'buddypress' ); ?>" />
    61                 </div>
    62 
    63                 <?php wp_nonce_field( 'groups_send_invites', '_wpnonce_send_invites' ); ?>
    64 
    65                 <?php /* This is important, don't forget it */ ?>
    66                 <input type="hidden" name="group_id" id="group_id" value="<?php bp_group_id(); ?>" />
    67 
    68         </form><!-- #send-invite-form -->
    69 
    70 <?php else : ?>
    71 
    72         <div id="message" class="info" role="main">
    73                 <p><?php _e( 'Once you have built up friend connections you will be able to invite others to your group. You can send invites any time in the future by selecting the "Send Invites" option when viewing your new group.', 'buddypress' ); ?></p>
    74         </div>
    75 
    76 <?php endif; ?>
    77 
    78 <?php do_action( 'bp_after_group_send_invites_content' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/members/activate.php

    deleted file mode 100644
    + -  
    1 <div id="buddypress">
    2 
    3         <?php do_action( 'bp_before_activation_page' ); ?>
    4 
    5         <div class="page" id="activate-page">
    6 
    7                 <?php if ( bp_account_was_activated() ) : ?>
    8 
    9                         <h2 class="widgettitle"><?php _e( 'Account Activated', 'buddypress' ); ?></h2>
    10 
    11                         <?php do_action( 'bp_before_activate_content' ); ?>
    12 
    13                         <?php if ( isset( $_GET['e'] ) ) : ?>
    14                                 <p><?php _e( 'Your account was activated successfully! Your account details have been sent to you in a separate email.', 'buddypress' ); ?></p>
    15                         <?php else : ?>
    16                                 <p><?php _e( 'Your account was activated successfully! You can now log in with the username and password you provided when you signed up.', 'buddypress' ); ?></p>
    17                         <?php endif; ?>
    18 
    19                 <?php else : ?>
    20 
    21                         <h3><?php _e( 'Activate your Account', 'buddypress' ); ?></h3>
    22 
    23                         <?php do_action( 'bp_before_activate_content' ); ?>
    24 
    25                         <p><?php _e( 'Please provide a valid activation key.', 'buddypress' ); ?></p>
    26 
    27                         <form action="" method="get" class="standard-form" id="activation-form">
    28 
    29                                 <label for="key"><?php _e( 'Activation Key:', 'buddypress' ); ?></label>
    30                                 <input type="text" name="key" id="key" value="" />
    31 
    32                                 <p class="submit">
    33                                         <input type="submit" name="submit" value="<?php _e( 'Activate', 'buddypress' ); ?>" />
    34                                 </p>
    35 
    36                         </form>
    37 
    38                 <?php endif; ?>
    39 
    40                 <?php do_action( 'bp_after_activate_content' ); ?>
    41 
    42         </div><!-- .page -->
    43 
    44         <?php do_action( 'bp_after_activation_page' ); ?>
    45 
    46 </div><!-- #buddypress -->
    47  No newline at end of file
  • deleted file bp-themes/bp-legacy/buddypress/members/index.php

    deleted file mode 100644
    + -  
    1 <?php do_action( 'bp_before_directory_members_page' ); ?>
    2 
    3 <div id="buddypress">
    4 
    5         <?php do_action( 'bp_before_directory_members' ); ?>
    6 
    7         <form action="" method="post" id="members-directory-form" class="dir-form">
    8 
    9                 <?php do_action( 'bp_before_directory_members_content' ); ?>
    10 
    11                 <div id="members-dir-search" class="dir-search" role="search">
    12 
    13                         <?php bp_directory_members_search_form(); ?>
    14 
    15                 </div><!-- #members-dir-search -->
    16 
    17                 <div class="item-list-tabs" role="navigation">
    18                         <ul>
    19                                 <li class="selected" id="members-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_members_root_slug() ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'buddypress' ), bp_get_total_member_count() ); ?></a></li>
    20 
    21                                 <?php if ( is_user_logged_in() && bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    22 
    23                                         <li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/' ?>"><?php printf( __( 'My Friends <span>%s</span>', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a></li>
    24 
    25                                 <?php endif; ?>
    26 
    27                                 <?php do_action( 'bp_members_directory_member_types' ); ?>
    28 
    29                         </ul>
    30                 </div><!-- .item-list-tabs -->
    31 
    32                 <div class="item-list-tabs" id="subnav" role="navigation">
    33                         <ul>
    34 
    35                                 <?php do_action( 'bp_members_directory_member_sub_types' ); ?>
    36 
    37                                 <li id="members-order-select" class="last filter">
    38 
    39                                         <label for="members-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
    40                                         <select id="members-order-by">
    41                                                 <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
    42                                                 <option value="newest"><?php _e( 'Newest Registered', 'buddypress' ); ?></option>
    43 
    44                                                 <?php if ( bp_is_active( 'xprofile' ) ) : ?>
    45 
    46                                                         <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    47 
    48                                                 <?php endif; ?>
    49 
    50                                                 <?php do_action( 'bp_members_directory_order_options' ); ?>
    51 
    52                                         </select>
    53                                 </li>
    54                         </ul>
    55                 </div>
    56 
    57                 <div id="members-dir-list" class="members dir-list">
    58 
    59                         <?php bp_get_template_part( 'members/members-loop' ); ?>
    60 
    61                 </div><!-- #members-dir-list -->
    62 
    63                 <?php do_action( 'bp_directory_members_content' ); ?>
    64 
    65                 <?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ); ?>
    66 
    67                 <?php do_action( 'bp_after_directory_members_content' ); ?>
    68 
    69         </form><!-- #members-directory-form -->
    70 
    71         <?php do_action( 'bp_after_directory_members' ); ?>
    72 
    73 </div><!-- #buddypress -->
    74 
    75 <?php do_action( 'bp_after_directory_members_page' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/members/members-loop.php

    deleted file mode 100644
    + -  
    1 <?php
    2 
    3 /**
    4  * BuddyPress - Members Loop
    5  *
    6  * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter()
    7  *
    8  * @package BuddyPress
    9  * @subpackage bp-legacy
    10  */
    11 
    12 ?>
    13 
    14 <?php do_action( 'bp_before_members_loop' ); ?>
    15 
    16 <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>
    17 
    18         <div id="pag-top" class="pagination">
    19 
    20                 <div class="pag-count" id="member-dir-count-top">
    21 
    22                         <?php bp_members_pagination_count(); ?>
    23 
    24                 </div>
    25 
    26                 <div class="pagination-links" id="member-dir-pag-top">
    27 
    28                         <?php bp_members_pagination_links(); ?>
    29 
    30                 </div>
    31 
    32         </div>
    33 
    34         <?php do_action( 'bp_before_directory_members_list' ); ?>
    35 
    36         <ul id="members-list" class="item-list" role="main">
    37 
    38         <?php while ( bp_members() ) : bp_the_member(); ?>
    39 
    40                 <li>
    41                         <div class="item-avatar">
    42                                 <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
    43                         </div>
    44 
    45                         <div class="item">
    46                                 <div class="item-title">
    47                                         <a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
    48 
    49                                         <?php if ( bp_get_member_latest_update() ) : ?>
    50 
    51                                                 <span class="update"> <?php bp_member_latest_update(); ?></span>
    52 
    53                                         <?php endif; ?>
    54 
    55                                 </div>
    56 
    57                                 <div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div>
    58 
    59                                 <?php do_action( 'bp_directory_members_item' ); ?>
    60 
    61                                 <?php
    62                                  /***
    63                                   * If you want to show specific profile fields here you can,
    64                                   * but it'll add an extra query for each member in the loop
    65                                   * (only one regardless of the number of fields you show):
    66                                   *
    67                                   * bp_member_profile_data( 'field=the field name' );
    68                                   */
    69                                 ?>
    70                         </div>
    71 
    72                         <div class="action">
    73 
    74                                 <?php do_action( 'bp_directory_members_actions' ); ?>
    75 
    76                         </div>
    77 
    78                         <div class="clear"></div>
    79                 </li>
    80 
    81         <?php endwhile; ?>
    82 
    83         </ul>
    84 
    85         <?php do_action( 'bp_after_directory_members_list' ); ?>
    86 
    87         <?php bp_member_hidden_fields(); ?>
    88 
    89         <div id="pag-bottom" class="pagination">
    90 
    91                 <div class="pag-count" id="member-dir-count-bottom">
    92 
    93                         <?php bp_members_pagination_count(); ?>
    94 
    95                 </div>
    96 
    97                 <div class="pagination-links" id="member-dir-pag-bottom">
    98 
    99                         <?php bp_members_pagination_links(); ?>
    100 
    101                 </div>
    102 
    103         </div>
    104 
    105 <?php else: ?>
    106 
    107         <div id="message" class="info">
    108                 <p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>
    109         </div>
    110 
    111 <?php endif; ?>
    112 
    113 <?php do_action( 'bp_after_members_loop' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/members/register.php

    deleted file mode 100644
    + -  
    1 <div id="buddypress">
    2 
    3         <?php do_action( 'bp_before_register_page' ); ?>
    4 
    5         <div class="page" id="register-page">
    6 
    7                 <form action="" name="signup_form" id="signup_form" class="standard-form" method="post" enctype="multipart/form-data">
    8 
    9                 <?php if ( 'registration-disabled' == bp_get_current_signup_step() ) : ?>
    10                         <?php do_action( 'template_notices' ); ?>
    11                         <?php do_action( 'bp_before_registration_disabled' ); ?>
    12 
    13                                 <p><?php _e( 'User registration is currently not allowed.', 'buddypress' ); ?></p>
    14 
    15                         <?php do_action( 'bp_after_registration_disabled' ); ?>
    16                 <?php endif; // registration-disabled signup setp ?>
    17 
    18                 <?php if ( 'request-details' == bp_get_current_signup_step() ) : ?>
    19 
    20                         <h2><?php _e( 'Create an Account', 'buddypress' ); ?></h2>
    21 
    22                         <?php do_action( 'template_notices' ); ?>
    23 
    24                         <p><?php _e( 'Registering for this site is easy, just fill in the fields below and we\'ll get a new account set up for you in no time.', 'buddypress' ); ?></p>
    25 
    26                         <?php do_action( 'bp_before_account_details_fields' ); ?>
    27 
    28                         <div class="register-section" id="basic-details-section">
    29 
    30                                 <?php /***** Basic Account Details ******/ ?>
    31 
    32                                 <h4><?php _e( 'Account Details', 'buddypress' ); ?></h4>
    33 
    34                                 <label for="signup_username"><?php _e( 'Username', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    35                                 <?php do_action( 'bp_signup_username_errors' ); ?>
    36                                 <input type="text" name="signup_username" id="signup_username" value="<?php bp_signup_username_value(); ?>" />
    37 
    38                                 <label for="signup_email"><?php _e( 'Email Address', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    39                                 <?php do_action( 'bp_signup_email_errors' ); ?>
    40                                 <input type="text" name="signup_email" id="signup_email" value="<?php bp_signup_email_value(); ?>" />
    41 
    42                                 <label for="signup_password"><?php _e( 'Choose a Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    43                                 <?php do_action( 'bp_signup_password_errors' ); ?>
    44                                 <input type="password" name="signup_password" id="signup_password" value="" />
    45 
    46                                 <label for="signup_password_confirm"><?php _e( 'Confirm Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    47                                 <?php do_action( 'bp_signup_password_confirm_errors' ); ?>
    48                                 <input type="password" name="signup_password_confirm" id="signup_password_confirm" value="" />
    49 
    50                         </div><!-- #basic-details-section -->
    51 
    52                         <?php do_action( 'bp_after_account_details_fields' ); ?>
    53 
    54                         <?php /***** Extra Profile Details ******/ ?>
    55 
    56                         <?php if ( bp_is_active( 'xprofile' ) ) : ?>
    57 
    58                                 <?php do_action( 'bp_before_signup_profile_fields' ); ?>
    59 
    60                                 <div class="register-section" id="profile-details-section">
    61 
    62                                         <h4><?php _e( 'Profile Details', 'buddypress' ); ?></h4>
    63 
    64                                         <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
    65                                         <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    66 
    67                                         <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    68 
    69                                                 <div class="editfield">
    70 
    71                                                         <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>
    72 
    73                                                                 <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    74                                                                 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ); ?>
    75                                                                 <input type="text" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" value="<?php bp_the_profile_field_edit_value(); ?>" />
    76 
    77                                                         <?php endif; ?>
    78 
    79                                                         <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?>
    80 
    81                                                                 <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    82                                                                 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ); ?>
    83                                                                 <textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_edit_value(); ?></textarea>
    84 
    85                                                         <?php endif; ?>
    86 
    87                                                         <?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?>
    88 
    89                                                                 <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    90                                                                 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ); ?>
    91                                                                 <select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>">
    92                                                                         <?php bp_the_profile_field_options(); ?>
    93                                                                 </select>
    94 
    95                                                         <?php endif; ?>
    96 
    97                                                         <?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?>
    98 
    99                                                                 <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    100                                                                 <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ); ?>
    101                                                                 <select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" multiple="multiple">
    102                                                                         <?php bp_the_profile_field_options(); ?>
    103                                                                 </select>
    104 
    105                                                         <?php endif; ?>
    106 
    107                                                         <?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?>
    108 
    109                                                                 <div class="radio">
    110                                                                         <span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span>
    111 
    112                                                                         <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ); ?>
    113                                                                         <?php bp_the_profile_field_options(); ?>
    114 
    115                                                                         <?php if ( !bp_get_the_profile_field_is_required() ) : ?>
    116                                                                                 <a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name(); ?>' );"><?php _e( 'Clear', 'buddypress' ); ?></a>
    117                                                                         <?php endif; ?>
    118                                                                 </div>
    119 
    120                                                         <?php endif; ?>
    121 
    122                                                         <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?>
    123 
    124                                                                 <div class="checkbox">
    125                                                                         <span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span>
    126 
    127                                                                         <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ); ?>
    128                                                                         <?php bp_the_profile_field_options(); ?>
    129                                                                 </div>
    130 
    131                                                         <?php endif; ?>
    132 
    133                                                         <?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?>
    134 
    135                                                                 <div class="datebox">
    136                                                                         <label for="<?php bp_the_profile_field_input_name(); ?>_day"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    137                                                                         <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ); ?>
    138 
    139                                                                         <select name="<?php bp_the_profile_field_input_name(); ?>_day" id="<?php bp_the_profile_field_input_name(); ?>_day">
    140                                                                                 <?php bp_the_profile_field_options( 'type=day' ); ?>
    141                                                                         </select>
    142 
    143                                                                         <select name="<?php bp_the_profile_field_input_name(); ?>_month" id="<?php bp_the_profile_field_input_name(); ?>_month">
    144                                                                                 <?php bp_the_profile_field_options( 'type=month' ); ?>
    145                                                                         </select>
    146 
    147                                                                         <select name="<?php bp_the_profile_field_input_name(); ?>_year" id="<?php bp_the_profile_field_input_name(); ?>_year">
    148                                                                                 <?php bp_the_profile_field_options( 'type=year' ); ?>
    149                                                                         </select>
    150                                                                 </div>
    151 
    152                                                         <?php endif; ?>
    153 
    154                                                         <?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
    155                                                                 <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    156                                                                         <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link">Change</a>
    157                                                                 </p>
    158 
    159                                                                 <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">
    160                                                                         <fieldset>
    161                                                                                 <legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend>
    162 
    163                                                                                 <?php bp_profile_visibility_radio_buttons() ?>
    164 
    165                                                                         </fieldset>
    166                                                                         <a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a>
    167 
    168                                                                 </div>
    169                                                         <?php else : ?>
    170                                                                 <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    171                                                                         <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?>
    172                                                                 </p>                   
    173                                                         <?php endif ?>
    174 
    175 
    176                                                         <?php do_action( 'bp_custom_profile_edit_fields' ); ?>
    177 
    178                                                         <p class="description"><?php bp_the_profile_field_description(); ?></p>
    179 
    180                                                 </div>
    181 
    182                                         <?php endwhile; ?>
    183 
    184                                         <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids(); ?>" />
    185 
    186                                         <?php endwhile; endif; endif; ?>
    187 
    188                                 </div><!-- #profile-details-section -->
    189 
    190                                 <?php do_action( 'bp_after_signup_profile_fields' ); ?>
    191 
    192                         <?php endif; ?>
    193 
    194                         <?php if ( bp_get_blog_signup_allowed() ) : ?>
    195 
    196                                 <?php do_action( 'bp_before_blog_details_fields' ); ?>
    197 
    198                                 <?php /***** Blog Creation Details ******/ ?>
    199 
    200                                 <div class="register-section" id="blog-details-section">
    201 
    202                                         <h4><?php _e( 'Blog Details', 'buddypress' ); ?></h4>
    203 
    204                                         <p><input type="checkbox" name="signup_with_blog" id="signup_with_blog" value="1"<?php if ( (int) bp_get_signup_with_blog_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'Yes, I\'d like to create a new site', 'buddypress' ); ?></p>
    205 
    206                                         <div id="blog-details"<?php if ( (int) bp_get_signup_with_blog_value() ) : ?>class="show"<?php endif; ?>>
    207 
    208                                                 <label for="signup_blog_url"><?php _e( 'Blog URL', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    209                                                 <?php do_action( 'bp_signup_blog_url_errors' ); ?>
    210 
    211                                                 <?php if ( is_subdomain_install() ) : ?>
    212                                                         http:// <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value(); ?>" /> .<?php bp_blogs_subdomain_base(); ?>
    213                                                 <?php else : ?>
    214                                                         <?php echo site_url(); ?>/ <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value(); ?>" />
    215                                                 <?php endif; ?>
    216 
    217                                                 <label for="signup_blog_title"><?php _e( 'Site Title', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    218                                                 <?php do_action( 'bp_signup_blog_title_errors' ); ?>
    219                                                 <input type="text" name="signup_blog_title" id="signup_blog_title" value="<?php bp_signup_blog_title_value(); ?>" />
    220 
    221                                                 <span class="label"><?php _e( 'I would like my site to appear in search engines, and in public listings around this network.', 'buddypress' ); ?>:</span>
    222                                                 <?php do_action( 'bp_signup_blog_privacy_errors' ); ?>
    223 
    224                                                 <label><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_public" value="public"<?php if ( 'public' == bp_get_signup_blog_privacy_value() || !bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'Yes', 'buddypress' ); ?></label>
    225                                                 <label><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_private" value="private"<?php if ( 'private' == bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'No', 'buddypress' ); ?></label>
    226 
    227                                         </div>
    228 
    229                                 </div><!-- #blog-details-section -->
    230 
    231                                 <?php do_action( 'bp_after_blog_details_fields' ); ?>
    232 
    233                         <?php endif; ?>
    234 
    235                         <?php do_action( 'bp_before_registration_submit_buttons' ); ?>
    236 
    237                         <div class="submit">
    238                                 <input type="submit" name="signup_submit" id="signup_submit" value="<?php _e( 'Complete Sign Up', 'buddypress' ); ?>" />
    239                         </div>
    240 
    241                         <?php do_action( 'bp_after_registration_submit_buttons' ); ?>
    242 
    243                         <?php wp_nonce_field( 'bp_new_signup' ); ?>
    244 
    245                 <?php endif; // request-details signup step ?>
    246 
    247                 <?php if ( 'completed-confirmation' == bp_get_current_signup_step() ) : ?>
    248 
    249                         <h2><?php _e( 'Sign Up Complete!', 'buddypress' ); ?></h2>
    250 
    251                         <?php do_action( 'template_notices' ); ?>
    252                         <?php do_action( 'bp_before_registration_confirmed' ); ?>
    253 
    254                         <?php if ( bp_registration_needs_activation() ) : ?>
    255                                 <p><?php _e( 'You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.', 'buddypress' ); ?></p>
    256                         <?php else : ?>
    257                                 <p><?php _e( 'You have successfully created your account! Please log in using the username and password you have just created.', 'buddypress' ); ?></p>
    258                         <?php endif; ?>
    259 
    260                         <?php do_action( 'bp_after_registration_confirmed' ); ?>
    261 
    262                 <?php endif; // completed-confirmation signup step ?>
    263 
    264                 <?php do_action( 'bp_custom_signup_steps' ); ?>
    265 
    266                 </form>
    267 
    268         </div>
    269 
    270         <?php do_action( 'bp_after_register_page' ); ?>
    271 
    272 </div><!-- #buddypress -->
  • deleted file bp-themes/bp-legacy/buddypress/members/single/activity.php

    deleted file mode 100644
    + -  
    1 <?php
    2 
    3 /**
    4  * BuddyPress - Users Activity
    5  *
    6  * @package BuddyPress
    7  * @subpackage bp-legacy
    8  */
    9 
    10 ?>
    11 
    12 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    13         <ul>
    14 
    15                 <?php bp_get_options_nav(); ?>
    16 
    17                 <li id="activity-filter-select" class="last">
    18                         <label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label>
    19                         <select id="activity-filter-by">
    20                                 <option value="-1"><?php _e( 'Everything', 'buddypress' ); ?></option>
    21                                 <option value="activity_update"><?php _e( 'Updates', 'buddypress' ); ?></option>
    22 
    23                                 <?php
    24                                 if ( !bp_is_current_action( 'groups' ) ) :
    25                                         if ( bp_is_active( 'blogs' ) ) : ?>
    26 
    27                                                 <option value="new_blog_post"><?php _e( 'Posts', 'buddypress' ); ?></option>
    28                                                 <option value="new_blog_comment"><?php _e( 'Comments', 'buddypress' ); ?></option>
    29 
    30                                         <?php
    31                                         endif;
    32 
    33                                         if ( bp_is_active( 'friends' ) ) : ?>
    34 
    35                                                 <option value="friendship_accepted,friendship_created"><?php _e( 'Friendships', 'buddypress' ); ?></option>
    36 
    37                                         <?php endif;
    38 
    39                                 endif;
    40 
    41                                 if ( bp_is_active( 'forums' ) ) : ?>
    42 
    43                                         <option value="new_forum_topic"><?php _e( 'Forum Topics', 'buddypress' ); ?></option>
    44                                         <option value="new_forum_post"><?php _e( 'Forum Replies', 'buddypress' ); ?></option>
    45 
    46                                 <?php endif;
    47 
    48                                 if ( bp_is_active( 'groups' ) ) : ?>
    49 
    50                                         <option value="created_group"><?php _e( 'New Groups', 'buddypress' ); ?></option>
    51                                         <option value="joined_group"><?php _e( 'Group Memberships', 'buddypress' ); ?></option>
    52 
    53                                 <?php endif;
    54 
    55                                 do_action( 'bp_member_activity_filter_options' ); ?>
    56 
    57                         </select>
    58                 </li>
    59         </ul>
    60 </div><!-- .item-list-tabs -->
    61 
    62 <?php do_action( 'bp_before_member_activity_post_form' ); ?>
    63 
    64 <?php
    65 if ( is_user_logged_in() && bp_is_my_profile() && ( !bp_current_action() || bp_is_current_action( 'just-me' ) ) )
    66         bp_get_template_part( 'activity/post-form' );
    67 
    68 do_action( 'bp_after_member_activity_post_form' );
    69 do_action( 'bp_before_member_activity_content' ); ?>
    70 
    71 <div class="activity" role="main">
    72 
    73         <?php bp_get_template_part( 'activity/activity-loop' ) ?>
    74 
    75 </div><!-- .activity -->
    76 
    77 <?php do_action( 'bp_after_member_activity_content' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/members/single/activity/permalink.php

    deleted file mode 100644
    + -  
    1 <div id="buddypress">
    2         <?php do_action( 'template_notices' ); ?>
    3 
    4         <div class="activity no-ajax" role="main">
    5                 <?php if ( bp_has_activities( 'display_comments=threaded&show_hidden=true&include=' . bp_current_action() ) ) : ?>
    6 
    7                         <ul id="activity-stream" class="activity-list item-list">
    8                         <?php while ( bp_activities() ) : bp_the_activity(); ?>
    9 
    10                                 <?php bp_get_template_part( 'activity/entry' ); ?>
    11 
    12                         <?php endwhile; ?>
    13                         </ul>
    14 
    15                 <?php endif; ?>
    16         </div>
    17 </div>
    18  No newline at end of file
  • deleted file bp-themes/bp-legacy/buddypress/members/single/blogs.php

    deleted file mode 100644
    + -  
    1 <?php
    2 
    3 /**
    4  * BuddyPress - Users Blogs
    5  *
    6  * @package BuddyPress
    7  * @subpackage bp-legacy
    8  */
    9 
    10 ?>
    11 
    12 <div class="item-list-tabs" id="subnav" role="navigation">
    13         <ul>
    14 
    15                 <?php bp_get_options_nav(); ?>
    16 
    17                 <li id="blogs-order-select" class="last filter">
    18 
    19                         <label for="blogs-all"><?php _e( 'Order By:', 'buddypress' ); ?></label>
    20                         <select id="blogs-all">
    21                                 <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
    22                                 <option value="newest"><?php _e( 'Newest', 'buddypress' ); ?></option>
    23                                 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    24 
    25                                 <?php do_action( 'bp_member_blog_order_options' ); ?>
    26 
    27                         </select>
    28                 </li>
    29         </ul>
    30 </div><!-- .item-list-tabs -->
    31 
    32 <?php do_action( 'bp_before_member_blogs_content' ); ?>
    33 
    34 <div class="blogs myblogs" role="main">
    35 
    36         <?php bp_get_template_part( 'blogs/blogs-loop' ) ?>
    37 
    38 </div><!-- .blogs.myblogs -->
    39 
    40 <?php do_action( 'bp_after_member_blogs_content' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/members/single/forums.php

    deleted file mode 100644
    + -  
    1 <?php
    2 
    3 /**
    4  * BuddyPress - Users Forums
    5  *
    6  * @package BuddyPress
    7  * @subpackage bp-legacy
    8  */
    9 
    10 ?>
    11 
    12 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    13         <ul>
    14                 <?php bp_get_options_nav(); ?>
    15 
    16                 <li id="forums-order-select" class="last filter">
    17 
    18                         <label for="forums-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
    19                         <select id="forums-order-by">
    20                                 <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
    21                                 <option value="popular"><?php _e( 'Most Posts', 'buddypress' ); ?></option>
    22                                 <option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ); ?></option>
    23 
    24                                 <?php do_action( 'bp_forums_directory_order_options' ); ?>
    25 
    26                         </select>
    27                 </li>
    28         </ul>
    29 </div><!-- .item-list-tabs -->
    30 
    31 <?php
    32 
    33 if ( bp_is_current_action( 'favorites' ) ) :
    34         bp_get_template_part( 'members/single/forums/topics' );
    35 
    36 else :
    37         do_action( 'bp_before_member_forums_content' ); ?>
    38 
    39         <div class="forums myforums">
    40 
    41                 <?php bp_get_template_part( 'forums/forums-loop' ) ?>
    42 
    43         </div>
    44 
    45         <?php do_action( 'bp_after_member_forums_content' ); ?>
    46 
    47 <?php endif; ?>
  • deleted file bp-themes/bp-legacy/buddypress/members/single/forums/topics.php

    deleted file mode 100644
    + -  
    1 <?php
    2 /*
    3  * To change this template, choose Tools | Templates
    4  * and open the template in the editor.
    5  */
    6 
    7 ?>
  • deleted file bp-themes/bp-legacy/buddypress/members/single/friends.php

    deleted file mode 100644
    + -  
    1 <?php
    2 
    3 /**
    4  * BuddyPress - Users Friends
    5  *
    6  * @package BuddyPress
    7  * @subpackage bp-legacy
    8  */
    9 
    10 ?>
    11 
    12 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    13         <ul>
    14                 <?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?>
    15 
    16                 <?php if ( !bp_is_current_action( 'requests' ) ) : ?>
    17 
    18                         <li id="members-order-select" class="last filter">
    19 
    20                                 <label for="members-friends"><?php _e( 'Order By:', 'buddypress' ); ?></label>
    21                                 <select id="members-friends">
    22                                         <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
    23                                         <option value="newest"><?php _e( 'Newest Registered', 'buddypress' ); ?></option>
    24                                         <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    25 
    26                                         <?php do_action( 'bp_member_blog_order_options' ); ?>
    27 
    28                                 </select>
    29                         </li>
    30 
    31                 <?php endif; ?>
    32 
    33         </ul>
    34 </div>
    35 
    36 <?php
    37 
    38 if ( bp_is_current_action( 'requests' ) ) :
    39          bp_get_template_part( 'members/single/friends/requests' );
    40 
    41 else :
    42         do_action( 'bp_before_member_friends_content' ); ?>
    43 
    44         <div class="members friends">
    45 
    46                 <?php bp_get_template_part( 'members/members-loop' ) ?>
    47 
    48         </div><!-- .members.friends -->
    49 
    50         <?php do_action( 'bp_after_member_friends_content' ); ?>
    51 
    52 <?php endif; ?>
  • deleted file bp-themes/bp-legacy/buddypress/members/single/friends/requests.php

    deleted file mode 100644
    + -  
    1 <?php do_action( 'bp_before_member_friend_requests_content' ); ?>
    2 
    3 <?php if ( bp_has_members( 'type=alphabetical&include=' . bp_get_friendship_requests() ) ) : ?>
    4 
    5         <div id="pag-top" class="pagination no-ajax">
    6 
    7                 <div class="pag-count" id="member-dir-count-top">
    8 
    9                         <?php bp_members_pagination_count(); ?>
    10 
    11                 </div>
    12 
    13                 <div class="pagination-links" id="member-dir-pag-top">
    14 
    15                         <?php bp_members_pagination_links(); ?>
    16 
    17                 </div>
    18 
    19         </div>
    20 
    21         <ul id="friend-list" class="item-list" role="main">
    22                 <?php while ( bp_members() ) : bp_the_member(); ?>
    23 
    24                         <li id="friendship-<?php bp_friend_friendship_id(); ?>">
    25                                 <div class="item-avatar">
    26                                         <a href="<?php bp_member_link(); ?>"><?php bp_member_avatar(); ?></a>
    27                                 </div>
    28 
    29                                 <div class="item">
    30                                         <div class="item-title"><a href="<?php bp_member_link(); ?>"><?php bp_member_name(); ?></a></div>
    31                                         <div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div>
    32                                 </div>
    33 
    34                                 <?php do_action( 'bp_friend_requests_item' ); ?>
    35 
    36                                 <div class="action">
    37                                         <a class="button accept" href="<?php bp_friend_accept_request_link(); ?>"><?php _e( 'Accept', 'buddypress' ); ?></a> &nbsp;
    38                                         <a class="button reject" href="<?php bp_friend_reject_request_link(); ?>"><?php _e( 'Reject', 'buddypress' ); ?></a>
    39 
    40                                         <?php do_action( 'bp_friend_requests_item_action' ); ?>
    41                                 </div>
    42                         </li>
    43 
    44                 <?php endwhile; ?>
    45         </ul>
    46 
    47         <?php do_action( 'bp_friend_requests_content' ); ?>
    48 
    49         <div id="pag-bottom" class="pagination no-ajax">
    50 
    51                 <div class="pag-count" id="member-dir-count-bottom">
    52 
    53                         <?php bp_members_pagination_count(); ?>
    54 
    55                 </div>
    56 
    57                 <div class="pagination-links" id="member-dir-pag-bottom">
    58 
    59                         <?php bp_members_pagination_links(); ?>
    60 
    61                 </div>
    62 
    63         </div>
    64 
    65 <?php else: ?>
    66 
    67         <div id="message" class="info">
    68                 <p><?php _e( 'You have no pending friendship requests.', 'buddypress' ); ?></p>
    69         </div>
    70 
    71 <?php endif;?>
    72 
    73 <?php do_action( 'bp_after_member_friend_requests_content' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/members/single/groups.php

    deleted file mode 100644
    + -  
    1 <?php
    2 
    3 /**
    4  * BuddyPress - Users Groups
    5  *
    6  * @package BuddyPress
    7  * @subpackage bp-legacy
    8  */
    9 
    10 ?>
    11 
    12 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    13         <ul>
    14                 <?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?>
    15 
    16                 <?php if ( !bp_is_current_action( 'invites' ) ) : ?>
    17 
    18                         <li id="groups-order-select" class="last filter">
    19 
    20                                 <label for="groups-sort-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
    21                                 <select id="groups-sort-by">
    22                                         <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
    23                                         <option value="popular"><?php _e( 'Most Members', 'buddypress' ); ?></option>
    24                                         <option value="newest"><?php _e( 'Newly Created', 'buddypress' ); ?></option>
    25                                         <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    26 
    27                                         <?php do_action( 'bp_member_group_order_options' ); ?>
    28 
    29                                 </select>
    30                         </li>
    31 
    32                 <?php endif; ?>
    33 
    34         </ul>
    35 </div><!-- .item-list-tabs -->
    36 
    37 <?php
    38 
    39 if ( bp_is_current_action( 'invites' ) ) :
    40         bp_get_template_part( 'members/single/groups/invites' );
    41 
    42 else :
    43         do_action( 'bp_before_member_groups_content' ); ?>
    44 
    45         <div class="groups mygroups">
    46 
    47                 <?php bp_get_template_part( 'groups/groups-loop' ); ?>
    48 
    49         </div>
    50 
    51         <?php do_action( 'bp_after_member_groups_content' ); ?>
    52 
    53 <?php endif; ?>
  • deleted file bp-themes/bp-legacy/buddypress/members/single/groups/invites.php

    deleted file mode 100644
    + -  
    1 <?php do_action( 'bp_before_group_invites_content' ); ?>
    2 
    3 <?php if ( bp_has_groups( 'type=invites&user_id=' . bp_loggedin_user_id() ) ) : ?>
    4 
    5         <ul id="group-list" class="invites item-list" role="main">
    6 
    7                 <?php while ( bp_groups() ) : bp_the_group(); ?>
    8 
    9                         <li>
    10                                 <div class="item-avatar">
    11                                         <a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ); ?></a>
    12                                 </div>
    13 
    14                                 <h4><a href="<?php bp_group_permalink(); ?>"><?php bp_group_name(); ?></a><span class="small"> - <?php printf( __( '%s members', 'buddypress' ), bp_group_total_members( false ) ); ?></span></h4>
    15 
    16                                 <p class="desc">
    17                                         <?php bp_group_description_excerpt(); ?>
    18                                 </p>
    19 
    20                                 <?php do_action( 'bp_group_invites_item' ); ?>
    21 
    22                                 <div class="action">
    23                                         <a class="button accept" href="<?php bp_group_accept_invite_link(); ?>"><?php _e( 'Accept', 'buddypress' ); ?></a> &nbsp;
    24                                         <a class="button reject confirm" href="<?php bp_group_reject_invite_link(); ?>"><?php _e( 'Reject', 'buddypress' ); ?></a>
    25 
    26                                         <?php do_action( 'bp_group_invites_item_action' ); ?>
    27 
    28                                 </div>
    29                         </li>
    30 
    31                 <?php endwhile; ?>
    32         </ul>
    33 
    34 <?php else: ?>
    35 
    36         <div id="message" class="info" role="main">
    37                 <p><?php _e( 'You have no outstanding group invites.', 'buddypress' ); ?></p>
    38         </div>
    39 
    40 <?php endif;?>
    41 
    42 <?php do_action( 'bp_after_group_invites_content' ); ?>
    43  No newline at end of file
  • deleted file bp-themes/bp-legacy/buddypress/members/single/home.php

    deleted file mode 100644
    + -  
    1 <div id="buddypress">
    2 
    3         <?php do_action( 'bp_before_member_home_content' ); ?>
    4 
    5         <div id="item-header" role="complementary">
    6 
    7                 <?php bp_get_template_part( 'members/single/member-header' ) ?>
    8 
    9         </div><!-- #item-header -->
    10 
    11         <div id="item-nav">
    12                 <div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
    13                         <ul>
    14 
    15                                 <?php bp_get_displayed_user_nav(); ?>
    16 
    17                                 <?php do_action( 'bp_member_options_nav' ); ?>
    18 
    19                         </ul>
    20                 </div>
    21         </div><!-- #item-nav -->
    22 
    23         <div id="item-body">
    24 
    25                 <?php do_action( 'bp_before_member_body' );
    26 
    27                 if ( bp_is_user_activity() || !bp_current_component() ) :
    28                         bp_get_template_part( 'members/single/activity' );
    29 
    30                 elseif ( bp_is_user_blogs() ) :
    31                         bp_get_template_part( 'members/single/blogs'    );
    32 
    33                 elseif ( bp_is_user_friends() ) :
    34                         bp_get_template_part( 'members/single/friends'  );
    35 
    36                 elseif ( bp_is_user_groups() ) :
    37                         bp_get_template_part( 'members/single/groups'   );
    38 
    39                 elseif ( bp_is_user_messages() ) :
    40                         bp_get_template_part( 'members/single/messages' );
    41 
    42                 elseif ( bp_is_user_profile() ) :
    43                         bp_get_template_part( 'members/single/profile'  );
    44 
    45                 elseif ( bp_is_user_forums() ) :
    46                         bp_get_template_part( 'members/single/forums'   );
    47 
    48                 elseif ( bp_is_user_settings() ) :
    49                         bp_get_template_part( 'members/single/settings' );
    50 
    51                 // If nothing sticks, load a generic template
    52                 else :
    53                         bp_get_template_part( 'members/single/plugins'  );
    54 
    55                 endif;
    56 
    57                 do_action( 'bp_after_member_body' ); ?>
    58 
    59         </div><!-- #item-body -->
    60 
    61         <?php do_action( 'bp_after_member_home_content' ); ?>
    62 
    63 </div><!-- #buddypress -->
  • deleted file bp-themes/bp-legacy/buddypress/members/single/member-header.php

    deleted file mode 100644
    + -  
    1 <?php
    2 
    3 /**
    4  * BuddyPress - Users Header
    5  *
    6  * @package BuddyPress
    7  * @subpackage bp-legacy
    8  */
    9 
    10 ?>
    11 
    12 <?php do_action( 'bp_before_member_header' ); ?>
    13 
    14 <div id="item-header-avatar">
    15         <a href="<?php bp_displayed_user_link(); ?>">
    16 
    17                 <?php bp_displayed_user_avatar( 'type=full' ); ?>
    18 
    19         </a>
    20 </div><!-- #item-header-avatar -->
    21 
    22 <div id="item-header-content">
    23 
    24         <h2>
    25                 <a href="<?php bp_displayed_user_link(); ?>"><?php bp_displayed_user_fullname(); ?></a>
    26         </h2>
    27 
    28         <span class="user-nicename">@<?php bp_displayed_user_username(); ?></span>
    29         <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
    30 
    31         <?php do_action( 'bp_before_member_header_meta' ); ?>
    32 
    33         <div id="item-meta">
    34 
    35                 <?php if ( bp_is_active( 'activity' ) ) : ?>
    36 
    37                         <div id="latest-update">
    38 
    39                                 <?php bp_activity_latest_update( bp_displayed_user_id() ); ?>
    40 
    41                         </div>
    42 
    43                 <?php endif; ?>
    44 
    45                 <div id="item-buttons">
    46 
    47                         <?php do_action( 'bp_member_header_actions' ); ?>
    48 
    49                 </div><!-- #item-buttons -->
    50 
    51                 <?php
    52                 /***
    53                  * If you'd like to show specific profile fields here use:
    54                  * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field
    55                  */
    56                  do_action( 'bp_profile_header_meta' );
    57 
    58                  ?>
    59 
    60         </div><!-- #item-meta -->
    61 
    62 </div><!-- #item-header-content -->
    63 
    64 <?php do_action( 'bp_after_member_header' ); ?>
    65 
    66 <?php do_action( 'template_notices' ); ?>
    67  No newline at end of file
  • deleted file bp-themes/bp-legacy/buddypress/members/single/messages.php

    deleted file mode 100644
    + -  
    1 <?php
    2 
    3 /**
    4  * BuddyPress - Users Messages
    5  *
    6  * @package BuddyPress
    7  * @subpackage bp-legacy
    8  */
    9 
    10 ?>
    11 
    12 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    13         <ul>
    14 
    15                 <?php bp_get_options_nav(); ?>
    16 
    17         </ul>
    18        
    19         <?php if ( bp_is_messages_inbox() || bp_is_messages_sentbox() ) : ?>
    20 
    21                 <div class="message-search"><?php bp_message_search_form(); ?></div>
    22 
    23         <?php endif; ?>
    24 
    25 </div><!-- .item-list-tabs -->
    26 
    27 <?php
    28 
    29         if ( bp_is_current_action( 'compose' ) ) :
    30                 bp_get_template_part( 'members/single/messages/compose' );
    31 
    32         elseif ( bp_is_current_action( 'view' ) ) :
    33                 bp_get_template_part( 'members/single/messages/single' );
    34 
    35         else :
    36                 do_action( 'bp_before_member_messages_content' ); ?>
    37 
    38         <div class="messages" role="main">
    39 
    40                 <?php
    41                         if ( bp_is_current_action( 'notices' ) )
    42                                 bp_get_template_part( 'members/single/messages/notices-loop' );
    43                         else
    44                                 bp_get_template_part( 'members/single/messages/messages-loop' );
    45                 ?>
    46 
    47         </div><!-- .messages -->
    48 
    49         <?php do_action( 'bp_after_member_messages_content' ); ?>
    50 
    51 <?php endif; ?>
  • deleted file bp-themes/bp-legacy/buddypress/members/single/messages/compose.php

    deleted file mode 100644
    + -  
    1 <form action="<?php bp_messages_form_action('compose' ); ?>" method="post" id="send_message_form" class="standard-form" role="main" enctype="multipart/form-data">
    2 
    3         <?php do_action( 'bp_before_messages_compose_content' ); ?>
    4 
    5         <label for="send-to-input"><?php _e("Send To (Username or Friend's Name)", 'buddypress' ); ?></label>
    6         <ul class="first acfb-holder">
    7                 <li>
    8                         <?php bp_message_get_recipient_tabs(); ?>
    9                         <input type="text" name="send-to-input" class="send-to-input" id="send-to-input" />
    10                 </li>
    11         </ul>
    12 
    13         <?php if ( bp_current_user_can( 'bp_moderate' ) ) : ?>
    14                 <input type="checkbox" id="send-notice" name="send-notice" value="1" /> <?php _e( "This is a notice to all users.", "buddypress" ); ?>
    15         <?php endif; ?>
    16 
    17         <label for="subject"><?php _e( 'Subject', 'buddypress' ); ?></label>
    18         <input type="text" name="subject" id="subject" value="<?php bp_messages_subject_value(); ?>" />
    19 
    20         <label for="content"><?php _e( 'Message', 'buddypress' ); ?></label>
    21         <textarea name="content" id="message_content" rows="15" cols="40"><?php bp_messages_content_value(); ?></textarea>
    22 
    23         <input type="hidden" name="send_to_usernames" id="send-to-usernames" value="<?php bp_message_get_recipient_usernames(); ?>" class="<?php bp_message_get_recipient_usernames(); ?>" />
    24 
    25         <?php do_action( 'bp_after_messages_compose_content' ); ?>
    26 
    27         <div class="submit">
    28                 <input type="submit" value="<?php _e( "Send Message", 'buddypress' ); ?>" name="send" id="send" />
    29         </div>
    30 
    31         <?php wp_nonce_field( 'messages_send_message' ); ?>
    32 </form>
    33 
    34 <script type="text/javascript">
    35         document.getElementById("send-to-input").focus();
    36 </script>
    37 
  • deleted file bp-themes/bp-legacy/buddypress/members/single/messages/messages-loop.php

    deleted file mode 100644
    + -  
    1 <?php do_action( 'bp_before_member_messages_loop' ); ?>
    2 
    3 <?php if ( bp_has_message_threads( bp_ajax_querystring( 'messages' ) ) ) : ?>
    4 
    5         <div class="pagination no-ajax" id="user-pag">
    6 
    7                 <div class="pag-count" id="messages-dir-count">
    8                         <?php bp_messages_pagination_count(); ?>
    9                 </div>
    10 
    11                 <div class="pagination-links" id="messages-dir-pag">
    12                         <?php bp_messages_pagination(); ?>
    13                 </div>
    14 
    15         </div><!-- .pagination -->
    16 
    17         <?php do_action( 'bp_after_member_messages_pagination' ); ?>
    18 
    19         <?php do_action( 'bp_before_member_messages_threads'   ); ?>
    20 
    21         <table id="message-threads" class="messages-notices">
    22                 <?php while ( bp_message_threads() ) : bp_message_thread(); ?>
    23 
    24                         <tr id="m-<?php bp_message_thread_id(); ?>" class="<?php bp_message_css_class(); ?><?php if ( bp_message_thread_has_unread() ) : ?> unread"<?php else: ?> read"<?php endif; ?>>
    25                                 <td width="1%" class="thread-count">
    26                                         <span class="unread-count"><?php bp_message_thread_unread_count(); ?></span>
    27                                 </td>
    28                                 <td width="1%" class="thread-avatar"><?php bp_message_thread_avatar(); ?></td>
    29 
    30                                 <?php if ( 'sentbox' != bp_current_action() ) : ?>
    31                                         <td width="30%" class="thread-from">
    32                                                 <?php _e( 'From:', 'buddypress' ); ?> <?php bp_message_thread_from(); ?><br />
    33                                                 <span class="activity"><?php bp_message_thread_last_post_date(); ?></span>
    34                                         </td>
    35                                 <?php else: ?>
    36                                         <td width="30%" class="thread-from">
    37                                                 <?php _e( 'To:', 'buddypress' ); ?> <?php bp_message_thread_to(); ?><br />
    38                                                 <span class="activity"><?php bp_message_thread_last_post_date(); ?></span>
    39                                         </td>
    40                                 <?php endif; ?>
    41 
    42                                 <td width="50%" class="thread-info">
    43                                         <p><a href="<?php bp_message_thread_view_link(); ?>" title="<?php _e( "View Message", "buddypress" ); ?>"><?php bp_message_thread_subject(); ?></a></p>
    44                                         <p class="thread-excerpt"><?php bp_message_thread_excerpt(); ?></p>
    45                                 </td>
    46 
    47                                 <?php do_action( 'bp_messages_inbox_list_item' ); ?>
    48 
    49                                 <td width="13%" class="thread-options">
    50                                         <input type="checkbox" name="message_ids[]" value="<?php bp_message_thread_id(); ?>" />
    51                                         <a class="button confirm" href="<?php bp_message_thread_delete_link(); ?>" title="<?php _e( "Delete Message", "buddypress" ); ?>"><?php _e( 'Delete', 'buddypress' ); ?></a> &nbsp;
    52                                 </td>
    53                         </tr>
    54 
    55                 <?php endwhile; ?>
    56         </table><!-- #message-threads -->
    57 
    58         <div class="messages-options-nav">
    59                 <?php bp_messages_options(); ?>
    60         </div><!-- .messages-options-nav -->
    61 
    62         <?php do_action( 'bp_after_member_messages_threads' ); ?>
    63 
    64         <?php do_action( 'bp_after_member_messages_options' ); ?>
    65 
    66 <?php else: ?>
    67 
    68         <div id="message" class="info">
    69                 <p><?php _e( 'Sorry, no messages were found.', 'buddypress' ); ?></p>
    70         </div>
    71 
    72 <?php endif;?>
    73 
    74 <?php do_action( 'bp_after_member_messages_loop' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/members/single/messages/notices-loop.php

    deleted file mode 100644
    + -  
    1 <?php do_action( 'bp_before_notices_loop' ); ?>
    2 
    3 <?php if ( bp_has_message_threads() ) : ?>
    4 
    5         <div class="pagination no-ajax" id="user-pag">
    6 
    7                 <div class="pag-count" id="messages-dir-count">
    8                         <?php bp_messages_pagination_count(); ?>
    9                 </div>
    10 
    11                 <div class="pagination-links" id="messages-dir-pag">
    12                         <?php bp_messages_pagination(); ?>
    13                 </div>
    14 
    15         </div><!-- .pagination -->
    16 
    17         <?php do_action( 'bp_after_notices_pagination' ); ?>
    18         <?php do_action( 'bp_before_notices' ); ?>
    19 
    20         <table id="message-threads" class="messages-notices">
    21                 <?php while ( bp_message_threads() ) : bp_message_thread(); ?>
    22                         <tr id="notice-<?php bp_message_notice_id(); ?>" class="<?php bp_message_css_class(); ?>">
    23                                 <td width="1%"></td>
    24                                 <td width="38%">
    25                                         <strong><?php bp_message_notice_subject(); ?></strong>
    26                                         <?php bp_message_notice_text(); ?>
    27                                 </td>
    28                                 <td width="21%">
    29 
    30                                         <?php if ( bp_messages_is_active_notice() ) : ?>
    31 
    32                                                 <strong><?php bp_messages_is_active_notice(); ?></strong>
    33 
    34                                         <?php endif; ?>
    35 
    36                                         <span class="activity"><?php _e( 'Sent:', 'buddypress' ); ?> <?php bp_message_notice_post_date(); ?></span>
    37                                 </td>
    38 
    39                                 <?php do_action( 'bp_notices_list_item' ); ?>
    40 
    41                                 <td width="10%">
    42                                         <a class="button" href="<?php bp_message_activate_deactivate_link(); ?>" class="confirm"><?php bp_message_activate_deactivate_text(); ?></a>
    43                                         <a class="button" href="<?php bp_message_notice_delete_link(); ?>" class="confirm" title="<?php _e( "Delete Message", "buddypress" ); ?>">x</a>
    44                                 </td>
    45                         </tr>
    46                 <?php endwhile; ?>
    47         </table><!-- #message-threads -->
    48 
    49         <?php do_action( 'bp_after_notices' ); ?>
    50 
    51 <?php else: ?>
    52 
    53         <div id="message" class="info">
    54                 <p><?php _e( 'Sorry, no notices were found.', 'buddypress' ); ?></p>
    55         </div>
    56 
    57 <?php endif;?>
    58 
    59 <?php do_action( 'bp_after_notices_loop' ); ?>
    60  No newline at end of file
  • deleted file bp-themes/bp-legacy/buddypress/members/single/messages/single.php

    deleted file mode 100644
    + -  
    1 <div id="message-thread" role="main">
    2 
    3         <?php do_action( 'bp_before_message_thread_content' ); ?>
    4 
    5         <?php if ( bp_thread_has_messages() ) : ?>
    6 
    7                 <h3 id="message-subject"><?php bp_the_thread_subject(); ?></h3>
    8 
    9                 <p id="message-recipients">
    10                         <span class="highlight">
    11 
    12                                 <?php if ( !bp_get_the_thread_recipients() ) : ?>
    13 
    14                                         <?php _e( 'You are alone in this conversation.', 'buddypress' ); ?>
    15 
    16                                 <?php else : ?>
    17 
    18                                         <?php printf( __( 'Conversation between %s and you.', 'buddypress' ), bp_get_the_thread_recipients() ); ?>
    19 
    20                                 <?php endif; ?>
    21 
    22                         </span>
    23 
    24                         <a class="button confirm" href="<?php bp_the_thread_delete_link(); ?>" title="<?php _e( "Delete Message", "buddypress" ); ?>"><?php _e( 'Delete', 'buddypress' ); ?></a> &nbsp;
    25                 </p>
    26 
    27                 <?php do_action( 'bp_before_message_thread_list' ); ?>
    28 
    29                 <?php while ( bp_thread_messages() ) : bp_thread_the_message(); ?>
    30 
    31                         <div class="message-box <?php bp_the_thread_message_alt_class(); ?>">
    32 
    33                                 <div class="message-metadata">
    34 
    35                                         <?php do_action( 'bp_before_message_meta' ); ?>
    36 
    37                                         <?php bp_the_thread_message_sender_avatar( 'type=thumb&width=30&height=30' ); ?>
    38                                         <strong><a href="<?php bp_the_thread_message_sender_link(); ?>" title="<?php bp_the_thread_message_sender_name(); ?>"><?php bp_the_thread_message_sender_name(); ?></a> <span class="activity"><?php bp_the_thread_message_time_since(); ?></span></strong>
    39 
    40                                         <?php do_action( 'bp_after_message_meta' ); ?>
    41 
    42                                 </div><!-- .message-metadata -->
    43 
    44                                 <?php do_action( 'bp_before_message_content' ); ?>
    45 
    46                                 <div class="message-content">
    47 
    48                                         <?php bp_the_thread_message_content(); ?>
    49 
    50                                 </div><!-- .message-content -->
    51 
    52                                 <?php do_action( 'bp_after_message_content' ); ?>
    53 
    54                                 <div class="clear"></div>
    55 
    56                         </div><!-- .message-box -->
    57 
    58                 <?php endwhile; ?>
    59 
    60                 <?php do_action( 'bp_after_message_thread_list' ); ?>
    61 
    62                 <?php do_action( 'bp_before_message_thread_reply' ); ?>
    63 
    64                 <form id="send-reply" action="<?php bp_messages_form_action(); ?>" method="post" class="standard-form">
    65 
    66                         <div class="message-box">
    67 
    68                                 <div class="message-metadata">
    69 
    70                                         <?php do_action( 'bp_before_message_meta' ); ?>
    71 
    72                                         <div class="avatar-box">
    73                                                 <?php bp_loggedin_user_avatar( 'type=thumb&height=30&width=30' ); ?>
    74 
    75                                                 <strong><?php _e( 'Send a Reply', 'buddypress' ); ?></strong>
    76                                         </div>
    77 
    78                                         <?php do_action( 'bp_after_message_meta' ); ?>
    79 
    80                                 </div><!-- .message-metadata -->
    81 
    82                                 <div class="message-content">
    83 
    84                                         <?php do_action( 'bp_before_message_reply_box' ); ?>
    85 
    86                                         <textarea name="content" id="message_content" rows="15" cols="40"></textarea>
    87 
    88                                         <?php do_action( 'bp_after_message_reply_box' ); ?>
    89 
    90                                         <div class="submit">
    91                                                 <input type="submit" name="send" value="<?php _e( 'Send Reply', 'buddypress' ); ?>" id="send_reply_button"/>
    92                                         </div>
    93 
    94                                         <input type="hidden" id="thread_id" name="thread_id" value="<?php bp_the_thread_id(); ?>" />
    95                                         <input type="hidden" id="messages_order" name="messages_order" value="<?php bp_thread_messages_order(); ?>" />
    96                                         <?php wp_nonce_field( 'messages_send_message', 'send_message_nonce' ); ?>
    97 
    98                                 </div><!-- .message-content -->
    99 
    100                         </div><!-- .message-box -->
    101 
    102                 </form><!-- #send-reply -->
    103 
    104                 <?php do_action( 'bp_after_message_thread_reply' ); ?>
    105 
    106         <?php endif; ?>
    107 
    108         <?php do_action( 'bp_after_message_thread_content' ); ?>
    109 
    110 </div>
    111  No newline at end of file
  • deleted file bp-themes/bp-legacy/buddypress/members/single/plugins.php

    deleted file mode 100644
    + -  
    1 <div id="buddypress">
    2 
    3         <?php do_action( 'bp_before_member_plugin_template' ); ?>
    4 
    5         <div id="item-header">
    6 
    7                 <?php bp_get_template_part( 'members/single/member-header' ) ?>
    8 
    9         </div><!-- #item-header -->
    10 
    11         <div id="item-nav">
    12                 <div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
    13                         <ul>
    14 
    15                                 <?php bp_get_displayed_user_nav(); ?>
    16 
    17                                 <?php do_action( 'bp_member_options_nav' ); ?>
    18 
    19                         </ul>
    20                 </div>
    21         </div><!-- #item-nav -->
    22 
    23         <div id="item-body" role="main">
    24 
    25                 <?php do_action( 'bp_before_member_body' ); ?>
    26 
    27                 <div class="item-list-tabs no-ajax" id="subnav">
    28                         <ul>
    29 
    30                                 <?php bp_get_options_nav(); ?>
    31 
    32                                 <?php do_action( 'bp_member_plugin_options_nav' ); ?>
    33 
    34                         </ul>
    35                 </div><!-- .item-list-tabs -->
    36 
    37                 <h3><?php do_action( 'bp_template_title' ); ?></h3>
    38 
    39                 <?php do_action( 'bp_template_content' ); ?>
    40 
    41                 <?php do_action( 'bp_after_member_body' ); ?>
    42 
    43         </div><!-- #item-body -->
    44 
    45         <?php do_action( 'bp_after_member_plugin_template' ); ?>
    46 
    47 </div><!-- #buddypress -->
  • deleted file bp-themes/bp-legacy/buddypress/members/single/profile.php

    deleted file mode 100644
    + -  
    1 <?php
    2 
    3 /**
    4  * BuddyPress - Users Profile
    5  *
    6  * @package BuddyPress
    7  * @subpackage bp-legacy
    8  */
    9 
    10 ?>
    11 
    12 <?php if ( bp_is_my_profile() ) : ?>
    13 
    14         <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    15                 <ul>
    16 
    17                         <?php bp_get_options_nav(); ?>
    18 
    19                 </ul>
    20         </div><!-- .item-list-tabs -->
    21 
    22 <?php endif; ?>
    23 
    24 <?php do_action( 'bp_before_profile_content' ); ?>
    25 
    26 <div class="profile" role="main">
    27 
    28         <?php
    29                 // Profile Edit
    30                 if ( bp_is_current_action( 'edit' ) )
    31                         bp_get_template_part( 'members/single/profile/edit' );
    32 
    33                 // Change Avatar
    34                 elseif ( bp_is_current_action( 'change-avatar' ) )
    35                         bp_get_template_part( 'members/single/profile/change-avatar' );
    36 
    37                 // Display XProfile
    38                 elseif ( bp_is_active( 'xprofile' ) )
    39                         bp_get_template_part( 'members/single/profile/profile-loop' );
    40 
    41                 // Display WordPress profile (fallback)
    42                 else
    43                         bp_get_template_part( 'members/single/profile/profile-wp' )
    44         ?>
    45 
    46 </div><!-- .profile -->
    47 
    48 <?php do_action( 'bp_after_profile_content' ); ?>
    49  No newline at end of file
  • deleted file bp-themes/bp-legacy/buddypress/members/single/profile/change-avatar.php

    deleted file mode 100644
    + -  
    1 <h4><?php _e( 'Change Avatar', 'buddypress' ); ?></h4>
    2 
    3 <?php do_action( 'bp_before_profile_avatar_upload_content' ); ?>
    4 
    5 <?php if ( !(int)bp_get_option( 'bp-disable-avatar-uploads' ) ) : ?>
    6 
    7         <p><?php _e( 'Your avatar will be used on your profile and throughout the site. If there is a <a href="http://gravatar.com">Gravatar</a> associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress' ); ?></p>
    8 
    9         <form action="" method="post" id="avatar-upload-form" class="standard-form" enctype="multipart/form-data">
    10 
    11                 <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?>
    12 
    13                         <?php wp_nonce_field( 'bp_avatar_upload' ); ?>
    14                         <p><?php _e( 'Click below to select a JPG, GIF or PNG format photo from your computer and then click \'Upload Image\' to proceed.', 'buddypress' ); ?></p>
    15 
    16                         <p id="avatar-upload">
    17                                 <input type="file" name="file" id="file" />
    18                                 <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ); ?>" />
    19                                 <input type="hidden" name="action" id="action" value="bp_avatar_upload" />
    20                         </p>
    21 
    22                         <?php if ( bp_get_user_has_avatar() ) : ?>
    23                                 <p><?php _e( "If you'd like to delete your current avatar but not upload a new one, please use the delete avatar button.", 'buddypress' ); ?></p>
    24                                 <p><a class="button edit" href="<?php bp_avatar_delete_link(); ?>" title="<?php _e( 'Delete Avatar', 'buddypress' ); ?>"><?php _e( 'Delete My Avatar', 'buddypress' ); ?></a></p>
    25                         <?php endif; ?>
    26 
    27                 <?php endif; ?>
    28 
    29                 <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>
    30 
    31                         <h5><?php _e( 'Crop Your New Avatar', 'buddypress' ); ?></h5>
    32 
    33                         <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ); ?>" />
    34 
    35                         <div id="avatar-crop-pane">
    36                                 <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ); ?>" />
    37                         </div>
    38 
    39                         <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ); ?>" />
    40 
    41                         <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src(); ?>" />
    42                         <input type="hidden" id="x" name="x" />
    43                         <input type="hidden" id="y" name="y" />
    44                         <input type="hidden" id="w" name="w" />
    45                         <input type="hidden" id="h" name="h" />
    46 
    47                         <?php wp_nonce_field( 'bp_avatar_cropstore' ); ?>
    48 
    49                 <?php endif; ?>
    50 
    51         </form>
    52 
    53 <?php else : ?>
    54 
    55         <p><?php _e( 'Your avatar will be used on your profile and throughout the site. To change your avatar, please create an account with <a href="http://gravatar.com">Gravatar</a> using the same email address as you used to register with this site.', 'buddypress' ); ?></p>
    56 
    57 <?php endif; ?>
    58 
    59 <?php do_action( 'bp_after_profile_avatar_upload_content' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/members/single/profile/edit.php

    deleted file mode 100644
    + -  
    1 <?php do_action( 'bp_before_profile_edit_content' );
    2 
    3 if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) :
    4         while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    5 
    6 <form action="<?php bp_the_profile_group_edit_form_action(); ?>" method="post" id="profile-edit-form" class="standard-form <?php bp_the_profile_group_slug(); ?>">
    7 
    8         <?php do_action( 'bp_before_profile_field_content' ); ?>
    9 
    10                 <h4><?php printf( __( "Editing '%s' Profile Group", "buddypress" ), bp_get_the_profile_group_name() ); ?></h4>
    11 
    12                 <ul class="button-nav">
    13 
    14                         <?php bp_profile_group_tabs(); ?>
    15 
    16                 </ul>
    17 
    18                 <div class="clear"></div>
    19 
    20                 <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    21 
    22                         <div<?php bp_field_css_class( 'editfield' ); ?>>
    23 
    24                                 <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>
    25 
    26                                         <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    27                                         <input type="text" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" value="<?php bp_the_profile_field_edit_value(); ?>" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>/>
    28 
    29                                 <?php endif; ?>
    30 
    31                                 <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?>
    32 
    33                                         <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    34                                         <textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>><?php bp_the_profile_field_edit_value(); ?></textarea>
    35 
    36                                 <?php endif; ?>
    37 
    38                                 <?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?>
    39 
    40                                         <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    41                                         <select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>>
    42                                                 <?php bp_the_profile_field_options(); ?>
    43                                         </select>
    44 
    45                                 <?php endif; ?>
    46 
    47                                 <?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?>
    48 
    49                                         <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    50                                         <select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" multiple="multiple" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>>
    51 
    52                                                 <?php bp_the_profile_field_options(); ?>
    53 
    54                                         </select>
    55 
    56                                         <?php if ( !bp_get_the_profile_field_is_required() ) : ?>
    57 
    58                                                 <a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name(); ?>' );"><?php _e( 'Clear', 'buddypress' ); ?></a>
    59 
    60                                         <?php endif; ?>
    61 
    62                                 <?php endif; ?>
    63 
    64                                 <?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?>
    65 
    66                                         <div class="radio">
    67                                                 <span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span>
    68 
    69                                                 <?php bp_the_profile_field_options(); ?>
    70 
    71                                                 <?php if ( !bp_get_the_profile_field_is_required() ) : ?>
    72 
    73                                                         <a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name(); ?>' );"><?php _e( 'Clear', 'buddypress' ); ?></a>
    74 
    75                                                 <?php endif; ?>
    76                                         </div>
    77 
    78                                 <?php endif; ?>
    79 
    80                                 <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?>
    81 
    82                                         <div class="checkbox">
    83                                                 <span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span>
    84 
    85                                                 <?php bp_the_profile_field_options(); ?>
    86                                         </div>
    87 
    88                                 <?php endif; ?>
    89 
    90                                 <?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?>
    91 
    92                                         <div class="datebox">
    93                                                 <label for="<?php bp_the_profile_field_input_name(); ?>_day"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    94 
    95                                                 <select name="<?php bp_the_profile_field_input_name(); ?>_day" id="<?php bp_the_profile_field_input_name(); ?>_day" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>>
    96 
    97                                                         <?php bp_the_profile_field_options( 'type=day' ); ?>
    98 
    99                                                 </select>
    100 
    101                                                 <select name="<?php bp_the_profile_field_input_name(); ?>_month" id="<?php bp_the_profile_field_input_name(); ?>_month" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>>
    102 
    103                                                         <?php bp_the_profile_field_options( 'type=month' ); ?>
    104 
    105                                                 </select>
    106 
    107                                                 <select name="<?php bp_the_profile_field_input_name(); ?>_year" id="<?php bp_the_profile_field_input_name(); ?>_year" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>>
    108 
    109                                                         <?php bp_the_profile_field_options( 'type=year' ); ?>
    110 
    111                                                 </select>
    112                                         </div>
    113 
    114                                 <?php endif; ?>
    115 
    116                                 <?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
    117                                         <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    118                                                 <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _e( 'Change', 'buddypress' ); ?></a>
    119                                         </p>
    120 
    121                                         <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">
    122                                                 <fieldset>
    123                                                         <legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend>
    124 
    125                                                         <?php bp_profile_visibility_radio_buttons() ?>
    126 
    127                                                 </fieldset>
    128                                                 <a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a>
    129                                         </div>
    130                                 <?php else : ?>
    131                                         <div class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    132                                                 <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?>
    133                                         </div>
    134                                 <?php endif ?>
    135 
    136                                 <?php do_action( 'bp_custom_profile_edit_fields' ); ?>
    137 
    138                                 <p class="description"><?php bp_the_profile_field_description(); ?></p>
    139                         </div>
    140 
    141                 <?php endwhile; ?>
    142 
    143         <?php do_action( 'bp_after_profile_field_content' ); ?>
    144 
    145         <div class="submit">
    146                 <input type="submit" name="profile-group-edit-submit" id="profile-group-edit-submit" value="<?php _e( 'Save Changes', 'buddypress' ); ?> " />
    147         </div>
    148 
    149         <input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_group_field_ids(); ?>" />
    150 
    151         <?php wp_nonce_field( 'bp_xprofile_edit' ); ?>
    152 
    153 </form>
    154 
    155 <?php endwhile; endif; ?>
    156 
    157 <?php do_action( 'bp_after_profile_edit_content' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/members/single/profile/profile-loop.php

    deleted file mode 100644
    + -  
    1 <?php do_action( 'bp_before_profile_loop_content' ); ?>
    2 
    3 <?php if ( bp_has_profile() ) : ?>
    4 
    5         <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    6 
    7                 <?php if ( bp_profile_group_has_fields() ) : ?>
    8 
    9                         <?php do_action( 'bp_before_profile_field_content' ); ?>
    10 
    11                         <div class="bp-widget <?php bp_the_profile_group_slug(); ?>">
    12 
    13                                 <h4><?php bp_the_profile_group_name(); ?></h4>
    14 
    15                                 <table class="profile-fields">
    16 
    17                                         <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    18 
    19                                                 <?php if ( bp_field_has_data() ) : ?>
    20 
    21                                                         <tr<?php bp_field_css_class(); ?>>
    22 
    23                                                                 <td class="label"><?php bp_the_profile_field_name(); ?></td>
    24 
    25                                                                 <td class="data"><?php bp_the_profile_field_value(); ?></td>
    26 
    27                                                         </tr>
    28 
    29                                                 <?php endif; ?>
    30 
    31                                                 <?php do_action( 'bp_profile_field_item' ); ?>
    32 
    33                                         <?php endwhile; ?>
    34 
    35                                 </table>
    36                         </div>
    37 
    38                         <?php do_action( 'bp_after_profile_field_content' ); ?>
    39 
    40                 <?php endif; ?>
    41 
    42         <?php endwhile; ?>
    43 
    44         <?php do_action( 'bp_profile_field_buttons' ); ?>
    45 
    46 <?php endif; ?>
    47 
    48 <?php do_action( 'bp_after_profile_loop_content' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/members/single/profile/profile-wp.php

    deleted file mode 100644
    + -  
    1 <?php do_action( 'bp_before_profile_loop_content' ); ?>
    2 
    3 <?php $ud = get_userdata( bp_displayed_user_id() ); ?>
    4 
    5 <?php do_action( 'bp_before_profile_field_content' ); ?>
    6 
    7         <div class="bp-widget wp-profile">
    8                 <h4><?php bp_is_my_profile() ? _e( 'My Profile', 'buddypress' ) : printf( __( "%s's Profile", 'buddypress' ), bp_get_displayed_user_fullname() ); ?></h4>
    9 
    10                 <table class="wp-profile-fields">
    11 
    12                         <?php if ( $ud->display_name ) : ?>
    13 
    14                                 <tr id="wp_displayname">
    15                                         <td class="label"><?php _e( 'Name', 'buddypress' ); ?></td>
    16                                         <td class="data"><?php echo $ud->display_name; ?></td>
    17                                 </tr>
    18 
    19                         <?php endif; ?>
    20 
    21                         <?php if ( $ud->user_description ) : ?>
    22 
    23                                 <tr id="wp_desc">
    24                                         <td class="label"><?php _e( 'About Me', 'buddypress' ); ?></td>
    25                                         <td class="data"><?php echo $ud->user_description; ?></td>
    26                                 </tr>
    27 
    28                         <?php endif; ?>
    29 
    30                         <?php if ( $ud->user_url ) : ?>
    31 
    32                                 <tr id="wp_website">
    33                                         <td class="label"><?php _e( 'Website', 'buddypress' ); ?></td>
    34                                         <td class="data"><?php echo make_clickable( $ud->user_url ); ?></td>
    35                                 </tr>
    36 
    37                         <?php endif; ?>
    38 
    39                         <?php if ( $ud->jabber ) : ?>
    40 
    41                                 <tr id="wp_jabber">
    42                                         <td class="label"><?php _e( 'Jabber', 'buddypress' ); ?></td>
    43                                         <td class="data"><?php echo $ud->jabber; ?></td>
    44                                 </tr>
    45 
    46                         <?php endif; ?>
    47 
    48                         <?php if ( $ud->aim ) : ?>
    49 
    50                                 <tr id="wp_aim">
    51                                         <td class="label"><?php _e( 'AOL Messenger', 'buddypress' ); ?></td>
    52                                         <td class="data"><?php echo $ud->aim; ?></td>
    53                                 </tr>
    54 
    55                         <?php endif; ?>
    56 
    57                         <?php if ( $ud->yim ) : ?>
    58 
    59                                 <tr id="wp_yim">
    60                                         <td class="label"><?php _e( 'Yahoo Messenger', 'buddypress' ); ?></td>
    61                                         <td class="data"><?php echo $ud->yim; ?></td>
    62                                 </tr>
    63 
    64                         <?php endif; ?>
    65 
    66                 </table>
    67         </div>
    68 
    69 <?php do_action( 'bp_after_profile_field_content' ); ?>
    70 
    71 <?php do_action( 'bp_profile_field_buttons' ); ?>
    72 
    73 <?php do_action( 'bp_after_profile_loop_content' ); ?>
  • deleted file bp-themes/bp-legacy/buddypress/members/single/settings.php

    deleted file mode 100644
    + -  
    1 <?php
    2 
    3 /**
    4  * BuddyPress - Users Settings
    5  *
    6  * @package BuddyPress
    7  * @subpackage bp-legacy
    8  */
    9 
    10 ?>
    11 
    12 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    13         <ul>
    14                 <?php if ( bp_is_my_profile() ) : ?>
    15                
    16                         <?php bp_get_options_nav(); ?>
    17                
    18                 <?php endif; ?>
    19         </ul>
    20 </div>
    21 
    22 <?php
    23 
    24 switch ( bp_current_action() ) :
    25         case 'notifications'  :
    26                 bp_get_template_part( 'members/single/settings/notifications'  );
    27                 break;
    28         case 'capabilities'   :
    29                 bp_get_template_part( 'members/single/settings/capabilities'   );
    30                 break;
    31         case 'delete-account' :
    32                 bp_get_template_part( 'members/single/settings/delete-account' );
    33                 break;
    34         case 'general'        :
    35                 bp_get_template_part( 'members/single/settings/general'        );
    36                 break;
    37         default:
    38                 bp_get_template_part( 'members/single/plugins'                 );
    39                 break;
    40 endswitch;;
  • deleted file bp-themes/bp-legacy/buddypress/members/single/settings/capabilities.php

    deleted file mode 100644
    + -  
    1 <div id="buddypress">
    2 
    3         <?php do_action( 'bp_before_member_settings_template' ); ?>
    4 
    5         <div id="item-body" role="main">
    6 
    7                 <?php do_action( 'bp_before_member_body' ); ?>
    8 
    9                 <form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/capabilities/'; ?>" name="account-capabilities-form" id="account-capabilities-form" class="standard-form" method="post">
    10 
    11                         <?php do_action( 'bp_members_capabilities_account_before_submit' ); ?>
    12 
    13                         <label>
    14                                 <input type="checkbox" name="user-spammer" id="user-spammer" value="1" <?php checked( bp_is_user_spammer( bp_displayed_user_id() ) ); ?> />
    15                                  <?php _e( 'This user is a spammer.', 'buddypress' ); ?>
    16                         </label>
    17 
    18                         <div class="submit">
    19                                 <input type="submit" value="<?php _e( 'Save', 'buddypress' ); ?>" id="capabilities-submit" name="capabilities-submit" />
    20                         </div>
    21 
    22                         <?php do_action( 'bp_members_capabilities_account_after_submit' ); ?>
    23 
    24                         <?php wp_nonce_field( 'capabilities' ); ?>
    25 
    26                 </form>
    27 
    28                 <?php do_action( 'bp_after_member_body' ); ?>
    29 
    30         </div><!-- #item-body -->
    31 
    32         <?php do_action( 'bp_after_member_settings_template' ); ?>
    33 
    34 </div><!-- #buddypress -->
  • deleted file bp-themes/bp-legacy/buddypress/members/single/settings/delete-account.php

    deleted file mode 100644
    + -  
    1 <div id="buddypress">
    2 
    3         <?php do_action( 'bp_before_member_settings_template' ); ?>
    4 
    5         <div id="item-body" role="main">
    6 
    7                 <?php do_action( 'bp_before_member_body' ); ?>
    8 
    9                 <div id="message" class="info">
    10 
    11                         <?php if ( bp_is_my_profile() ) : ?>
    12 
    13                                 <p><?php _e( 'Deleting your account will delete all of the content you have created. It will be completely irrecoverable.', 'buddypress' ); ?></p>
    14 
    15                         <?php else : ?>
    16 
    17                                 <p><?php _e( 'Deleting this account will delete all of the content it has created. It will be completely irrecoverable.', 'buddypress' ); ?></p>
    18 
    19                         <?php endif; ?>
    20 
    21                 </div>
    22 
    23                 <form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/delete-account'; ?>" name="account-delete-form" id="account-delete-form" class="standard-form" method="post">
    24 
    25                         <?php do_action( 'bp_members_delete_account_before_submit' ); ?>
    26 
    27                         <label>
    28                                 <input type="checkbox" name="delete-account-understand" id="delete-account-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-account-button').disabled = ''; } else { document.getElementById('delete-account-button').disabled = 'disabled'; }" />
    29                                  <?php _e( 'I understand the consequences.', 'buddypress' ); ?>
    30                         </label>
    31 
    32                         <div class="submit">
    33                                 <input type="submit" disabled="disabled" value="<?php _e( 'Delete Account', 'buddypress' ); ?>" id="delete-account-button" name="delete-account-button" />
    34                         </div>
    35 
    36                         <?php do_action( 'bp_members_delete_account_after_submit' ); ?>
    37 
    38                         <?php wp_nonce_field( 'delete-account' ); ?>
    39 
    40                 </form>
    41 
    42                 <?php do_action( 'bp_after_member_body' ); ?>
    43 
    44         </div><!-- #item-body -->
    45 
    46         <?php do_action( 'bp_after_member_settings_template' ); ?>
    47 
    48 </div><!-- #buddypress -->
    49  No newline at end of file
  • deleted file bp-themes/bp-legacy/buddypress/members/single/settings/general.php

    deleted file mode 100644
    + -  
    1 <div id="buddypress">
    2 
    3         <?php do_action( 'bp_before_member_settings_template' ); ?>
    4 
    5         <div id="item-body" role="main">
    6 
    7                 <?php do_action( 'bp_before_member_body' ); ?>
    8 
    9                 <?php do_action( 'bp_template_content' ); ?>
    10 
    11                 <form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/general'; ?>" method="post" class="standard-form" id="settings-form">
    12 
    13                         <?php if ( !is_super_admin() ) : ?>
    14 
    15                                 <label for="pwd"><?php _e( 'Current Password <span>(required to update email or change current password)</span>', 'buddypress' ); ?></label>
    16                                 <input type="password" name="pwd" id="pwd" size="16" value="" class="settings-input small" /> &nbsp;<a href="<?php echo site_url( add_query_arg( array( 'action' => 'lostpassword' ), 'wp-login.php' ), 'login' ); ?>" title="<?php _e( 'Password Lost and Found', 'buddypress' ); ?>"><?php _e( 'Lost your password?', 'buddypress' ); ?></a>
    17 
    18                         <?php endif; ?>
    19 
    20                         <label for="email"><?php _e( 'Account Email', 'buddypress' ); ?></label>
    21                         <input type="text" name="email" id="email" value="<?php echo bp_get_displayed_user_email(); ?>" class="settings-input" />
    22 
    23                         <label for="pass1"><?php _e( 'Change Password <span>(leave blank for no change)</span>', 'buddypress' ); ?></label>
    24                         <input type="password" name="pass1" id="pass1" size="16" value="" class="settings-input small" /> &nbsp;<?php _e( 'New Password', 'buddypress' ); ?><br />
    25                         <input type="password" name="pass2" id="pass2" size="16" value="" class="settings-input small" /> &nbsp;<?php _e( 'Repeat New Password', 'buddypress' ); ?>
    26 
    27                         <?php do_action( 'bp_core_general_settings_before_submit' ); ?>
    28 
    29                         <div class="submit">
    30                                 <input type="submit" name="submit" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" id="submit" class="auto" />
    31                         </div>
    32 
    33                         <?php do_action( 'bp_core_general_settings_after_submit' ); ?>
    34 
    35                         <?php wp_nonce_field( 'bp_settings_general' ); ?>
    36 
    37                 </form>
    38 
    39                 <?php do_action( 'bp_after_member_body' ); ?>
    40 
    41         </div><!-- #item-body -->
    42 
    43         <?php do_action( 'bp_after_member_settings_template' ); ?>
    44 
    45 </div><!-- #buddypress -->
    46  No newline at end of file
  • deleted file bp-themes/bp-legacy/buddypress/members/single/settings/notifications.php

    deleted file mode 100644
    + -  
    1 <div id="buddypress">
    2 
    3         <?php do_action( 'bp_before_member_settings_template' ); ?>
    4 
    5         <div id="item-body" role="main">
    6 
    7                 <?php do_action( 'bp_before_member_body' ); ?>
    8 
    9                 <?php do_action( 'bp_template_content' ); ?>
    10 
    11                 <form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/notifications'; ?>" method="post" class="standard-form" id="settings-form">
    12                         <p><?php _e( 'Send a notification by email when:', 'buddypress' ); ?></p>
    13 
    14                         <?php do_action( 'bp_notification_settings' ); ?>
    15 
    16                         <?php do_action( 'bp_members_notification_settings_before_submit' ); ?>
    17 
    18                         <div class="submit">
    19                                 <input type="submit" name="submit" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" id="submit" class="auto" />
    20                         </div>
    21 
    22                         <?php do_action( 'bp_members_notification_settings_after_submit' ); ?>
    23 
    24                         <?php wp_nonce_field('bp_settings_notifications' ); ?>
    25 
    26                 </form>
    27 
    28                 <?php do_action( 'bp_after_member_body' ); ?>
    29 
    30         </div><!-- #item-body -->
    31 
    32         <?php do_action( 'bp_after_member_settings_template' ); ?>
    33 
    34 </div><!-- #buddypress -->
    35  No newline at end of file
  • deleted file bp-themes/bp-legacy/css/buddypress.css

    deleted file mode 100644
    + -  
    1 /*--------------------------------------------------------------
    2 Hello, this is the BuddyPress Default theme stylesheet.
    3 
    4 ----------------------------------------------------------------
    5 >>> TABLE OF CONTENTS:
    6 ----------------------------------------------------------------
    7 4.0 - Navigation
    8         4.1 - Pagination
    9 5.0 - WordPress
    10         5.1 - Alignments
    11         5.2 - Comments
    12         5.3 - Gallery
    13         5.4 - Images
    14         5.5 - Posts
    15 6.0 - BuddyPress
    16         6.1 - Activity
    17                 6.1.1 - Activity Listing
    18                 6.1.2 - Activity Comments
    19         6.2 - Toolbar
    20         6.3 - Directories - Members, Groups, Blogs, Forums
    21         6.4 - Error / Success Messages
    22         6.5 - Forms
    23         6.6 - Ajax Loading
    24         6.7 - Topics and Tables - Forums and General
    25         6.8 - Headers, Lists and Tabs - Activity, Groups, Blogs, Forums
    26         6.9 - Private Messaging Threads
    27         6.10 - Extended Profiles
    28 --------------------------------------------------------------*/
    29 
    30 /*--------------------------------------------------------------
    31 4.1 - Pagination
    32 --------------------------------------------------------------*/
    33 #buddypress div.pagination {
    34         background: #f4f4f4;
    35         border: none;
    36         color: #888;
    37         font-size: 11px;
    38         margin: -20px 0 20px 0;
    39         position: relative;
    40         display: block;
    41         float: left;
    42         width: 100%;
    43         padding: 10px 0;
    44 }
    45 #buddypress div.pagination .pag-count {
    46         float: left;
    47         margin-left: 10px;
    48 }
    49 #buddypress div.pagination .pagination-links {
    50         float: right;
    51         margin-right: 10px;
    52 }
    53 #buddypress div.pagination .pagination-links span,
    54 #buddypress div.pagination .pagination-links a {
    55         font-size: 12px;
    56         padding: 0 5px;
    57 }
    58 #buddypress div.pagination .pagination-links a:hover {
    59         font-weight: bold;
    60 }
    61 #buddypress noscript div.pagination {
    62         margin-bottom: 15px;
    63 }
    64 #buddypress div#pag-bottom {
    65         margin-top: -1px;
    66 }
    67 #buddypress #nav-above {
    68         display: none;
    69 }
    70 #buddypress .paged #nav-above {
    71         display: block;
    72 }
    73 
    74 /*--------------------------------------------------------------
    75 5.4 - Images
    76 --------------------------------------------------------------*/
    77 #buddypress img.wp-smiley {
    78         border: none !important;
    79         clear: none !important;
    80         float: none !important;
    81         margin: 0 !important;
    82         padding: 0 !important;
    83 }
    84 
    85 /*--------------------------------------------------------------
    86 6.0 - BuddyPress
    87 --------------------------------------------------------------*/
    88 /*--------------------------------------------------------------
    89 6.1 - Activity
    90 --------------------------------------------------------------*/
    91 #buddypress #activity-stream {
    92         margin-top: -5px;
    93 }
    94 #buddypress #item-body form#whats-new-form {
    95         border-bottom: 1px solid #ddd;
    96         margin: 20px 0 10px;
    97         padding: 0 0 20px;
    98 }
    99 #buddypress .home-page form#whats-new-form {
    100         border-bottom: none;
    101         padding-bottom: 0;
    102 }
    103 #buddypress form#whats-new-form #whats-new-avatar {
    104         float: left;
    105 }
    106 #buddypress form#whats-new-form #whats-new-content {
    107         margin-left: 55px;
    108         padding: 0 0 20px 20px;
    109 }
    110 #buddypress form#whats-new-form textarea {
    111         background: #fff;
    112         border: 1px inset #ccc;
    113         -moz-border-radius: 3px;
    114         -webkit-border-radius: 3px;
    115         border-radius: 3px;
    116         color: #555;
    117         font-family: inherit;
    118         font-size: 14px;
    119         height: 20px;
    120         padding: 6px;
    121         width: 98%;
    122 }
    123 body.no-js #buddypress form#whats-new-form textarea {
    124         height: 50px;
    125 }
    126 #buddypress form#whats-new-form #whats-new-options select {
    127         max-width: 200px;
    128         margin-top: 12px;
    129 }
    130 #buddypress form#whats-new-form #whats-new-submit {
    131         float: right;
    132         margin-top: 12px;
    133 }
    134 #buddypress #whats-new-options {
    135         overflow: auto;
    136         height: 0;
    137 }
    138 body.no-js #buddypress #whats-new-options {
    139         height: auto;
    140 }
    141 #buddypress #whats-new:focus {
    142         border-color: rgba(31, 179, 221, 0.9) !important;
    143         outline-color: rgba(31, 179, 221, 0.9);
    144         box-shadow: 0 0 7px         rgba(31, 179, 221, 0.7);
    145         -moz-box-shadow: 0 0 7px    rgba(31, 179, 221, 0.7);
    146         -webkit-box-shadow: 0 0 7px rgba(31, 179, 221, 0.7);
    147 }
    148 
    149 /*--------------------------------------------------------------
    150 6.1.1 - Activity Listing
    151 --------------------------------------------------------------*/
    152 #buddypress ul.activity-list li {
    153         overflow: hidden;
    154         padding: 15px 0 0;
    155 }
    156 #buddypress .activity-list .activity-avatar {
    157         float: left;
    158 }
    159 #buddypress ul.activity-list > li:first-child {
    160         padding-top: 5px;
    161 }
    162 #buddypress ul.item-list.activity-list li.has-comments {
    163         padding-bottom: 15px;
    164 }
    165 body.activity-permalink #buddypress ul.activity-list li.has-comments {
    166         padding-bottom: 0;
    167 }
    168 #buddypress .activity-list li.mini {
    169         font-size: 11px;
    170         min-height: 35px;
    171         padding: 15px 0 0 0;
    172         position: relative;
    173 }
    174 #buddypress .activity-list li.mini .activity-avatar img.avatar,
    175 #buddypress .activity-list li.mini .activity-avatar img.FB_profile_pic {
    176         height: 20px;
    177         margin-left: 30px;
    178         width: 20px;
    179 }
    180 #buddypress .activity-permalink .activity-list li.mini .activity-avatar img.avatar,
    181 #buddypress .activity-permalink .activity-list li.mini .activity-avatar img.FB_profile_pic {
    182         height: auto;
    183         margin-left: 0;
    184         width: auto;
    185 }
    186 body.activity-permalink #buddypress .activity-list > li:first-child {
    187         padding-top: 0;
    188 }
    189 #buddypress .activity-list li .activity-content {
    190         position: relative;
    191 }
    192 #buddypress .activity-list li.mini .activity-content p {
    193         margin: 0;
    194 }
    195 #buddypress .activity-list li.mini .activity-comments {
    196         clear: both;
    197         font-size: 12px;
    198 }
    199 body.activity-permalink #buddypress li.mini .activity-meta {
    200         margin-top: 4px;
    201 }
    202 #buddypress .activity-list li .activity-inreplyto {
    203         color: #888;
    204         font-size: 11px;
    205         margin-left: 5px;
    206         margin-top: 5px;
    207         padding-left: 25px;
    208 }
    209 #buddypress .activity-list li .activity-inreplyto > p {
    210         margin: 0;
    211         display: inline;
    212 }
    213 #buddypress .activity-list li .activity-inreplyto blockquote,
    214 #buddypress .activity-list li .activity-inreplyto div.activity-inner {
    215         background: none;
    216         border: none;
    217         display: inline;
    218         margin: 0;
    219         overflow: hidden;
    220         padding: 0;
    221 }
    222 #buddypress .activity-list .activity-content {
    223         margin-left: 70px;
    224         margin-bottom: 15px;
    225 }
    226 body.activity-permalink #buddypress .activity-list li .activity-content {
    227         background: #fff;
    228         border-bottom: 1px solid #ddd;
    229         border-right: 1px solid #ddd;
    230         border-radius: 4px;
    231         font-size: 16px;
    232         line-height: 150%;
    233         min-height: 35px;
    234         margin-left: 185px;
    235         margin-right: 0;
    236         padding: 15px;
    237 }
    238 body.activity-permalink #buddypress .activity-list li .activity-header > p {
    239         height: 35px;
    240         margin-bottom: 0;
    241         margin-left: -35px;
    242         padding: 5px 0 0 35px;
    243 }
    244 #buddypress .activity-list .activity-content .activity-header,
    245 #buddypress .activity-list .activity-content .comment-header {
    246         color: #888;
    247         font-size: 11px;
    248         line-height: 220%;
    249 }
    250 #buddypress .activity-header {
    251         margin-right: 20px;
    252 }
    253 #buddypress .activity-header a,
    254 #buddypress .comment-meta a,
    255 #buddypress .acomment-meta a {
    256         text-decoration: none;
    257 }
    258 #buddypress .activity-list .activity-content .activity-header img.avatar {
    259         float: none !important;
    260         margin: 0 5px -8px 0 !important;
    261 }
    262 #buddypress a.bp-secondary-action,
    263 #buddypress span.highlight {
    264         font-size: 11px;
    265         padding: 0;
    266         margin-right: 5px;
    267         text-decoration: none;
    268 }
    269 #buddypress .activity-list .activity-content .activity-inner,
    270 #buddypress .activity-list .activity-content blockquote {
    271         margin: 10px 10px 5px 0;
    272         overflow: hidden;
    273 }
    274 #buddypress .activity-list li.new_forum_post .activity-content .activity-inner,
    275 #buddypress .activity-list li.new_forum_topic .activity-content .activity-inner {
    276         border-left: 2px solid #EAEAEA;
    277         margin-left: 5px;
    278         padding-left: 10px;
    279 }
    280 body.activity-permalink #buddypress .activity-content .activity-inner,
    281 body.activity-permalink #buddypress .activity-content blockquote {
    282         margin-left: 0;
    283         margin-top: 5px;
    284 }
    285 #buddypress .activity-inner > p {
    286         word-wrap: break-word;
    287 }
    288 #buddypress .activity-inner > .activity-inner {
    289         margin: 0 !important;
    290 }
    291 #buddypress .activity-inner > blockquote {
    292         margin: 0 !important;
    293 }
    294 #buddypress .activity-list .activity-content img.thumbnail {
    295         border: 2px solid #eee;
    296         float: left;
    297         margin: 0 10px 5px 0;
    298 }
    299 #buddypress .activity-read-more {
    300         margin-left: 1em;
    301         white-space: nowrap;
    302 }
    303 #buddypress .activity-list li.load-more {
    304         background: #f0f0f0 !important;
    305         border-right: 1px solid #ddd;
    306         border-bottom: 1px solid #ddd;
    307         -moz-border-radius: 4px;
    308         -webkit-border-radius: 4px;
    309         border-radius: 4px;
    310         font-size: 1.2em;
    311         margin: 15px 0 !important;
    312         padding: 10px 15px !important;
    313         text-align: center;
    314 }
    315 #buddypress .activity-list li.load-more a {
    316         color: #4D4D4D;
    317 }
    318 
    319 
    320 /*--------------------------------------------------------------
    321 6.1.2 - Activity Comments
    322 --------------------------------------------------------------*/
    323 #buddypress div.activity-meta {
    324         margin: 18px 0;
    325 }
    326 body.activity-permalink #buddypress div.activity-meta {
    327         margin-bottom: 6px;
    328 }
    329 #buddypress div.activity-meta a {
    330         font: normal 11px/20px Arial, Tahoma, Verdana, sans-serif;
    331         padding: 4px 8px;
    332 }
    333 #buddypress a.activity-time-since {
    334         color: #aaa;
    335         text-decoration: none;
    336 }
    337 #buddypress a.activity-time-since:hover {
    338         color: #888;
    339         text-decoration: underline;
    340 }
    341 #buddypress a.bp-primary-action,
    342 #buddypress #reply-title small a {
    343         font-size: 11px;
    344         margin-right: 5px;
    345         text-decoration: none;
    346 }
    347 #buddypress a.bp-primary-action span,
    348 #buddypress #reply-title small a span {
    349         background: #999;
    350         border-radius: 3px;
    351         color: #fff;
    352         font-size: 90%;
    353         margin-left: 2px;
    354         padding: 0 5px;
    355 }
    356 #buddypress a.bp-primary-action:hover span,
    357 #buddypress #reply-title small a:hover span {
    358         background: #555;
    359         color: #fff;
    360 }
    361 #buddypress div.activity-comments {
    362         margin: 0 0 0 70px;
    363         overflow: hidden; /* IE fix */
    364         position: relative;
    365         width: auto;
    366         clear: both;
    367 }
    368 body.activity-permalink #buddypress div.activity-comments {
    369         background: none;
    370         margin-left: 185px;
    371         width: auto;
    372 }
    373 #buddypress div.activity-comments > ul {
    374         background: #f5f5f5;
    375         border-radius: 4px;
    376         padding: 0 0 0 10px;
    377 }
    378 #buddypress div.activity-comments ul,
    379 #buddypress div.activity-comments ul li {
    380         border: none;
    381         list-style: none;
    382 }
    383 #buddypress div.activity-comments ul {
    384         clear: both;
    385 }
    386 #buddypress div.activity-comments ul li {
    387         border-top: 2px solid #fff;
    388         padding: 10px 0 0;
    389 }
    390 body.activity-permalink #buddypress .activity-list li.mini .activity-comments {
    391         clear: none;
    392         margin-top: 0;
    393 }
    394 body.activity-permalink #buddypress div.activity-comments ul li {
    395         border-width: 1px;
    396         padding: 10px 0 0 0;
    397 }
    398 #buddypress div.activity-comments > ul > li:first-child {
    399         border-top: none;
    400 }
    401 #buddypress div.activity-comments ul li:last-child {
    402         margin-bottom: 0;
    403 }
    404 #buddypress div.activity-comments ul li > ul {
    405         margin-left: 30px;
    406         margin-top: 0;
    407         padding-left: 10px;
    408 }
    409 body.activity-permalink #buddypress div.activity-comments ul li > ul {
    410         margin-top: 10px;
    411 }
    412 body.activity-permalink #buddypress div.activity-comments > ul {
    413         padding: 0 10px 0 15px;
    414 }
    415 #buddypress div.activity-comments div.acomment-avatar img {
    416         border-width: 2px !important;
    417         float: left;
    418         height: 25px;
    419         margin-right: 10px;
    420         width: 25px;
    421 }
    422 #buddypress div.activity-comments div.acomment-content {
    423         font-size: 11px;
    424         margin: 5px 0 0 40px;
    425 }
    426 #buddypress div.acomment-content .time-since,
    427 #buddypress div.acomment-content .activity-delete-link,
    428 #buddypress div.acomment-content .comment-header {
    429         display: none;
    430 }
    431 body.activity-permalink #buddypress div.activity-comments div.acomment-content {
    432         font-size: 14px;
    433 }
    434 #buddypress div.activity-comments div.acomment-meta {
    435         color: #888;
    436         font-size: 11px;
    437 }
    438 #buddypress div.activity-comments form.ac-form {
    439         background: #fafafa;
    440         border: 1px solid #ddd;
    441         border-radius: 4px;
    442         display: none;
    443         margin: 0 0 15px 33px;
    444         padding: 8px;
    445 }
    446 #buddypress div.activity-comments li form.ac-form {
    447         margin-right: 15px;
    448         clear: both;
    449 }
    450 #buddypress div.activity-comments form.root {
    451         margin-left: 0;
    452 }
    453 #buddypress div.activity-comments div#message {
    454         margin-top: 15px;
    455         margin-bottom: 0;
    456 }
    457 #buddypress div.activity-comments form .ac-textarea {
    458         background: #fff;
    459         border: 1px inset #ccc;
    460         border-radius: 3px;
    461         margin-bottom: 10px;
    462         padding: 8px;
    463 }
    464 #buddypress div.activity-comments form textarea {
    465         border: none;
    466         color: #555;
    467         font-family: inherit;
    468         font-size: 11px;
    469         height: 60px;
    470         padding: 0;
    471         width: 100%;
    472 }
    473 #buddypress div.activity-comments form input {
    474         margin-top: 5px;
    475 }
    476 #buddypress div.activity-comments form div.ac-reply-avatar {
    477         float: left;
    478 }
    479 #buddypress div.ac-reply-avatar img {
    480         border: 2px solid #fff !important;
    481 }
    482 #buddypress div.activity-comments form div.ac-reply-content {
    483         color: #888;
    484         font-size: 11px;
    485         margin-left: 50px;
    486         padding-left: 15px;
    487 }
    488 #buddypress .acomment-options {
    489         float: left;
    490         margin: 5px 0 5px 40px;
    491 }
    492 #buddypress .acomment-options a {
    493         color: #999;
    494 }
    495 #buddypress .acomment-options a:hover {
    496         color: inherit;
    497 }
    498 
    499 /*--------------------------------------------------------------
    500 6.3 - Directories - Members, Groups, Blogs, Forums
    501 --------------------------------------------------------------*/
    502 #buddypress div.dir-search {
    503         float: right;
    504         margin: -39px 0 0 0;
    505 }
    506 #buddypress div.dir-search input[type=text] {
    507         font-size: 12px;
    508         padding: 1px 3px;
    509 }
    510 
    511 /*--------------------------------------------------------------
    512 6.4 - Errors / Success Messages
    513 --------------------------------------------------------------*/
    514 #buddypress div#message {
    515         margin: 0 0 15px;
    516 }
    517 #buddypress #message.info {
    518         margin-bottom: 0;
    519 }
    520 #buddypress div#message.updated {
    521         clear: both;
    522 }
    523 #buddypress div#message p {
    524         font-size: 12px;
    525         display: block;
    526         padding: 10px 15px;
    527 }
    528 #buddypress div#message.error p {
    529         background-color: #db1717;
    530         border-color: #a71a1a;
    531         clear: left;
    532         color: #fff;
    533 }
    534 #buddypress div#message.updated p {
    535         background-color: #8ff57a;
    536         border-color: #80cf70;
    537         color: #1a6a00;
    538 }
    539 #buddypress .standard-form#signup_form div div.error {
    540         background: #e41717;
    541         -moz-border-radius: 3px;
    542         -webkit-border-radius: 3px;
    543         border-radius: 3px;
    544         color: #fff;
    545         margin: 0 0 10px 0;
    546         padding: 6px;
    547         width: 90%;
    548 }
    549 #buddypress div.accept,
    550 #buddypress div.reject {
    551         float: left;
    552         margin-left: 10px;
    553 }
    554 #buddypress ul.button-nav li {
    555         float: left;
    556         margin: 0 10px 10px 0;
    557 }
    558 #buddypress ul.button-nav li.current a {
    559         font-weight: bold;
    560 }
    561 
    562 
    563 /*--------------------------------------------------------------
    564 6.5 - Forms
    565 --------------------------------------------------------------*/
    566 #buddypress .standard-form textarea,
    567 #buddypress .standard-form input[type=text],
    568 #buddypress .standard-form select,
    569 #buddypress .standard-form input[type=password],
    570 #buddypress .dir-search input[type=text] {
    571         border: 1px inset #ccc;
    572         border-radius: 3px;
    573         color: #888;
    574         font: inherit;
    575         font-size: 14px;
    576         padding: 6px;
    577 }
    578 #buddypress .standard-form select {
    579         padding: 3px;
    580 }
    581 #buddypress .standard-form input[type=password] {
    582         margin-bottom: 5px;
    583 }
    584 #buddypress .standard-form label,
    585 #buddypress .standard-form span.label {
    586         display: block;
    587         font-weight: bold;
    588         margin: 15px 0 5px 0;
    589 }
    590 #buddypress .standard-form div.checkbox label,
    591 #buddypress .standard-form div.radio label {
    592         color: #888;
    593         font-size: 14px;
    594         font-weight: normal;
    595         margin: 5px 0 0 0;
    596 }
    597 #buddypress .standard-form#sidebar-login-form label {
    598         margin-top: 5px;
    599 }
    600 #buddypress .standard-form input[type=text] {
    601         width: 75%;
    602 }
    603 #buddypress .standard-form#sidebar-login-form input[type=text],
    604 #buddypress .standard-form#sidebar-login-form input[type=password] {
    605         padding: 4px;
    606         width: 95%;
    607 }
    608 #buddypress .standard-form #basic-details-section input[type=password],
    609 #buddypress .standard-form #blog-details-section input#signup_blog_url {
    610         width: 35%;
    611 }
    612 #buddypress .standard-form#signup_form input[type=text],
    613 #buddypress .standard-form#signup_form textarea,
    614 #buddypress .form-allowed-tags,
    615 #buddypress #commentform input[type=text],
    616 #buddypress #commentform textarea {
    617         width: 90%;
    618 }
    619 #buddypress .standard-form#signup_form div.submit {
    620         float: right;
    621 }
    622 #buddypress div#signup-avatar img {
    623         margin: 0 15px 10px 0;
    624 }
    625 #buddypress .standard-form textarea {
    626         width: 75%;
    627         height: 120px;
    628 }
    629 #buddypress .standard-form textarea#message_content {
    630         height: 200px;
    631 }
    632 #buddypress .standard-form#send-reply textarea {
    633         width: 97.5%;
    634 }
    635 #buddypress .standard-form p.description {
    636         color: #888;
    637         font-size: 11px;
    638         margin: 5px 0;
    639 }
    640 #buddypress .standard-form div.submit {
    641         clear: both;
    642         padding: 15px 0 0 0;
    643 }
    644 #buddypress .standard-form p.submit {
    645         margin-bottom: 0;
    646         padding: 15px 0 0 0;
    647 }
    648 #buddypress .standard-form div.submit input {
    649         margin-right: 15px;
    650 }
    651 #buddypress .standard-form div.radio ul {
    652         margin: 10px 0 15px 38px;
    653         list-style: disc;
    654 }
    655 #buddypress .standard-form div.radio ul li {
    656         margin-bottom: 5px;
    657 }
    658 #buddypress .standard-form a.clear-value {
    659         display: block;
    660         margin-top: 5px;
    661         outline: none;
    662 }
    663 #buddypress .standard-form #basic-details-section,
    664 #buddypress .standard-form #blog-details-section,
    665 #buddypress .standard-form #profile-details-section {
    666         float: left;
    667         width: 48%;
    668 }
    669 #buddypress .standard-form #profile-details-section {
    670         float: right;
    671 }
    672 #buddypress .standard-form #blog-details-section {
    673         clear: left;
    674 }
    675 #buddypress .standard-form input:focus,
    676 #buddypress .standard-form textarea:focus,
    677 #buddypress .standard-form select:focus {
    678         background: #fafafa;
    679         color: #555;
    680 }
    681 #buddypress form#send-invite-form {
    682         margin-top: 20px;
    683 }
    684 #buddypress div#invite-list {
    685         background: #f5f5f5;
    686         border: 1px solid #e4e4e4;
    687         border-radius: 3px;
    688         height: 400px;
    689         margin: 0 0 10px;
    690         overflow: auto;
    691         padding: 5px;
    692         width: 160px;
    693 }
    694 #buddypress button,
    695 #buddypress a.button,
    696 #buddypress input[type=submit],
    697 #buddypress input[type=button],
    698 #buddypress input[type=reset],
    699 #buddypress ul.button-nav li a,
    700 #buddypress div.generic-button a,
    701 #buddypress .comment-reply-link {
    702         background: #fff; /* Old browsers */
    703         background: -moz-linear-gradient(top, #ffffff 0%, #ededed 100%); /* FF3.6+ */
    704         background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#ededed)); /* Chrome,Safari4+ */
    705         background: -webkit-linear-gradient(top, #ffffff 0%,#ededed 100%); /* Chrome10+,Safari5.1+ */
    706         background: -o-linear-gradient(top, #ffffff 0%,#ededed 100%); /* Opera11.10+ */
    707         background: -ms-linear-gradient(top, #ffffff 0%,#ededed 100%); /* IE10+ */
    708         filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed',GradientType=0 ); /* IE6-9 */
    709         background: linear-gradient(top, #ffffff 0%,#ededed 100%); /* W3C */
    710         border: 1px solid #ccc;
    711         -moz-border-radius: 3px;
    712         -webkit-border-radius: 3px;
    713         border-radius: 3px;
    714         color: #777;
    715         cursor: pointer;
    716         font: normal 12px/20px Arial, Tahoma, Verdana, sans-serif;
    717         outline: none;
    718         padding: 4px 10px;
    719         text-align: center;
    720         text-decoration: none;
    721         line-height: 14px;
    722 }
    723 #buddypress button:hover,
    724 #buddypress a.button:hover,
    725 #buddypress a.button:focus,
    726 #buddypress input[type=submit]:hover,
    727 #buddypress input[type=button]:hover,
    728 #buddypress input[type=reset]:hover,
    729 #buddypress ul.button-nav li a:hover,
    730 #buddypress ul.button-nav li.current a,
    731 #buddypress div.generic-button a:hover,
    732 #buddypress .comment-reply-link:hover {
    733         background: #ededed;
    734         background: -moz-linear-gradient(top, #ffffff 0%, #e0e0e0 100%); /* FF3.6+ */
    735         background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e0e0e0)); /* Chrome,Safari4+ */
    736         background: -webkit-linear-gradient(top, #ffffff 0%,#e0e0e0 100%); /* Chrome10+,Safari5.1+ */
    737         background: -o-linear-gradient(top, #ffffff 0%,#e0e0e0 100%); /* Opera11.10+ */
    738         background: -ms-linear-gradient(top, #ffffff 0%,#e0e0e0 100%); /* IE10+ */
    739         filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e0e0e0',GradientType=0 ); /* IE6-9 */
    740         background: linear-gradient(top, #ffffff 0%,#e0e0e0 100%); /* W3C */
    741         border: 1px solid #bbb;
    742         color: #555;
    743         outline: none;
    744         text-decoration: none;
    745 }
    746 
    747 /*--------------------------------------------------------------
    748 6.6 - Ajax Loading
    749 --------------------------------------------------------------*/
    750 #buddypress a.loading,
    751 #buddypress input.loading {
    752     padding-right: 25px;
    753 }
    754 #buddypress a.loading:hover,
    755 #buddypress input.loading:hover {
    756     padding-right: 25px;
    757     color: #777;
    758 }
    759 #buddypress input[type="submit"].pending,
    760 #buddypress input[type="button"].pending,
    761 #buddypress input[type="reset"].pending,
    762 #buddypress input[type="submit"].disabled,
    763 #buddypress input[type="button"].disabled,
    764 #buddypress input[type="reset"].disabled,
    765 #buddypress button.pending,
    766 #buddypress button.disabled,
    767 #buddypress div.pending a,
    768 #buddypress a.disabled {
    769     border-color: #eee;
    770     color: #bbb;
    771     cursor: default;
    772 }
    773 #buddypress input[type="submit"]:hover.pending,
    774 #buddypress input[type="button"]:hover.pending,
    775 #buddypress input[type="reset"]:hover.pending,
    776 #buddypress input[type="submit"]:hover.disabled,
    777 #buddypress input[type="button"]:hover.disabled,
    778 #buddypress input[type="reset"]:hover.disabled,
    779 #buddypress button.pending:hover,
    780 #buddypress button.disabled:hover,
    781 #buddypress div.pending a:hover,
    782 #buddypress a.disabled:hover {
    783         background: -moz-linear-gradient(top, #ffffff 0%, #ededed 100%); /* FF3.6+ */
    784         background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#ededed)); /* Chrome,Safari4+ */
    785         background: -webkit-linear-gradient(top, #ffffff 0%,#ededed 100%); /* Chrome10+,Safari5.1+ */
    786         background: -o-linear-gradient(top, #ffffff 0%,#ededed 100%); /* Opera11.10+ */
    787         background: -ms-linear-gradient(top, #ffffff 0%,#ededed 100%); /* IE10+ */
    788         filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed',GradientType=0 ); /* IE6-9 */
    789         background: linear-gradient(top, #ffffff 0%,#ededed 100%); /* W3C */
    790     border-color: #eee;
    791     color: #bbb;
    792 }
    793 
    794 /*--------------------------------------------------------------
    795 6.7 - Forums, Tables and Topics
    796 --------------------------------------------------------------*/
    797 #buddypress ul#topic-post-list {
    798         margin: 0px -19px 15px;
    799         width: auto;
    800 }
    801 #buddypress ul#topic-post-list li {
    802         padding: 15px;
    803         position: relative;
    804 }
    805 #buddypress ul#topic-post-list li.alt {
    806         background: #f5f5f5;
    807 }
    808 #buddypress ul#topic-post-list li div.poster-meta {
    809         color: #888;
    810         margin-bottom: 10px;
    811 }
    812 #buddypress ul#topic-post-list li div.post-content {
    813         margin-left: 54px;
    814 }
    815 #buddypress div.topic-tags {
    816         font-size: 11px;
    817 }
    818 #buddypress div.admin-links {
    819         color: #888;
    820         font-size: 11px;
    821         position: absolute;
    822         top: 15px;
    823         right: 25px;
    824 }
    825 #buddypress div#topic-meta {
    826         margin: -10px -19px;
    827         padding: 5px 19px 30px;
    828         position: relative;
    829 }
    830 #buddypress div#topic-meta div.admin-links {
    831         right: 19px;
    832         top: -36px;
    833 }
    834 #buddypress div#topic-meta h3 {
    835         font-size: 20px;
    836         margin: 5px 0;
    837 }
    838 #buddypress div#new-topic-post {
    839         display: none;
    840         margin: 20px 0 0 0;
    841         padding: 1px 0 0 0;
    842 }
    843 #buddypress table {
    844         width: 100%;
    845 }
    846 #buddypress table thead tr {
    847         background: #eaeaea;
    848 }
    849 #buddypress table#message-threads {
    850         margin: 0 -19px;
    851         width: auto;
    852 }
    853 #buddypress table.profile-fields {
    854         margin-bottom: 20px;
    855 }
    856 #buddypress table.profile-fields:last-child {
    857         margin-bottom: 0;
    858 }
    859 #buddypress table.profile-fields p {
    860         margin: 0;
    861 }
    862 #buddypress table.profile-fields p:last-child {
    863         margin-top: 0;
    864 }
    865 #buddypress table tr td,
    866 #buddypress table tr th {
    867         padding: 8px;
    868         vertical-align: middle;
    869 }
    870 #buddypress table tr td.label {
    871         border-right: 1px solid #eaeaea;
    872         font-weight: bold;
    873         width: 25%;
    874 }
    875 #buddypress table tr td.thread-info p {
    876         margin: 0;
    877 }
    878 #buddypress table tr td.thread-info p.thread-excerpt {
    879         color: #888;
    880         font-size: 11px;
    881         margin-top: 3px;
    882 }
    883 #buddypress table.forum td {
    884         text-align: center;
    885 }
    886 #buddypress table tr.alt td {
    887         background: #f5f5f5;
    888 }
    889 #buddypress table.notification-settings {
    890         margin-bottom: 20px;
    891         text-align: left;
    892 }
    893 #buddypress #groups-notification-settings {
    894         margin-bottom: 0;
    895 }
    896 #buddypress table.notification-settings th.icon,
    897 #buddypress table.notification-settings td:first-child {
    898         display: none;
    899 }
    900 #buddypress table.notification-settings th.title {
    901         width: 80%;
    902 }
    903 #buddypress table.notification-settings .yes,
    904 #buddypress table.notification-settings .no {
    905         text-align: center;
    906         width: 40px;
    907 }
    908 #buddypress table.forum {
    909         margin: 0 -19px;
    910         width: auto;
    911 }
    912 #buddypress table.forum tr.sticky td {
    913         font-size: 1.2em;
    914         background: #fff9db;
    915         border-top: 1px solid #ffe8c4;
    916         border-bottom: 1px solid #ffe8c4;
    917 }
    918 #buddypress table.forum tr.closed td.td-title {
    919         padding-left: 35px;
    920 }
    921 #buddypress table.forum td p.topic-text {
    922         color: #888;
    923         font-size: 13px;
    924 }
    925 #buddypress table.forum tr > td:first-child,
    926 #buddypress table.forum tr > th:first-child {
    927         padding-left: 15px;
    928 }
    929 #buddypress table.forum tr > td:last-child,
    930 #buddypress table.forum tr > th:last-child {
    931         padding-right: 15px;
    932 }
    933 #buddypress table.forum tr th#th-title,
    934 #buddypress table.forum tr th#th-poster,
    935 #buddypress table.forum tr th#th-group,
    936 #buddypress table.forum td.td-poster,
    937 #buddypress table.forum td.td-group,
    938 #buddypress table.forum td.td-title {
    939         text-align: left;
    940 }
    941 #buddypress table.forum tr td.td-title a.topic-title {
    942         font-size: 1.2em;
    943 }
    944 #buddypress table.forum td.td-freshness {
    945         white-space: nowrap;
    946 }
    947 #buddypress table.forum td.td-freshness span.time-since {
    948         font-size: 0.9em;
    949         color: #888;
    950 }
    951 #buddypress table.forum td img.avatar {
    952         float: none;
    953         margin: 0 5px -8px 0;
    954 }
    955 #buddypress table.forum td.td-poster,
    956 #buddypress table.forum td.td-group {
    957         min-width: 140px;
    958 }
    959 #buddypress table.forum th#th-title {
    960         width: 80%;
    961 }
    962 #buddypress table.forum th#th-freshness {
    963         width: 25%;
    964 }
    965 #buddypress table.forum th#th-postcount {
    966         width: 15%;
    967 }
    968 #buddypress table.forum p.topic-meta {
    969         font-size: 0.9em;
    970         margin: 5px 0 0 0;
    971 }
    972 
    973 /*-------------------------------------------------------------------------
    974 6.8 - Headers, Lists and Tabs - Activity, Groups, Blogs, Forums, Profiles
    975 -------------------------------------------------------------------------*/
    976 #buddypress .item-body {
    977         margin: 20px 0;
    978 }
    979 #buddypress span.activity {
    980         display: inline-block;
    981         font-size: 11px;
    982         opacity: 0.8;
    983         padding: 1px 8px;
    984 }
    985 #buddypress span.user-nicename {
    986         color: #777;
    987         display: inline-block;
    988         font-size: 16px;
    989         font-weight: bold;
    990 }
    991 #buddypress span.activity,
    992 #buddypress div#message p {
    993         border: 1px solid #e1ca82;
    994         -moz-border-radius: 3px;
    995         -webkit-border-radius: 3px;
    996         border-radius: 3px;
    997         font-weight: normal;
    998         margin-top: 3px;
    999         text-decoration: none;
    1000         background: #ffeaa6;
    1001         background-image: -webkit-linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
    1002         background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255, 255, 255, .5)), color-stop(100%,rgba(255, 255, 255, 0))); /* Chrome,Safari4+ */
    1003         background-image: -moz-linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
    1004         background-image: -ms-linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
    1005         background-image: -o-linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
    1006         background-image: linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
    1007 }
    1008 #buddypress div#item-header {
    1009         overflow: hidden;
    1010 }
    1011 #buddypress div#item-header div#item-header-content {
    1012         float: left;
    1013         margin-left: 0;
    1014 }
    1015 #buddypress div#item-header h2 {
    1016         font-size: 28px;
    1017         line-height: 120%;
    1018         margin: 0 0 15px 0;
    1019 }
    1020 #buddypress div#item-header h2 a {
    1021         color: #777;
    1022         text-decoration: none;
    1023 }
    1024 #buddypress div#item-header img.avatar {
    1025         float: left;
    1026         margin: 0 15px 19px 0;
    1027 }
    1028 #buddypress div#item-header h2 {
    1029         margin-bottom: 5px;
    1030 }
    1031 #buddypress div#item-header span.activity,
    1032 #buddypress div#item-header h2 span.highlight {
    1033         font-size: 11px;
    1034         font-weight: normal;
    1035         line-height: 170%;
    1036         margin-bottom: 7px;
    1037         vertical-align: middle;
    1038 }
    1039 #buddypress div#item-header h2 span.highlight {
    1040         font-size: 16px;
    1041 }
    1042 #buddypress div#item-header h2 span.highlight span {
    1043         background: #a1dcfa;
    1044         -moz-border-radius: 3px;
    1045         -webkit-border-radius: 3px;
    1046         border-radius: 3px;
    1047         color: #fff;
    1048         cursor: pointer;
    1049         font-weight: bold;
    1050         font-size: 11px;
    1051         margin-bottom: 2px;
    1052         padding: 1px 4px;
    1053         position: relative;
    1054         right: -2px;
    1055         top: -2px;
    1056         vertical-align: middle;
    1057 }
    1058 #buddypress div#item-header div#item-meta {
    1059         font-size: 14px;
    1060         color: #aaa;
    1061         overflow: hidden;
    1062         margin: 15px 0 5px 0;
    1063         padding-bottom: 10px;
    1064 }
    1065 #buddypress div#item-header div#item-actions {
    1066         float: right;
    1067         margin: 0 0 15px 15px;
    1068         text-align: right;
    1069         width: 20%;
    1070 }
    1071 #buddypress div#item-header div#item-actions h3 {
    1072         font-size: 12px;
    1073         margin: 0 0 5px 0;
    1074 }
    1075 #buddypress div#item-header ul {
    1076         margin-bottom: 15px;
    1077         overflow: hidden;
    1078 }
    1079 #buddypress div#item-header ul h5,
    1080 #buddypress div#item-header ul span,
    1081 #buddypress div#item-header ul hr {
    1082         display: none;
    1083 }
    1084 #buddypress div#item-header ul li {
    1085         float: right;
    1086 }
    1087 #buddypress div#item-header ul img.avatar,
    1088 #buddypress div#item-header ul.avatars img.avatar {
    1089         height: 30px;
    1090         margin: 2px;
    1091         width: 30px;
    1092 }
    1093 #buddypress div#item-header div.generic-button,
    1094 #buddypress div#item-header a.button {
    1095         float: left;
    1096         margin: 10px 10px 0 0;
    1097 }
    1098 #buddypress div#item-header div#message.info {
    1099         line-height: 80%;
    1100 }
    1101 #buddypress ul.item-list {
    1102         width: 100%;
    1103         list-style: none;
    1104         clear: both;
    1105 }
    1106 #buddypress ul.item-list li {
    1107         border-bottom: 1px solid #eaeaea;
    1108         padding: 15px 0;
    1109         position: relative;
    1110         list-style: none;
    1111 }
    1112 #buddypress ul.item-list.activity-list li {
    1113         padding-bottom: 0;
    1114 }
    1115 #buddypress ul.single-line li {
    1116         border: none;
    1117 }
    1118 #buddypress ul.item-list li img.avatar {
    1119         float: left;
    1120         margin: 0 10px 0 0;
    1121 }
    1122 #buddypress ul.item-list li div.item-title,
    1123 #buddypress ul.item-list li h4 {
    1124         font-weight: normal;
    1125         font-size: 14px;
    1126         margin: 0;
    1127         width: 75%;
    1128 }
    1129 #buddypress ul.item-list li div.item-title span {
    1130         color: #999;
    1131         font-size: 12px;
    1132 }
    1133 #buddypress ul.item-list li div.item-desc {
    1134         color: #888;
    1135         font-size: 11px;
    1136         margin: 10px 0 0 64px;
    1137         width: 50%;
    1138 }
    1139 #buddypress ul.item-list li div.action {
    1140         position: absolute;
    1141         top: 15px;
    1142         right: 0;
    1143         text-align: right;
    1144 }
    1145 #buddypress ul.item-list li div.meta {
    1146         color: #888;
    1147         font-size: 11px;
    1148         margin-top: 10px;
    1149 }
    1150 #buddypress ul.item-list li h5 span.small {
    1151         float: right;
    1152         font-size: 11px;
    1153         font-weight: normal;
    1154 }
    1155 #buddypress div.item-list-tabs {
    1156         background: #e6e6e6;
    1157         clear: left;
    1158         overflow: hidden;
    1159 }
    1160 #buddypress div.item-list-tabs ul li a {
    1161         text-decoration: none;
    1162         height: 20px;
    1163 }
    1164 #buddypress div.item-list-tabs ul {
    1165         margin: 0;
    1166         width: 100%;
    1167 }
    1168 #buddypress div.item-list-tabs ul li {
    1169         float: left;
    1170         margin: 5px 0 0 5px;
    1171         list-style: none;
    1172 }
    1173 #buddypress div.item-list-tabs#subnav ul li {
    1174         margin-top: 0;
    1175 }
    1176 #buddypress div.item-list-tabs ul li.last {
    1177         float: right;
    1178         margin: 7px 10px 0 0;
    1179 }
    1180 #buddypress div.item-list-tabs#subnav ul li.last {
    1181         margin-top: 4px;
    1182 }
    1183 #buddypress div.item-list-tabs ul li.last select {
    1184         max-width: 175px;
    1185 }
    1186 #buddypress div.item-list-tabs ul li a,
    1187 #buddypress div.item-list-tabs ul li span {
    1188         display: block;
    1189         padding: 5px 10px 10px;
    1190         text-decoration: none;
    1191 }
    1192 #buddypress div.item-list-tabs ul li a span {
    1193         background: #1fb3dd;
    1194         border-radius: 3px;
    1195         color: #fff;
    1196         display: inline;
    1197         font-size: 90%;
    1198         margin-left: 2px;
    1199         padding: 1px 6px;
    1200 }
    1201 #buddypress div.item-list-tabs ul li.selected a,
    1202 #buddypress div.item-list-tabs ul li.current a {
    1203         background-color: #fff;
    1204         border-top-left-radius: 3px;
    1205         border-top-right-radius: 3px;
    1206         color: #555;
    1207         font-weight: bold;
    1208 }
    1209 #buddypress div.item-list-tabs ul li.selected a span,
    1210 #buddypress div.item-list-tabs ul li.current a span,
    1211 #buddypress div.item-list-tabs ul li a:hover span {
    1212         background-color: #999;
    1213 }
    1214 #buddypress div.item-list-tabs ul li.selected a span,
    1215 #buddypress div.item-list-tabs ul li.current a span {
    1216         background-color: #555;
    1217 }
    1218 #buddypress div#item-nav ul li.loading a {
    1219         background-position: 88% 50%;
    1220 }
    1221 #buddypress div.item-list-tabs#object-nav {
    1222         margin-top: 0;
    1223 }
    1224 #buddypress div.item-list-tabs#subnav {
    1225         background: #fff;
    1226         border-bottom: 1px solid #eaeaea;
    1227         margin: 0 0 20px;
    1228         overflow: hidden;
    1229 }
    1230 #buddypress #admins-list li,
    1231 #buddypress #mods-list li,
    1232 #buddypress #members-list li {
    1233         overflow: auto;
    1234 }
    1235 
    1236 
    1237 /*--------------------------------------------------------------
    1238 6.9 - Private Messaging Threads
    1239 --------------------------------------------------------------*/
    1240 #buddypress table#message-threads tr.unread td {
    1241         background: #fff9db;
    1242         border-top: 1px solid #ffe8c4;
    1243         border-bottom: 1px solid #ffe8c4;
    1244         font-weight: bold;
    1245 }
    1246 #buddypress li span.unread-count,
    1247 #buddypress tr.unread span.unread-count {
    1248         background: #dd0000;
    1249         border-radius: 3px;
    1250         color: #fff;
    1251         font-weight: bold;
    1252         padding: 2px 8px;
    1253 }
    1254 #buddypress div.item-list-tabs ul li a span.unread-count {
    1255         padding: 1px 6px;
    1256         color: #fff;
    1257 }
    1258 #buddypress div.messages-options-nav {
    1259         background: #eee;
    1260         font-size: 11px;
    1261         margin: 0 -19px;
    1262         padding: 5px 15px;
    1263         text-align: right;
    1264 }
    1265 #buddypress div#message-thread div.message-box {
    1266         margin: 0 -19px;
    1267         padding: 15px;
    1268 }
    1269 #buddypress div#message-thread div.alt {
    1270         background: #f4f4f4;
    1271 }
    1272 #buddypress div#message-thread p#message-recipients {
    1273         margin: 10px 0 20px 0;
    1274 }
    1275 #buddypress div#message-thread img.avatar {
    1276         float: left;
    1277         margin: 0 10px 0 0;
    1278         vertical-align: middle;
    1279 }
    1280 #buddypress div#message-thread strong {
    1281         font-size: 16px;
    1282         margin: 0;
    1283 }
    1284 #buddypress div#message-thread strong a {
    1285         text-decoration: none;
    1286 }
    1287 #buddypress div#message-thread strong span.activity {
    1288         margin: 4px 0 0 10px;
    1289 }
    1290 #buddypress div#message-thread div.message-metadata {
    1291         overflow: hidden;
    1292 }
    1293 #buddypress div#message-thread div.message-content {
    1294         margin-left: 45px;
    1295 }
    1296 #buddypress div#message-thread div.message-options {
    1297         text-align: right;
    1298 }
    1299 
    1300 #buddypress div.message-search {
    1301         float: right;
    1302         margin: 0 20px;
    1303 }
    1304 
    1305 /*--------------------------------------------------------------
    1306 6.9 - Extended Profiles
    1307 --------------------------------------------------------------*/
    1308 
    1309 #buddypress div.profile h4 {
    1310         margin-bottom: auto;
    1311         margin-top: 15px;
    1312 }
    1313 #buddypress #profile-edit-form ul.button-nav {
    1314         margin-top: 15px;
    1315 }
    1316 body.no-js #buddypress .field-visibility-settings-toggle,
    1317 body.no-js #buddypress .field-visibility-settings-close {
    1318         display: none;
    1319 }
    1320 #buddypress .field-visibility-settings {
    1321         display: none;
    1322         margin-top: 10px;
    1323 }
    1324         body.no-js #buddypress .field-visibility-settings {
    1325                 display: block;
    1326         }
    1327 #buddypress .current-visibility-level {
    1328         font-weight: bold;
    1329         font-style: normal;
    1330 }
    1331 #buddypress .field-visibility-settings,
    1332 #buddypress .field-visibility-settings-toggle,
    1333 #buddypress .field-visibility-settings-notoggle {
    1334         color: #888;
    1335 }
    1336 #buddypress .field-visibility-settings-toggle a,
    1337 #buddypress .field-visibility-settings a {
    1338         font-size: .9em;
    1339 }
    1340 body.register #buddypress div.page ul {
    1341         list-style: none;
    1342 }
    1343 #buddypress .standard-form .field-visibility-settings label {
    1344         margin: 0;
    1345         font-weight: normal;
    1346 }
    1347 #buddypress .field-visibility-settings legend,
    1348 #buddypress .field-visibility-settings-toggle {
    1349         font-style: italic;
    1350 }
    1351  No newline at end of file
  • deleted file bp-themes/bp-legacy/js/buddypress.js

    deleted file mode 100644
    + -  
    1 // AJAX Functions
    2 var jq = jQuery;
    3 
    4 // Global variable to prevent multiple AJAX requests
    5 var bp_ajax_request = null;
    6 
    7 jq(document).ready( function() {
    8         /**** Page Load Actions *******************************************************/
    9 
    10         /* Hide Forums Post Form */
    11         if ( '-1' == window.location.search.indexOf('new') && jq('div.forums').length )
    12                 jq('#new-topic-post').hide();
    13         else
    14                 jq('#new-topic-post').show();
    15 
    16         /* Activity filter and scope set */
    17         bp_init_activity();
    18 
    19         /* Object filter and scope set. */
    20         var objects = [ 'members', 'groups', 'blogs', 'forums' ];
    21         bp_init_objects( objects );
    22 
    23         /* @mention Compose Scrolling */
    24         if ( jq.query.get('r') && jq('textarea#whats-new').length ) {
    25                 jq('#whats-new-options').animate({
    26                         height:'40px'
    27                 });
    28                 jq("form#whats-new-form textarea").animate({
    29                         height:'50px'
    30                 });
    31                 jq.scrollTo( jq('textarea#whats-new'), 500, {
    32                         offset:-125,
    33                         easing:'easeOutQuad'
    34                 } );
    35                 jq('textarea#whats-new').focus();
    36         }
    37 
    38         /**** Activity Posting ********************************************************/
    39 
    40         /* Textarea focus */
    41         jq('#whats-new').focus( function(){
    42                 jq("#whats-new-options").animate({
    43                         height:'40px'
    44                 });
    45                 jq("form#whats-new-form textarea").animate({
    46                         height:'50px'
    47                 });
    48                 jq("#aw-whats-new-submit").prop("disabled", false);
    49         });
    50 
    51         /* New posts */
    52         jq("input#aw-whats-new-submit").click( function() {
    53                 var button = jq(this);
    54                 var form = button.parent().parent().parent().parent();
    55 
    56                 form.children().each( function() {
    57                         if ( jq.nodeName(this, "textarea") || jq.nodeName(this, "input") )
    58                                 jq(this).prop( 'disabled', true );
    59                 });
    60 
    61                 /* Remove any errors */
    62                 jq('div.error').remove();
    63                 button.addClass('loading');
    64                 button.prop('disabled', true);
    65 
    66                 /* Default POST values */
    67                 var object = '';
    68                 var item_id = jq("#whats-new-post-in").val();
    69                 var content = jq("textarea#whats-new").val();
    70 
    71                 /* Set object for non-profile posts */
    72                 if ( item_id > 0 ) {
    73                         object = jq("#whats-new-post-object").val();
    74                 }
    75 
    76                 jq.post( ajaxurl, {
    77                         action: 'post_update',
    78                         'cookie': encodeURIComponent(document.cookie),
    79                         '_wpnonce_post_update': jq("input#_wpnonce_post_update").val(),
    80                         'content': content,
    81                         'object': object,
    82                         'item_id': item_id,
    83                         '_bp_as_nonce': jq('#_bp_as_nonce').val() || ''
    84                 },
    85                 function(response) {
    86 
    87                         form.children().each( function() {
    88                                 if ( jq.nodeName(this, "textarea") || jq.nodeName(this, "input") ) {
    89                                         jq(this).prop( 'disabled', false );
    90                                 }
    91                         });
    92 
    93                         /* Check for errors and append if found. */
    94                         if ( response[0] + response[1] == '-1' ) {
    95                                 form.prepend( response.substr( 2, response.length ) );
    96                                 jq( 'form#' + form.attr('id') + ' div.error').hide().fadeIn( 200 );
    97                         } else {
    98                                 if ( 0 == jq("ul.activity-list").length ) {
    99                                         jq("div.error").slideUp(100).remove();
    100                                         jq("div#message").slideUp(100).remove();
    101                                         jq("div.activity").append( '<ul id="activity-stream" class="activity-list item-list">' );
    102                                 }
    103 
    104                                 jq("ul#activity-stream").prepend(response);
    105                                 jq("ul#activity-stream li:first").addClass('new-update');
    106 
    107                                 if ( 0 != jq("#latest-update").length ) {
    108                                         var l = jq("ul#activity-stream li.new-update .activity-content .activity-inner p").html();
    109                                         var v = jq("ul#activity-stream li.new-update .activity-content .activity-header p a.view").attr('href');
    110 
    111                                         var ltext = jq("ul#activity-stream li.new-update .activity-content .activity-inner p").text();
    112 
    113                                         var u = '';
    114                                         if ( ltext != '' )
    115                                                 u = l + ' ';
    116 
    117                                         u += '<a href="' + v + '" rel="nofollow">' + BP_DTheme.view + '</a>';
    118 
    119                                         jq("#latest-update").slideUp(300,function(){
    120                                                 jq("#latest-update").html( u );
    121                                                 jq("#latest-update").slideDown(300);
    122                                         });
    123                                 }
    124 
    125                                 jq("li.new-update").hide().slideDown( 300 );
    126                                 jq("li.new-update").removeClass( 'new-update' );
    127                                 jq("textarea#whats-new").val('');
    128                         }
    129 
    130                         jq("#whats-new-options").animate({
    131                                 height:'0px'
    132                         });
    133                         jq("form#whats-new-form textarea").animate({
    134                                 height:'20px'
    135                         });
    136                         jq("#aw-whats-new-submit").prop("disabled", true).removeClass('loading');
    137                 });
    138 
    139                 return false;
    140         });
    141 
    142         /* List tabs event delegation */
    143         jq('div.activity-type-tabs').click( function(event) {
    144                 var target = jq(event.target).parent();
    145 
    146                 if ( event.target.nodeName == 'STRONG' || event.target.nodeName == 'SPAN' )
    147                         target = target.parent();
    148                 else if ( event.target.nodeName != 'A' )
    149                         return false;
    150 
    151                 /* Reset the page */
    152                 jq.cookie( 'bp-activity-oldestpage', 1, {
    153                         path: '/'
    154                 } );
    155 
    156                 /* Activity Stream Tabs */
    157                 var scope = target.attr('id').substr( 9, target.attr('id').length );
    158                 var filter = jq("#activity-filter-select select").val();
    159 
    160                 if ( scope == 'mentions' )
    161                         jq( 'li#' + target.attr('id') + ' a strong' ).remove();
    162 
    163                 bp_activity_request(scope, filter);
    164 
    165                 return false;
    166         });
    167 
    168         /* Activity filter select */
    169         jq('#activity-filter-select select').change( function() {
    170                 var selected_tab = jq( 'div.activity-type-tabs li.selected' );
    171 
    172                 if ( !selected_tab.length )
    173                         var scope = null;
    174                 else
    175                         var scope = selected_tab.attr('id').substr( 9, selected_tab.attr('id').length );
    176 
    177                 var filter = jq(this).val();
    178 
    179                 bp_activity_request(scope, filter);
    180 
    181                 return false;
    182         });
    183 
    184         /* Stream event delegation */
    185         jq('div.activity').click( function(event) {
    186                 var target = jq(event.target);
    187 
    188                 /* Favoriting activity stream items */
    189                 if ( target.hasClass('fav') || target.hasClass('unfav') ) {
    190                         var type = target.hasClass('fav') ? 'fav' : 'unfav';
    191                         var parent = target.closest('.activity-item');
    192                         var parent_id = parent.attr('id').substr( 9, parent.attr('id').length );
    193 
    194                         target.addClass('loading');
    195 
    196                         jq.post( ajaxurl, {
    197                                 action: 'activity_mark_' + type,
    198                                 'cookie': encodeURIComponent(document.cookie),
    199                                 'id': parent_id
    200                         },
    201                         function(response) {
    202                                 target.removeClass('loading');
    203 
    204                                 target.fadeOut( 100, function() {
    205                                         jq(this).html(response);
    206                                         jq(this).attr('title', 'fav' == type ? BP_DTheme.remove_fav : BP_DTheme.mark_as_fav);
    207                                         jq(this).fadeIn(100);
    208                                 });
    209 
    210                                 if ( 'fav' == type ) {
    211                                         if ( !jq('.item-list-tabs li#activity-favorites').length )
    212                                                 jq('.item-list-tabs ul li#activity-mentions').before( '<li id="activity-favorites"><a href="#">' + BP_DTheme.my_favs + ' <span>0</span></a></li>');
    213 
    214                                         target.removeClass('fav');
    215                                         target.addClass('unfav');
    216 
    217                                         jq('.item-list-tabs ul li#activity-favorites span').html( Number( jq('.item-list-tabs ul li#activity-favorites span').html() ) + 1 );
    218                                 } else {
    219                                         target.removeClass('unfav');
    220                                         target.addClass('fav');
    221 
    222                                         jq('.item-list-tabs ul li#activity-favorites span').html( Number( jq('.item-list-tabs ul li#activity-favorites span').html() ) - 1 );
    223 
    224                                         if ( !Number( jq('.item-list-tabs ul li#activity-favorites span').html() ) ) {
    225                                                 if ( jq('.item-list-tabs ul li#activity-favorites').hasClass('selected') )
    226                                                         bp_activity_request( null, null );
    227 
    228                                                 jq('.item-list-tabs ul li#activity-favorites').remove();
    229                                         }
    230                                 }
    231 
    232                                 if ( 'activity-favorites' == jq( '.item-list-tabs li.selected').attr('id') )
    233                                         target.parent().parent().parent().slideUp(100);
    234                         });
    235 
    236                         return false;
    237                 }
    238 
    239                 /* Delete activity stream items */
    240                 if ( target.hasClass('delete-activity') ) {
    241                         var li        = target.parents('div.activity ul li');
    242                         var id        = li.attr('id').substr( 9, li.attr('id').length );
    243                         var link_href = target.attr('href');
    244                         var nonce     = link_href.split('_wpnonce=');
    245 
    246                         nonce = nonce[1];
    247 
    248                         target.addClass('loading');
    249 
    250                         jq.post( ajaxurl, {
    251                                 action: 'delete_activity',
    252                                 'cookie': encodeURIComponent(document.cookie),
    253                                 'id': id,
    254                                 '_wpnonce': nonce
    255                         },
    256                         function(response) {
    257 
    258                                 if ( response[0] + response[1] == '-1' ) {
    259                                         li.prepend( response.substr( 2, response.length ) );
    260                                         li.children('div#message').hide().fadeIn(300);
    261                                 } else {
    262                                         li.slideUp(300);
    263                                 }
    264                         });
    265 
    266                         return false;
    267                 }
    268 
    269                 // Spam activity stream items
    270                 if ( target.hasClass( 'spam-activity' ) ) {
    271                         var li = target.parents( 'div.activity ul li' );
    272                         target.addClass( 'loading' );
    273 
    274                         jq.post( ajaxurl, {
    275                                 action: 'bp_spam_activity',
    276                                 'cookie': encodeURIComponent( document.cookie ),
    277                                 'id': li.attr( 'id' ).substr( 9, li.attr( 'id' ).length ),
    278                                 '_wpnonce': target.attr( 'href' ).split( '_wpnonce=' )[1]
    279                         },
    280 
    281                         function(response) {
    282                                 if ( response[0] + response[1] === '-1' ) {
    283                                         li.prepend( response.substr( 2, response.length ) );
    284                                         li.children( 'div#message' ).hide().fadeIn(300);
    285                                 } else {
    286                                         li.slideUp( 300 );
    287                                 }
    288                         });
    289 
    290                         return false;
    291                 }
    292 
    293                 /* Load more updates at the end of the page */
    294                 if ( target.parent().hasClass('load-more') ) {
    295                         jq("#content li.load-more").addClass('loading');
    296 
    297                         if ( null == jq.cookie('bp-activity-oldestpage') )
    298                                 jq.cookie('bp-activity-oldestpage', 1, {
    299                                         path: '/'
    300                                 } );
    301 
    302                         var oldest_page = ( jq.cookie('bp-activity-oldestpage') * 1 ) + 1;
    303 
    304                         jq.post( ajaxurl, {
    305                                 action: 'activity_get_older_updates',
    306                                 'cookie': encodeURIComponent(document.cookie),
    307                                 'page': oldest_page
    308                         },
    309                         function(response)
    310                         {
    311                                 jq("#content li.load-more").removeClass('loading');
    312                                 jq.cookie( 'bp-activity-oldestpage', oldest_page, {
    313                                         path: '/'
    314                                 } );
    315                                 jq("#content ul.activity-list").append(response.contents);
    316 
    317                                 target.parent().hide();
    318                         }, 'json' );
    319 
    320                         return false;
    321                 }
    322         });
    323 
    324         // Activity "Read More" links
    325         jq('.activity-read-more a').live('click', function(event) {
    326                 var target = jq(event.target);
    327                 var link_id = target.parent().attr('id').split('-');
    328                 var a_id = link_id[3];
    329                 var type = link_id[0]; /* activity or acomment */
    330 
    331                 var inner_class = type == 'acomment' ? 'acomment-content' : 'activity-inner';
    332                 var a_inner = jq('li#' + type + '-' + a_id + ' .' + inner_class + ':first' );
    333                 jq(target).addClass('loading');
    334 
    335                 jq.post( ajaxurl, {
    336                         action: 'get_single_activity_content',
    337                         'activity_id': a_id
    338                 },
    339                 function(response) {
    340                         jq(a_inner).slideUp(300).html(response).slideDown(300);
    341                 });
    342 
    343                 return false;
    344         });
    345 
    346         /**** Activity Comments *******************************************************/
    347 
    348         /* Hide all activity comment forms */
    349         jq('form.ac-form').hide();
    350 
    351         /* Hide excess comments */
    352         if ( jq('.activity-comments').length )
    353                 bp_legacy_theme_hide_comments();
    354 
    355         /* Activity list event delegation */
    356         jq('div.activity').click( function(event) {
    357                 var target = jq(event.target);
    358 
    359                 /* Comment / comment reply links */
    360                 if ( target.hasClass('acomment-reply') || target.parent().hasClass('acomment-reply') ) {
    361                         if ( target.parent().hasClass('acomment-reply') )
    362                                 target = target.parent();
    363 
    364                         var id = target.attr('id');
    365                         ids = id.split('-');
    366 
    367                         var a_id = ids[2]
    368                         var c_id = target.attr('href').substr( 10, target.attr('href').length );
    369                         var form = jq( '#ac-form-' + a_id );
    370 
    371                         form.css( 'display', 'none' );
    372                         form.removeClass('root');
    373                         jq('.ac-form').hide();
    374 
    375                         /* Hide any error messages */
    376                         form.children('div').each( function() {
    377                                 if ( jq(this).hasClass( 'error' ) )
    378                                         jq(this).hide();
    379                         });
    380 
    381                         if ( ids[1] != 'comment' ) {
    382                                 jq('.activity-comments li#acomment-' + c_id).append( form );
    383                         } else {
    384                                 jq('li#activity-' + a_id + ' .activity-comments').append( form );
    385                         }
    386 
    387                         if ( form.parent().hasClass( 'activity-comments' ) )
    388                                 form.addClass('root');
    389 
    390                         form.slideDown( 200 );
    391                         jq.scrollTo( form, 500, {
    392                                 offset:-100,
    393                                 easing:'easeOutQuad'
    394                         } );
    395                         jq('#ac-form-' + ids[2] + ' textarea').focus();
    396 
    397                         return false;
    398                 }
    399 
    400                 /* Activity comment posting */
    401                 if ( target.attr('name') == 'ac_form_submit' ) {
    402                         var form = target.parent().parent();
    403                         var form_parent = form.parent();
    404                         var form_id = form.attr('id').split('-');
    405 
    406                         if ( !form_parent.hasClass('activity-comments') ) {
    407                                 var tmp_id = form_parent.attr('id').split('-');
    408                                 var comment_id = tmp_id[1];
    409                         } else {
    410                                 var comment_id = form_id[2];
    411                         }
    412 
    413                         /* Hide any error messages */
    414                         jq( 'form#' + form.attr('id') + ' div.error').hide();
    415                         target.addClass('loading').prop('disabled', true);
    416 
    417                         var ajaxdata = {
    418                                 action: 'new_activity_comment',
    419                                 'cookie': encodeURIComponent(document.cookie),
    420                                 '_wpnonce_new_activity_comment': jq("input#_wpnonce_new_activity_comment").val(),
    421                                 'comment_id': comment_id,
    422                                 'form_id': form_id[2],
    423                                 'content': jq('form#' + form.attr('id') + ' textarea').val()
    424                         };
    425 
    426                         // Akismet
    427                         var ak_nonce = jq('#_bp_as_nonce_' + comment_id).val();
    428                         if ( ak_nonce ) {
    429                                 ajaxdata['_bp_as_nonce_' + comment_id] = ak_nonce;
    430                         }
    431 
    432                         jq.post( ajaxurl, ajaxdata,
    433                                 function(response)
    434                                 {
    435                                         target.removeClass('loading');
    436 
    437                                         /* Check for errors and append if found. */
    438                                         if ( response[0] + response[1] == '-1' ) {
    439                                                 form.append( response.substr( 2, response.length ) ).hide().fadeIn( 200 );
    440                                         } else {
    441                                                 form.fadeOut( 200,
    442                                                         function() {
    443                                                                 if ( 0 == form.parent().children('ul').length ) {
    444                                                                         if ( form.parent().hasClass('activity-comments') )
    445                                                                                 form.parent().prepend('<ul></ul>');
    446                                                                         else
    447                                                                                 form.parent().append('<ul></ul>');
    448                                                                 }
    449 
    450                                                                 form.parent().children('ul').append(response).hide().fadeIn( 200 );
    451                                                                 form.children('textarea').val('');
    452                                                                 form.parent().parent().addClass('has-comments');
    453                                                         }
    454                                                         );
    455                                                 jq( 'form#' + form.attr('id') + ' textarea').val('');
    456 
    457                                                 /* Increase the "Reply (X)" button count */
    458                                                 jq('li#activity-' + form_id[2] + ' a.acomment-reply span').html( Number( jq('li#activity-' + form_id[2] + ' a.acomment-reply span').html() ) + 1 );
    459                                         }
    460 
    461                                         jq(target).prop("disabled", false);
    462                                 });
    463 
    464                         return false;
    465                 }
    466 
    467                 /* Deleting an activity comment */
    468                 if ( target.hasClass('acomment-delete') ) {
    469                         var link_href = target.attr('href');
    470                         var comment_li = target.parent().parent();
    471                         var form = comment_li.parents('div.activity-comments').children('form');
    472 
    473                         var nonce = link_href.split('_wpnonce=');
    474                         nonce = nonce[1];
    475 
    476                         var comment_id = link_href.split('cid=');
    477                         comment_id = comment_id[1].split('&');
    478                         comment_id = comment_id[0];
    479 
    480                         target.addClass('loading');
    481 
    482                         /* Remove any error messages */
    483                         jq('.activity-comments ul .error').remove();
    484 
    485                         /* Reset the form position */
    486                         comment_li.parents('.activity-comments').append(form);
    487 
    488                         jq.post( ajaxurl, {
    489                                 action: 'delete_activity_comment',
    490                                 'cookie': encodeURIComponent(document.cookie),
    491                                 '_wpnonce': nonce,
    492                                 'id': comment_id
    493                         },
    494                         function(response)
    495                         {
    496                                 /* Check for errors and append if found. */
    497                                 if ( response[0] + response[1] == '-1' ) {
    498                                         comment_li.prepend( response.substr( 2, response.length ) ).hide().fadeIn( 200 );
    499                                 } else {
    500                                         var children = jq( 'li#' + comment_li.attr('id') + ' ul' ).children('li');
    501                                         var child_count = 0;
    502                                         jq(children).each( function() {
    503                                                 if ( !jq(this).is(':hidden') )
    504                                                         child_count++;
    505                                         });
    506                                         comment_li.fadeOut(200);
    507 
    508                                         /* Decrease the "Reply (X)" button count */
    509                                         var count_span = jq('li#' + comment_li.parents('ul#activity-stream > li').attr('id') + ' a.acomment-reply span');
    510                                         var new_count = count_span.html() - ( 1 + child_count );
    511                                         count_span.html(new_count);
    512 
    513                                         /* If that was the last comment for the item, remove the has-comments class to clean up the styling */
    514                                         if ( 0 == new_count ) {
    515                                                 jq(comment_li.parents('ul#activity-stream > li')).removeClass('has-comments');
    516                                         }
    517                                 }
    518                         });
    519 
    520                         return false;
    521                 }
    522 
    523                 // Spam an activity stream comment
    524                 if ( target.hasClass( 'spam-activity-comment' ) ) {
    525                         var link_href  = target.attr( 'href' );
    526                         var comment_li = target.parent().parent();
    527 
    528                         target.addClass('loading');
    529 
    530                         // Remove any error messages
    531                         jq( '.activity-comments ul div.error' ).remove();
    532 
    533                         // Reset the form position
    534                         comment_li.parents( '.activity-comments' ).append( comment_li.parents( '.activity-comments' ).children( 'form' ) );
    535 
    536                         jq.post( ajaxurl, {
    537                                 action: 'bp_spam_activity_comment',
    538                                 'cookie': encodeURIComponent( document.cookie ),
    539                                 '_wpnonce': link_href.split( '_wpnonce=' )[1],
    540                                 'id': link_href.split( 'cid=' )[1].split( '&' )[0]
    541                         },
    542 
    543                         function ( response ) {
    544                                 // Check for errors and append if found.
    545                                 if ( response[0] + response[1] == '-1' ) {
    546                                         comment_li.prepend( response.substr( 2, response.length ) ).hide().fadeIn( 200 );
    547 
    548                                 } else {
    549                                         var children = jq( 'li#' + comment_li.attr( 'id' ) + ' ul' ).children( 'li' );
    550                                         var child_count = 0;
    551                                         jq(children).each( function() {
    552                                                 if ( !jq( this ).is( ':hidden' ) ) {
    553                                                         child_count++;
    554                                                 }
    555                                         });
    556                                         comment_li.fadeOut( 200 );
    557 
    558                                         // Decrease the "Reply (X)" button count
    559                                         var parent_li = comment_li.parents( 'ul#activity-stream > li' );
    560                                         jq( 'li#' + parent_li.attr( 'id' ) + ' a.acomment-reply span' ).html( jq( 'li#' + parent_li.attr( 'id' ) + ' a.acomment-reply span' ).html() - ( 1 + child_count ) );
    561                                 }
    562                         });
    563 
    564                         return false;
    565                 }
    566 
    567                 /* Showing hidden comments - pause for half a second */
    568                 if ( target.parent().hasClass('show-all') ) {
    569                         target.parent().addClass('loading');
    570 
    571                         setTimeout( function() {
    572                                 target.parent().parent().children('li').fadeIn(200, function() {
    573                                         target.parent().remove();
    574                                 });
    575                         }, 600 );
    576 
    577                         return false;
    578                 }
    579         });
    580 
    581         /* Escape Key Press for cancelling comment forms */
    582         jq(document).keydown( function(e) {
    583                 e = e || window.event;
    584                 if (e.target)
    585                         element = e.target;
    586                 else if (e.srcElement)
    587                         element = e.srcElement;
    588 
    589                 if( element.nodeType == 3)
    590                         element = element.parentNode;
    591 
    592                 if( e.ctrlKey == true || e.altKey == true || e.metaKey == true )
    593                         return;
    594 
    595                 var keyCode = (e.keyCode) ? e.keyCode : e.which;
    596 
    597                 if ( keyCode == 27 ) {
    598                         if (element.tagName == 'TEXTAREA') {
    599                                 if ( jq(element).hasClass('ac-input') )
    600                                         jq(element).parent().parent().parent().slideUp( 200 );
    601                         }
    602                 }
    603         });
    604 
    605         /**** Directory Search ****************************************************/
    606 
    607         /* The search form on all directory pages */
    608         jq('.dir-search').click( function(event) {
    609                 if ( jq(this).hasClass('no-ajax') )
    610                         return;
    611 
    612                 var target = jq(event.target);
    613 
    614                 if ( target.attr('type') == 'submit' ) {
    615                         var css_id = jq('.item-list-tabs li.selected').attr('id').split( '-' );
    616                         var object = css_id[0];
    617 
    618                         bp_filter_request( object, jq.cookie('bp-' + object + '-filter'), jq.cookie('bp-' + object + '-scope') , 'div.' + object, target.parent().children('label').children('input').val(), 1, jq.cookie('bp-' + object + '-extras') );
    619 
    620                         return false;
    621                 }
    622         });
    623 
    624         /**** Tabs and Filters ****************************************************/
    625 
    626         /* When a navigation tab is clicked - e.g. | All Groups | My Groups | */
    627         jq('div.item-list-tabs').click( function(event) {
    628                 if ( jq(this).hasClass('no-ajax') )
    629                         return;
    630 
    631                 var target = jq(event.target).parent();
    632 
    633                 if ( 'LI' == event.target.parentNode.nodeName && !target.hasClass('last') ) {
    634                         var css_id = target.attr('id').split( '-' );
    635                         var object = css_id[0];
    636 
    637                         if ( 'activity' == object )
    638                                 return false;
    639 
    640                         var scope = css_id[1];
    641                         var filter = jq("#" + object + "-order-select select").val();
    642                         var search_terms = jq("#" + object + "_search").val();
    643 
    644                         bp_filter_request( object, filter, scope, 'div.' + object, search_terms, 1, jq.cookie('bp-' + object + '-extras') );
    645 
    646                         return false;
    647                 }
    648         });
    649 
    650         /* When the filter select box is changed re-query */
    651         jq('li.filter select').change( function() {
    652                 if ( jq('.item-list-tabs li.selected').length )
    653                         var el = jq('.item-list-tabs li.selected');
    654                 else
    655                         var el = jq(this);
    656 
    657                 var css_id = el.attr('id').split('-');
    658                 var object = css_id[0];
    659                 var scope = css_id[1];
    660                 var filter = jq(this).val();
    661                 var search_terms = false;
    662 
    663                 if ( jq('.dir-search input').length )
    664                         search_terms = jq('.dir-search input').val();
    665 
    666                 if ( 'friends' == object )
    667                         object = 'members';
    668 
    669                 bp_filter_request( object, filter, scope, 'div.' + object, search_terms, 1, jq.cookie('bp-' + object + '-extras') );
    670 
    671                 return false;
    672         });
    673 
    674         /* All pagination links run through this function */
    675         jq('div#content').click( function(event) {
    676                 var target = jq(event.target);
    677 
    678                 if ( target.hasClass('button') )
    679                         return true;
    680 
    681                 if ( target.parent().parent().hasClass('pagination') && !target.parent().parent().hasClass('no-ajax') ) {
    682                         if ( target.hasClass('dots') || target.hasClass('current') )
    683                                 return false;
    684 
    685                         if ( jq('.item-list-tabs li.selected').length )
    686                                 var el = jq('.item-list-tabs li.selected');
    687                         else
    688                                 var el = jq('li.filter select');
    689 
    690                         var page_number = 1;
    691                         var css_id = el.attr('id').split( '-' );
    692                         var object = css_id[0];
    693                         var search_terms = false;
    694 
    695                         if ( jq('div.dir-search input').length )
    696                                 search_terms = jq('.dir-search input').val();
    697 
    698                         if ( jq(target).hasClass('next') )
    699                                 var page_number = Number( jq('.pagination span.current').html() ) + 1;
    700                         else if ( jq(target).hasClass('prev') )
    701                                 var page_number = Number( jq('.pagination span.current').html() ) - 1;
    702                         else
    703                                 var page_number = Number( jq(target).html() );
    704 
    705                         bp_filter_request( object, jq.cookie('bp-' + object + '-filter'), jq.cookie('bp-' + object + '-scope'), 'div.' + object, search_terms, page_number, jq.cookie('bp-' + object + '-extras') );
    706 
    707                         return false;
    708                 }
    709 
    710         });
    711 
    712         /**** New Forum Directory Post **************************************/
    713 
    714         /* Hit the "New Topic" button on the forums directory page */
    715         jq('a.show-hide-new').click( function() {
    716                 if ( !jq('#new-topic-post').length )
    717                         return false;
    718 
    719                 if ( jq('#new-topic-post').is(":visible") )
    720                         jq('#new-topic-post').slideUp(200);
    721                 else
    722                         jq('#new-topic-post').slideDown(200, function() {
    723                                 jq('#topic_title').focus();
    724                         } );
    725 
    726                 return false;
    727         });
    728 
    729         /* Cancel the posting of a new forum topic */
    730         jq('input#submit_topic_cancel').click( function() {
    731                 if ( !jq('#new-topic-post').length )
    732                         return false;
    733 
    734                 jq('#new-topic-post').slideUp(200);
    735                 return false;
    736         });
    737 
    738         /* Clicking a forum tag */
    739         jq('#forum-directory-tags a').click( function() {
    740                 bp_filter_request( 'forums', 'tags', jq.cookie('bp-forums-scope'), 'div.forums', jq(this).html().replace( /&nbsp;/g, '-' ), 1, jq.cookie('bp-forums-extras') );
    741                 return false;
    742         });
    743 
    744         /** Invite Friends Interface ****************************************/
    745 
    746         /* Select a user from the list of friends and add them to the invite list */
    747         jq("div#invite-list input").click( function() {
    748                 jq('.ajax-loader').toggle();
    749 
    750                 var friend_id = jq(this).val();
    751 
    752                 if ( jq(this).prop('checked') == true )
    753                         var friend_action = 'invite';
    754                 else
    755                         var friend_action = 'uninvite';
    756 
    757                 jq('.item-list-tabs li.selected').addClass('loading');
    758 
    759                 jq.post( ajaxurl, {
    760                         action: 'groups_invite_user',
    761                         'friend_action': friend_action,
    762                         'cookie': encodeURIComponent(document.cookie),
    763                         '_wpnonce': jq("input#_wpnonce_invite_uninvite_user").val(),
    764                         'friend_id': friend_id,
    765                         'group_id': jq("input#group_id").val()
    766                 },
    767                 function(response)
    768                 {
    769                         if ( jq("#message") )
    770                                 jq("#message").hide();
    771 
    772                         jq('.ajax-loader').toggle();
    773 
    774                         if ( friend_action == 'invite' ) {
    775                                 jq('#friend-list').append(response);
    776                         } else if ( friend_action == 'uninvite' ) {
    777                                 jq('#friend-list li#uid-' + friend_id).remove();
    778                         }
    779 
    780                         jq('.item-list-tabs li.selected').removeClass('loading');
    781                 });
    782         });
    783 
    784         /* Remove a user from the list of users to invite to a group */
    785         jq("#friend-list li a.remove").live('click', function() {
    786                 jq('.ajax-loader').toggle();
    787 
    788                 var friend_id = jq(this).attr('id');
    789                 friend_id = friend_id.split('-');
    790                 friend_id = friend_id[1];
    791 
    792                 jq.post( ajaxurl, {
    793                         action: 'groups_invite_user',
    794                         'friend_action': 'uninvite',
    795                         'cookie': encodeURIComponent(document.cookie),
    796                         '_wpnonce': jq("input#_wpnonce_invite_uninvite_user").val(),
    797                         'friend_id': friend_id,
    798                         'group_id': jq("input#group_id").val()
    799                 },
    800                 function(response)
    801                 {
    802                         jq('.ajax-loader').toggle();
    803                         jq('#friend-list li#uid-' + friend_id).remove();
    804                         jq('#invite-list input#f-' + friend_id).prop('checked', false);
    805                 });
    806 
    807                 return false;
    808         });
    809 
    810         /** Profile Visibility Settings *********************************/
    811         jq('.field-visibility-settings').hide();
    812         jq('.visibility-toggle-link').on( 'click', function() {
    813                 var toggle_div = jq(this).parent();
    814                
    815                 jq(toggle_div).fadeOut( 600, function(){
    816                         jq(toggle_div).siblings('.field-visibility-settings').slideDown(400);
    817                 });
    818                
    819                 return false;
    820         } );
    821 
    822         jq('.field-visibility-settings-close').on( 'click', function() {
    823                 var settings_div = jq(this).parent();
    824                
    825                 jq(settings_div).slideUp( 400, function(){
    826                         jq(settings_div).siblings('.field-visibility-settings-toggle').fadeIn(800);
    827                 });
    828                
    829                 return false;
    830         } );
    831 
    832 
    833         /** Friendship Requests **************************************/
    834 
    835         /* Accept and Reject friendship request buttons */
    836         jq("ul#friend-list a.accept, ul#friend-list a.reject").click( function() {
    837                 var button = jq(this);
    838                 var li = jq(this).parents('ul#friend-list li');
    839                 var action_div = jq(this).parents('li div.action');
    840 
    841                 var id = li.attr('id').substr( 11, li.attr('id').length );
    842                 var link_href = button.attr('href');
    843 
    844                 var nonce = link_href.split('_wpnonce=');
    845                 nonce = nonce[1];
    846 
    847                 if ( jq(this).hasClass('accepted') || jq(this).hasClass('rejected') )
    848                         return false;
    849 
    850                 if ( jq(this).hasClass('accept') ) {
    851                         var action = 'accept_friendship';
    852                         action_div.children('a.reject').css( 'visibility', 'hidden' );
    853                 } else {
    854                         var action = 'reject_friendship';
    855                         action_div.children('a.accept').css( 'visibility', 'hidden' );
    856                 }
    857 
    858                 button.addClass('loading');
    859 
    860                 jq.post( ajaxurl, {
    861                         action: action,
    862                         'cookie': encodeURIComponent(document.cookie),
    863                         'id': id,
    864                         '_wpnonce': nonce
    865                 },
    866                 function(response) {
    867                         button.removeClass('loading');
    868 
    869                         if ( response[0] + response[1] == '-1' ) {
    870                                 li.prepend( response.substr( 2, response.length ) );
    871                                 li.children('div#message').hide().fadeIn(200);
    872                         } else {
    873                                 button.fadeOut( 100, function() {
    874                                         if ( jq(this).hasClass('accept') ) {
    875                                                 action_div.children('a.reject').hide();
    876                                                 jq(this).html( BP_DTheme.accepted ).fadeIn(50);
    877                                                 jq(this).addClass('accepted');
    878                                         } else {
    879                                                 action_div.children('a.accept').hide();
    880                                                 jq(this).html( BP_DTheme.rejected ).fadeIn(50);
    881                                                 jq(this).addClass('rejected');
    882                                         }
    883                                 });
    884                         }
    885                 });
    886 
    887                 return false;
    888         });
    889 
    890         /* Add / Remove friendship buttons */
    891         jq(".friendship-button a").live('click', function() {
    892                 jq(this).parent().addClass('loading');
    893                 var fid = jq(this).attr('id');
    894                 fid = fid.split('-');
    895                 fid = fid[1];
    896 
    897                 var nonce = jq(this).attr('href');
    898                 nonce = nonce.split('?_wpnonce=');
    899                 nonce = nonce[1].split('&');
    900                 nonce = nonce[0];
    901 
    902                 var thelink = jq(this);
    903 
    904                 jq.post( ajaxurl, {
    905                         action: 'addremove_friend',
    906                         'cookie': encodeURIComponent(document.cookie),
    907                         'fid': fid,
    908                         '_wpnonce': nonce
    909                 },
    910                 function(response)
    911                 {
    912                         var action = thelink.attr('rel');
    913                         var parentdiv = thelink.parent();
    914 
    915                         if ( action == 'add' ) {
    916                                 jq(parentdiv).fadeOut(200,
    917                                         function() {
    918                                                 parentdiv.removeClass('add_friend');
    919                                                 parentdiv.removeClass('loading');
    920                                                 parentdiv.addClass('pending_friend');
    921                                                 parentdiv.fadeIn(200).html(response);
    922                                         }
    923                                         );
    924 
    925                         } else if ( action == 'remove' ) {
    926                                 jq(parentdiv).fadeOut(200,
    927                                         function() {
    928                                                 parentdiv.removeClass('remove_friend');
    929                                                 parentdiv.removeClass('loading');
    930                                                 parentdiv.addClass('add');
    931                                                 parentdiv.fadeIn(200).html(response);
    932                                         }
    933                                         );
    934                         }
    935                 });
    936                 return false;
    937         } );
    938 
    939         /** Group Join / Leave Buttons **************************************/
    940 
    941         jq(".group-button a").live('click', function() {
    942                 var gid = jq(this).parent().attr('id');
    943                 gid = gid.split('-');
    944                 gid = gid[1];
    945 
    946                 var nonce = jq(this).attr('href');
    947                 nonce = nonce.split('?_wpnonce=');
    948                 nonce = nonce[1].split('&');
    949                 nonce = nonce[0];
    950 
    951                 var thelink = jq(this);
    952 
    953                 jq.post( ajaxurl, {
    954                         action: 'joinleave_group',
    955                         'cookie': encodeURIComponent(document.cookie),
    956                         'gid': gid,
    957                         '_wpnonce': nonce
    958                 },
    959                 function(response)
    960                 {
    961                         var parentdiv = thelink.parent();
    962 
    963                         if ( !jq('body.directory').length )
    964                                 location.href = location.href;
    965                         else {
    966                                 jq(parentdiv).fadeOut(200,
    967                                         function() {
    968                                                 parentdiv.fadeIn(200).html(response);
    969                                         }
    970                                         );
    971                         }
    972                 });
    973                 return false;
    974         } );
    975 
    976         /** Button disabling ************************************************/
    977 
    978         jq('.pending').click(function() {
    979                 return false;
    980         });
    981 
    982         /** Private Messaging ******************************************/
    983 
    984         /** Message search*/
    985         jq('.message-search').click( function(event) {
    986                 if ( jq(this).hasClass('no-ajax') )
    987                         return;
    988 
    989                 var target = jq(event.target);
    990 
    991                 if ( target.attr('type') == 'submit' ) {
    992                         //var css_id = jq('.item-list-tabs li.selected').attr('id').split( '-' );
    993                         var object = 'messages';
    994 
    995                         bp_filter_request( object, jq.cookie('bp-' + object + '-filter'), jq.cookie('bp-' + object + '-scope') , 'div.' + object, target.parent().children('label').children('input').val(), 1, jq.cookie('bp-' + object + '-extras') );
    996 
    997                         return false;
    998                 }
    999         });
    1000 
    1001         /* AJAX send reply functionality */
    1002         jq("input#send_reply_button").click(
    1003                 function() {
    1004                         var order = jq('#messages_order').val() || 'ASC',
    1005                         offset = jq('#message-recipients').offset();
    1006 
    1007                         var button = jq("input#send_reply_button");
    1008                         jq(button).addClass('loading');
    1009 
    1010                         jq.post( ajaxurl, {
    1011                                 action: 'messages_send_reply',
    1012                                 'cookie': encodeURIComponent(document.cookie),
    1013                                 '_wpnonce': jq("input#send_message_nonce").val(),
    1014 
    1015                                 'content': jq("#message_content").val(),
    1016                                 'send_to': jq("input#send_to").val(),
    1017                                 'subject': jq("input#subject").val(),
    1018                                 'thread_id': jq("input#thread_id").val()
    1019                         },
    1020                         function(response)
    1021                         {
    1022                                 if ( response[0] + response[1] == "-1" ) {
    1023                                         jq('form#send-reply').prepend( response.substr( 2, response.length ) );
    1024                                 } else {
    1025                                         jq('form#send-reply div#message').remove();
    1026                                         jq("#message_content").val('');
    1027 
    1028                                         if ( 'ASC' == order ) {
    1029                                                 jq('form#send-reply').before( response );
    1030                                         } else {
    1031                                                 jq('#message-recipients').after( response );
    1032                                                 jq(window).scrollTop(offset.top);
    1033                                         }
    1034 
    1035                                         jq(".new-message").hide().slideDown( 200, function() {
    1036                                                 jq('.new-message').removeClass('new-message');
    1037                                         });
    1038                                 }
    1039                                 jq(button).removeClass('loading');
    1040                         });
    1041 
    1042                         return false;
    1043                 }
    1044         );
    1045 
    1046         /* Marking private messages as read and unread */
    1047         jq("a#mark_as_read, a#mark_as_unread").click(function() {
    1048                 var checkboxes_tosend = '';
    1049                 var checkboxes = jq("#message-threads tr td input[type='checkbox']");
    1050 
    1051                 if ( 'mark_as_unread' == jq(this).attr('id') ) {
    1052                         var currentClass = 'read'
    1053                         var newClass = 'unread'
    1054                         var unreadCount = 1;
    1055                         var inboxCount = 0;
    1056                         var unreadCountDisplay = 'inline';
    1057                         var action = 'messages_markunread';
    1058                 } else {
    1059                         var currentClass = 'unread'
    1060                         var newClass = 'read'
    1061                         var unreadCount = 0;
    1062                         var inboxCount = 1;
    1063                         var unreadCountDisplay = 'none';
    1064                         var action = 'messages_markread';
    1065                 }
    1066 
    1067                 checkboxes.each( function(i) {
    1068                         if(jq(this).is(':checked')) {
    1069                                 if ( jq('tr#m-' + jq(this).attr('value')).hasClass(currentClass) ) {
    1070                                         checkboxes_tosend += jq(this).attr('value');
    1071                                         jq('tr#m-' + jq(this).attr('value')).removeClass(currentClass);
    1072                                         jq('tr#m-' + jq(this).attr('value')).addClass(newClass);
    1073                                         var thread_count = jq('tr#m-' + jq(this).attr('value') + ' td span.unread-count').html();
    1074 
    1075                                         jq('tr#m-' + jq(this).attr('value') + ' td span.unread-count').html(unreadCount);
    1076                                         jq('tr#m-' + jq(this).attr('value') + ' td span.unread-count').css('display', unreadCountDisplay);
    1077 
    1078                                         var inboxcount = jq('tr.unread').length;
    1079 
    1080                                         jq('a#user-messages span').html( inboxcount );
    1081 
    1082                                         if ( i != checkboxes.length - 1 ) {
    1083                                                 checkboxes_tosend += ','
    1084                                         }
    1085                                 }
    1086                         }
    1087                 });
    1088                 jq.post( ajaxurl, {
    1089                         action: action,
    1090                         'thread_ids': checkboxes_tosend
    1091                 });
    1092                 return false;
    1093         });
    1094 
    1095         /* Selecting unread and read messages in inbox */
    1096         jq("select#message-type-select").change(
    1097                 function() {
    1098                         var selection = jq("select#message-type-select").val();
    1099                         var checkboxes = jq("td input[type='checkbox']");
    1100                         checkboxes.each( function(i) {
    1101                                 checkboxes[i].checked = "";
    1102                         });
    1103 
    1104                         switch(selection) {
    1105                                 case 'unread':
    1106                                         var checkboxes = jq("tr.unread td input[type='checkbox']");
    1107                                         break;
    1108                                 case 'read':
    1109                                         var checkboxes = jq("tr.read td input[type='checkbox']");
    1110                                         break;
    1111                         }
    1112                         if ( selection != '' ) {
    1113                                 checkboxes.each( function(i) {
    1114                                         checkboxes[i].checked = "checked";
    1115                                 });
    1116                         } else {
    1117                                 checkboxes.each( function(i) {
    1118                                         checkboxes[i].checked = "";
    1119                                 });
    1120                         }
    1121                 }
    1122         );
    1123 
    1124         /* Bulk delete messages */
    1125         jq("a#delete_inbox_messages, a#delete_sentbox_messages").click( function() {
    1126                 checkboxes_tosend = '';
    1127                 checkboxes = jq("#message-threads tr td input[type='checkbox']");
    1128 
    1129                 jq('div#message').remove();
    1130                 jq(this).addClass('loading');
    1131 
    1132                 jq(checkboxes).each( function(i) {
    1133                         if( jq(this).is(':checked') )
    1134                                 checkboxes_tosend += jq(this).attr('value') + ',';
    1135                 });
    1136 
    1137                 if ( '' == checkboxes_tosend ) {
    1138                         jq(this).removeClass('loading');
    1139                         return false;
    1140                 }
    1141 
    1142                 jq.post( ajaxurl, {
    1143                         action: 'messages_delete',
    1144                         'thread_ids': checkboxes_tosend
    1145                 }, function(response) {
    1146                         if ( response[0] + response[1] == "-1" ) {
    1147                                 jq('#message-threads').prepend( response.substr( 2, response.length ) );
    1148                         } else {
    1149                                 jq('#message-threads').before( '<div id="message" class="updated"><p>' + response + '</p></div>' );
    1150 
    1151                                 jq(checkboxes).each( function(i) {
    1152                                         if( jq(this).is(':checked') )
    1153                                                 jq(this).parent().parent().fadeOut(150);
    1154                                 });
    1155                         }
    1156 
    1157                         jq('div#message').hide().slideDown(150);
    1158                         jq("a#delete_inbox_messages, a#delete_sentbox_messages").removeClass('loading');
    1159                 });
    1160                 return false;
    1161         });
    1162 
    1163         /* Close site wide notices in the sidebar */
    1164         jq("a#close-notice").click( function() {
    1165                 jq(this).addClass('loading');
    1166                 jq('div#sidebar div.error').remove();
    1167 
    1168                 jq.post( ajaxurl, {
    1169                         action: 'messages_close_notice',
    1170                         'notice_id': jq('.notice').attr('rel').substr( 2, jq('.notice').attr('rel').length )
    1171                 },
    1172                 function(response) {
    1173                         jq("a#close-notice").removeClass('loading');
    1174 
    1175                         if ( response[0] + response[1] == '-1' ) {
    1176                                 jq('.notice').prepend( response.substr( 2, response.length ) );
    1177                                 jq( 'div#sidebar div.error').hide().fadeIn( 200 );
    1178                         } else {
    1179                                 jq('.notice').slideUp( 100 );
    1180                         }
    1181                 });
    1182                 return false;
    1183         });
    1184 
    1185         /* Toolbar & wp_list_pages Javascript IE6 hover class */
    1186         jq("#wp-admin-bar ul.main-nav li, #nav li").mouseover( function() {
    1187                 jq(this).addClass('sfhover');
    1188         });
    1189 
    1190         jq("#wp-admin-bar ul.main-nav li, #nav li").mouseout( function() {
    1191                 jq(this).removeClass('sfhover');
    1192         });
    1193 
    1194         /* Clear BP cookies on logout */
    1195         jq('a.logout').click( function() {
    1196                 jq.cookie('bp-activity-scope', null, {
    1197                         path: '/'
    1198                 });
    1199                 jq.cookie('bp-activity-filter', null, {
    1200                         path: '/'
    1201                 });
    1202                 jq.cookie('bp-activity-oldestpage', null, {
    1203                         path: '/'
    1204                 });
    1205 
    1206                 var objects = [ 'members', 'groups', 'blogs', 'forums' ];
    1207                 jq(objects).each( function(i) {
    1208                         jq.cookie('bp-' + objects[i] + '-scope', null, {
    1209                                 path: '/'
    1210                         } );
    1211                         jq.cookie('bp-' + objects[i] + '-filter', null, {
    1212                                 path: '/'
    1213                         } );
    1214                         jq.cookie('bp-' + objects[i] + '-extras', null, {
    1215                                 path: '/'
    1216                         } );
    1217                 });
    1218         });
    1219 });
    1220 
    1221 /* Setup activity scope and filter based on the current cookie settings. */
    1222 function bp_init_activity() {
    1223         /* Reset the page */
    1224         jq.cookie( 'bp-activity-oldestpage', 1, {
    1225                 path: '/'
    1226         } );
    1227 
    1228         if ( null != jq.cookie('bp-activity-filter') && jq('#activity-filter-select').length )
    1229                 jq('#activity-filter-select select option[value="' + jq.cookie('bp-activity-filter') + '"]').prop( 'selected', true );
    1230 
    1231         /* Activity Tab Set */
    1232         if ( null != jq.cookie('bp-activity-scope') && jq('.activity-type-tabs').length ) {
    1233                 jq('.activity-type-tabs li').each( function() {
    1234                         jq(this).removeClass('selected');
    1235                 });
    1236                 jq('li#activity-' + jq.cookie('bp-activity-scope') + ', .item-list-tabs li.current').addClass('selected');
    1237         }
    1238 }
    1239 
    1240 /* Setup object scope and filter based on the current cookie settings for the object. */
    1241 function bp_init_objects(objects) {
    1242         jq(objects).each( function(i) {
    1243                 if ( null != jq.cookie('bp-' + objects[i] + '-filter') && jq('li#' + objects[i] + '-order-select select').length )
    1244                         jq('li#' + objects[i] + '-order-select select option[value="' + jq.cookie('bp-' + objects[i] + '-filter') + '"]').prop( 'selected', true );
    1245 
    1246                 if ( null != jq.cookie('bp-' + objects[i] + '-scope') && jq('div.' + objects[i]).length ) {
    1247                         jq('.item-list-tabs li').each( function() {
    1248                                 jq(this).removeClass('selected');
    1249                         });
    1250                         jq('.item-list-tabs li#' + objects[i] + '-' + jq.cookie('bp-' + objects[i] + '-scope') + ', div.item-list-tabs#object-nav li.current').addClass('selected');
    1251                 }
    1252         });
    1253 }
    1254 
    1255 /* Filter the current content list (groups/members/blogs/topics) */
    1256 function bp_filter_request( object, filter, scope, target, search_terms, page, extras ) {
    1257         if ( 'activity' == object )
    1258                 return false;
    1259 
    1260         if ( jq.query.get('s') && !search_terms )
    1261                 search_terms = jq.query.get('s');
    1262 
    1263         if ( null == scope )
    1264                 scope = 'all';
    1265 
    1266         /* Save the settings we want to remain persistent to a cookie */
    1267         jq.cookie( 'bp-' + object + '-scope', scope, {
    1268                 path: '/'
    1269         } );
    1270         jq.cookie( 'bp-' + object + '-filter', filter, {
    1271                 path: '/'
    1272         } );
    1273         jq.cookie( 'bp-' + object + '-extras', extras, {
    1274                 path: '/'
    1275         } );
    1276 
    1277         /* Set the correct selected nav and filter */
    1278         jq('.item-list-tabs li').each( function() {
    1279                 jq(this).removeClass('selected');
    1280         });
    1281         jq('.item-list-tabs li#' + object + '-' + scope + ', .item-list-tabs#object-nav li.current').addClass('selected');
    1282         jq('.item-list-tabs li.selected').addClass('loading');
    1283         jq('.item-list-tabs select option[value="' + filter + '"]').prop( 'selected', true );
    1284 
    1285         if ( 'friends' == object )
    1286                 object = 'members';
    1287 
    1288         if ( bp_ajax_request )
    1289                 bp_ajax_request.abort();
    1290 
    1291         bp_ajax_request = jq.post( ajaxurl, {
    1292                 action: object + '_filter',
    1293                 'cookie': encodeURIComponent(document.cookie),
    1294                 'object': object,
    1295                 'filter': filter,
    1296                 'search_terms': search_terms,
    1297                 'scope': scope,
    1298                 'page': page,
    1299                 'extras': extras
    1300         },
    1301         function(response)
    1302         {
    1303                 jq(target).fadeOut( 100, function() {
    1304                         jq(this).html(response);
    1305                         jq(this).fadeIn(100);
    1306                 });
    1307                 jq('.item-list-tabs li.selected').removeClass('loading');
    1308         });
    1309 }
    1310 
    1311 /* Activity Loop Requesting */
    1312 function bp_activity_request(scope, filter) {
    1313         /* Save the type and filter to a session cookie */
    1314         jq.cookie( 'bp-activity-scope', scope, {
    1315                 path: '/'
    1316         } );
    1317         jq.cookie( 'bp-activity-filter', filter, {
    1318                 path: '/'
    1319         } );
    1320         jq.cookie( 'bp-activity-oldestpage', 1, {
    1321                 path: '/'
    1322         } );
    1323 
    1324         /* Remove selected and loading classes from tabs */
    1325         jq('.item-list-tabs li').each( function() {
    1326                 jq(this).removeClass('selected loading');
    1327         });
    1328         /* Set the correct selected nav and filter */
    1329         jq('li#activity-' + scope + ', .item-list-tabs li.current').addClass('selected');
    1330         jq('#object-nav.item-list-tabs li.selected, div.activity-type-tabs li.selected').addClass('loading');
    1331         jq('#activity-filter-select select option[value="' + filter + '"]').prop( 'selected', true );
    1332 
    1333         /* Reload the activity stream based on the selection */
    1334         jq('.widget_bp_activity_widget h2 span.ajax-loader').show();
    1335 
    1336         if ( bp_ajax_request )
    1337                 bp_ajax_request.abort();
    1338 
    1339         bp_ajax_request = jq.post( ajaxurl, {
    1340                 action: 'activity_widget_filter',
    1341                 'cookie': encodeURIComponent(document.cookie),
    1342                 '_wpnonce_activity_filter': jq("input#_wpnonce_activity_filter").val(),
    1343                 'scope': scope,
    1344                 'filter': filter
    1345         },
    1346         function(response)
    1347         {
    1348                 jq('.widget_bp_activity_widget h2 span.ajax-loader').hide();
    1349 
    1350                 jq('div.activity').fadeOut( 100, function() {
    1351                         jq(this).html(response.contents);
    1352                         jq(this).fadeIn(100);
    1353 
    1354                         /* Selectively hide comments */
    1355                         bp_legacy_theme_hide_comments();
    1356                 });
    1357 
    1358                 /* Update the feed link */
    1359                 if ( null != response.feed_url )
    1360                         jq('.directory #subnav li.feed a, .home-page #subnav li.feed a').attr('href', response.feed_url);
    1361 
    1362                 jq('.item-list-tabs li.selected').removeClass('loading');
    1363 
    1364         }, 'json' );
    1365 }
    1366 
    1367 /* Hide long lists of activity comments, only show the latest five root comments. */
    1368 function bp_legacy_theme_hide_comments() {
    1369         var comments_divs = jq('div.activity-comments');
    1370 
    1371         if ( !comments_divs.length )
    1372                 return false;
    1373 
    1374         comments_divs.each( function() {
    1375                 if ( jq(this).children('ul').children('li').length < 5 ) return;
    1376 
    1377                 var comments_div = jq(this);
    1378                 var parent_li = comments_div.parents('ul#activity-stream > li');
    1379                 var comment_lis = jq(this).children('ul').children('li');
    1380                 var comment_count = ' ';
    1381 
    1382                 if ( jq('li#' + parent_li.attr('id') + ' a.acomment-reply span').length )
    1383                         var comment_count = jq('li#' + parent_li.attr('id') + ' a.acomment-reply span').html();
    1384 
    1385                 comment_lis.each( function(i) {
    1386                         /* Show the latest 5 root comments */
    1387                         if ( i < comment_lis.length - 5 ) {
    1388                                 jq(this).addClass('hidden');
    1389                                 jq(this).toggle();
    1390 
    1391                                 if ( !i )
    1392                                         jq(this).before( '<li class="show-all"><a href="#' + parent_li.attr('id') + '/show-all/" title="' + BP_DTheme.show_all_comments + '">' + BP_DTheme.show_all + ' ' + comment_count + ' ' + BP_DTheme.comments + '</a></li>' );
    1393                         }
    1394                 });
    1395 
    1396         });
    1397 }
    1398 
    1399 /* Helper Functions */
    1400 
    1401 function checkAll() {
    1402         var checkboxes = document.getElementsByTagName("input");
    1403         for(var i=0; i<checkboxes.length; i++) {
    1404                 if(checkboxes[i].type == "checkbox") {
    1405                         if($("check_all").checked == "") {
    1406                                 checkboxes[i].checked = "";
    1407                         }
    1408                         else {
    1409                                 checkboxes[i].checked = "checked";
    1410                         }
    1411                 }
    1412         }
    1413 }
    1414 
    1415 function clear(container) {
    1416         if( !document.getElementById(container) ) return;
    1417 
    1418         var container = document.getElementById(container);
    1419 
    1420         if ( radioButtons = container.getElementsByTagName('INPUT') ) {
    1421                 for(var i=0; i<radioButtons.length; i++) {
    1422                         radioButtons[i].checked = '';
    1423                 }
    1424         }
    1425 
    1426         if ( options = container.getElementsByTagName('OPTION') ) {
    1427                 for(var i=0; i<options.length; i++) {
    1428                         options[i].selected = false;
    1429                 }
    1430         }
    1431 
    1432         return;
    1433 }
    1434 
    1435 /* ScrollTo plugin - just inline and minified */
    1436 ;(function(d){var k=d.scrollTo=function(a,i,e){d(window).scrollTo(a,i,e)};k.defaults={axis:'xy',duration:parseFloat(d.fn.jquery)>=1.3?0:1};k.window=function(a){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var a=this,i=!a.nodeName||d.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!i)return a;var e=(a.contentWindow||a).document||a.ownerDocument||a;return d.browser.safari||e.compatMode=='BackCompat'?e.body:e.documentElement})};d.fn.scrollTo=function(n,j,b){if(typeof j=='object'){b=j;j=0}if(typeof b=='function')b={onAfter:b};if(n=='max')n=9e9;b=d.extend({},k.defaults,b);j=j||b.speed||b.duration;b.queue=b.queue&&b.axis.length>1;if(b.queue)j/=2;b.offset=p(b.offset);b.over=p(b.over);return this._scrollable().each(function(){var q=this,r=d(q),f=n,s,g={},u=r.is('html,body');switch(typeof f){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)){f=p(f);break}f=d(f,this);case'object':if(f.is||f.style)s=(f=d(f)).offset()}d.each(b.axis.split(''),function(a,i){var e=i=='x'?'Left':'Top',h=e.toLowerCase(),c='scroll'+e,l=q[c],m=k.max(q,i);if(s){g[c]=s[h]+(u?0:l-r.offset()[h]);if(b.margin){g[c]-=parseInt(f.css('margin'+e))||0;g[c]-=parseInt(f.css('border'+e+'Width'))||0}g[c]+=b.offset[h]||0;if(b.over[h])g[c]+=f[i=='x'?'width':'height']()*b.over[h]}else{var o=f[h];g[c]=o.slice&&o.slice(-1)=='%'?parseFloat(o)/100*m:o}if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],m);if(!a&&b.queue){if(l!=g[c])t(b.onAfterFirst);delete g[c]}});t(b.onAfter);function t(a){r.animate(g,j,b.easing,a&&function(){a.call(this,n,b)})}}).end()};k.max=function(a,i){var e=i=='x'?'Width':'Height',h='scroll'+e;if(!d(a).is('html,body'))return a[h]-d(a)[e.toLowerCase()]();var c='client'+e,l=a.ownerDocument.documentElement,m=a.ownerDocument.body;return Math.max(l[h],m[h])-Math.min(l[c],m[c])};function p(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);
    1437 
    1438 /* jQuery Easing Plugin, v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ */
    1439 jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});
    1440 
    1441 /* jQuery Cookie plugin */
    1442 jQuery.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options.expires=-1;}var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;}expires='; expires='+date.toUTCString();}var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('');}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+'=')){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break;}}}return cookieValue;}};
    1443 
    1444 /* jQuery querystring plugin */
    1445 eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('M 6(A){4 $11=A.11||\'&\';4 $V=A.V===r?r:j;4 $1p=A.1p===r?\'\':\'[]\';4 $13=A.13===r?r:j;4 $D=$13?A.D===j?"#":"?":"";4 $15=A.15===r?r:j;v.1o=M 6(){4 f=6(o,t){8 o!=1v&&o!==x&&(!!t?o.1t==t:j)};4 14=6(1m){4 m,1l=/\\[([^[]*)\\]/g,T=/^([^[]+)(\\[.*\\])?$/.1r(1m),k=T[1],e=[];19(m=1l.1r(T[2]))e.u(m[1]);8[k,e]};4 w=6(3,e,7){4 o,y=e.1b();b(I 3!=\'X\')3=x;b(y===""){b(!3)3=[];b(f(3,L)){3.u(e.h==0?7:w(x,e.z(0),7))}n b(f(3,1a)){4 i=0;19(3[i++]!=x);3[--i]=e.h==0?7:w(3[i],e.z(0),7)}n{3=[];3.u(e.h==0?7:w(x,e.z(0),7))}}n b(y&&y.T(/^\\s*[0-9]+\\s*$/)){4 H=1c(y,10);b(!3)3=[];3[H]=e.h==0?7:w(3[H],e.z(0),7)}n b(y){4 H=y.B(/^\\s*|\\s*$/g,"");b(!3)3={};b(f(3,L)){4 18={};1w(4 i=0;i<3.h;++i){18[i]=3[i]}3=18}3[H]=e.h==0?7:w(3[H],e.z(0),7)}n{8 7}8 3};4 C=6(a){4 p=d;p.l={};b(a.C){v.J(a.Z(),6(5,c){p.O(5,c)})}n{v.J(1u,6(){4 q=""+d;q=q.B(/^[?#]/,\'\');q=q.B(/[;&]$/,\'\');b($V)q=q.B(/[+]/g,\' \');v.J(q.Y(/[&;]/),6(){4 5=1e(d.Y(\'=\')[0]||"");4 c=1e(d.Y(\'=\')[1]||"");b(!5)8;b($15){b(/^[+-]?[0-9]+\\.[0-9]*$/.1d(c))c=1A(c);n b(/^[+-]?[0-9]+$/.1d(c))c=1c(c,10)}c=(!c&&c!==0)?j:c;b(c!==r&&c!==j&&I c!=\'1g\')c=c;p.O(5,c)})})}8 p};C.1H={C:j,1G:6(5,1f){4 7=d.Z(5);8 f(7,1f)},1h:6(5){b(!f(5))8 d.l;4 K=14(5),k=K[0],e=K[1];4 3=d.l[k];19(3!=x&&e.h!=0){3=3[e.1b()]}8 I 3==\'1g\'?3:3||""},Z:6(5){4 3=d.1h(5);b(f(3,1a))8 v.1E(j,{},3);n b(f(3,L))8 3.z(0);8 3},O:6(5,c){4 7=!f(c)?x:c;4 K=14(5),k=K[0],e=K[1];4 3=d.l[k];d.l[k]=w(3,e.z(0),7);8 d},w:6(5,c){8 d.N().O(5,c)},1s:6(5){8 d.O(5,x).17()},1z:6(5){8 d.N().1s(5)},1j:6(){4 p=d;v.J(p.l,6(5,7){1y p.l[5]});8 p},1F:6(Q){4 D=Q.B(/^.*?[#](.+?)(?:\\?.+)?$/,"$1");4 S=Q.B(/^.*?[?](.+?)(?:#.+)?$/,"$1");8 M C(Q.h==S.h?\'\':S,Q.h==D.h?\'\':D)},1x:6(){8 d.N().1j()},N:6(){8 M C(d)},17:6(){6 F(G){4 R=I G=="X"?f(G,L)?[]:{}:G;b(I G==\'X\'){6 1k(o,5,7){b(f(o,L))o.u(7);n o[5]=7}v.J(G,6(5,7){b(!f(7))8 j;1k(R,5,F(7))})}8 R}d.l=F(d.l);8 d},1B:6(){8 d.N().17()},1D:6(){4 i=0,U=[],W=[],p=d;4 16=6(E){E=E+"";b($V)E=E.B(/ /g,"+");8 1C(E)};4 1n=6(1i,5,7){b(!f(7)||7===r)8;4 o=[16(5)];b(7!==j){o.u("=");o.u(16(7))}1i.u(o.P(""))};4 F=6(R,k){4 12=6(5){8!k||k==""?[5].P(""):[k,"[",5,"]"].P("")};v.J(R,6(5,7){b(I 7==\'X\')F(7,12(5));n 1n(W,12(5),7)})};F(d.l);b(W.h>0)U.u($D);U.u(W.P($11));8 U.P("")}};8 M C(1q.S,1q.D)}}(v.1o||{});',62,106,'|||target|var|key|function|value|return|||if|val|this|tokens|is||length||true|base|keys||else||self||false|||push|jQuery|set|null|token|slice|settings|replace|queryObject|hash|str|build|orig|index|typeof|each|parsed|Array|new|copy|SET|join|url|obj|search|match|queryString|spaces|chunks|object|split|get||separator|newKey|prefix|parse|numbers|encode|COMPACT|temp|while|Object|shift|parseInt|test|decodeURIComponent|type|number|GET|arr|EMPTY|add|rx|path|addFields|query|suffix|location|exec|REMOVE|constructor|arguments|undefined|for|empty|delete|remove|parseFloat|compact|encodeURIComponent|toString|extend|load|has|prototype'.split('|'),0,{}))