<?php get_header() ?>
<?php $DYN_layout=get_option("buddylayout"); ?>
<?php if($DYN_layout!="layout_four" && $DYN_layout!="layout_five") {

	get_sidebar();

} ?>

<div class="mid-wrap <?php

		if($DYN_layout=="layout_one") { ?> left out-full  <?php }

		elseif($DYN_layout=="layout_two") { ?> right out-threequarter  <?php }

		elseif($DYN_layout=="layout_three") { ?> right out-half  <?php }

		elseif($DYN_layout=="layout_four") { ?> left out-threequarter  <?php }

		elseif($DYN_layout=="layout_five") { ?> left out-half  <?php }

		elseif($DYN_layout=="layout_six") { ?> left out-half  <?php }

		else { ?> left out-threequarter  <?php }

	?>">

	<div id="container">
		<div id="content">

			<?php do_action( 'bp_before_member_plugin_template' ) ?>

			<div id="item-header">
				<?php locate_template( array( 'members/single/member-header.php' ), true ) ?>
			</div>

			<div id="item-nav">
				<div class="item-list-tabs no-ajax" id="object-nav">
					<ul>
						<?php bp_get_displayed_user_nav() ?>

						<?php do_action( 'bp_members_directory_member_types' ) ?>
					</ul>
				</div>
			</div>

			<div id="item-body">

				<div class="item-list-tabs no-ajax" id="subnav">
					<ul>
						<?php bp_get_options_nav() ?>
					</ul>
				</div>

				<?php do_action( 'bp_template_content' ) ?>

				<?php do_action( 'bp_directory_members_content' ) ?>

			</div><!-- #item-body -->

			<?php do_action( 'bp_after_member_plugin_template' ) ?>

		</div><!-- #content -->
	</div><!-- #container -->
	</div><!-- / mid-wrap -->

	<?php locate_template( array( 'sidebar.php' ), true ) ?>

	<?php do_action( 'bp_after_member_plugin_template' ) ?>

<?php get_footer() ?>
