<?php
/**
 * The template for users profile
 *
 * This template can be overridden by copying it to yourtheme/buddypress/members/single/settings.php.
 *
 * @since   BuddyPress 1.0.0
 * @version 1.0.0
 */

if ( bp_core_can_edit_settings() ) {
	bp_get_template_part( 'members/single/parts/item-subnav' );
}

switch ( bp_current_action() ) :
	case 'notifications':
		if ( bp_action_variables() && 'subscriptions' === bp_action_variable( 0 ) ) {
			bp_get_template_part( 'members/single/settings/subscriptions' );
		} else {
			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;
	case 'profile':
		bp_get_template_part( 'members/single/settings/profile' );
		break;
	case 'invites':
		bp_get_template_part( 'members/single/settings/group-invites' );
		break;
	case 'export':
		bp_get_template_part( 'members/single/settings/export-data' );
		break;
	case 'blocked-members':
		bp_get_template_part( 'members/single/settings/moderation' );
		break;
	default:
		bp_get_template_part( 'members/single/plugins' );
		break;
endswitch;
