<?php
/**
 * BuddyPress - Dedications
 */
?>

<?php global $bp, $post, $gp_settings; ?>

<?php get_header( 'buddypress' ); ?>

<?php if ( bp_is_my_profile() ) : ?>
        <?php bp_core_render_message(); ?>
        <?php if ( !bp_is_current_action( 'new-dedication' ) ) : ?>
            <?php require(ghostpool_scripts . 'comment-home.php'); ?>
            <?php locate_template( array( 'video-slider.php' ), true ); ?>
        <?php endif; ?>

        <?php
            $classcss = '';
            $idcss = 'fullwidth';
            
            if (bp_is_current_action('new-dedication')) :
                $idcss = '';
                $classcss = 'new-dedication';
            endif;
            
            if (bp_is_current_action('dedication-profile')) :
                $idcss = '';
                $classcss = 'dedication-profile';
            endif;
        ?>

	<div id="content<?php echo ($idcss) ? ' '.$idcss : '';?>" class="<?php echo $classcss;?>">
            <?php if ( !bp_is_current_action( 'new-dedication' ) ) : ?>
                <div id="precontent-wrapper">
                    <div id="dedicationComments_container" class="columns two first text-left">&nbsp;</div>
                </div>
                <div class="clear"></div>
            <?php endif; ?>
            
		<div class="padder">
                        <?php do_action('bp_before_member_plugin_template'); ?>

			<div id="item-body" role="main">

				<?php do_action( 'bp_before_member_body' ); ?>

				<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><!-- .padder -->
	</div><!-- #content -->
<?php else: ?>
	<div id="content" class="fullwidth">
		<div class="padder">
			<?php do_action( 'bp_before_member_home_content' ); ?>
                        
                            <div id="item-header" role="complementary">
                                    <?php locate_template( array( 'members/single/member-header.php' ), true ); ?>
                            </div>

			<?php do_action( 'bp_after_member_home_content' ); ?>
		</div><!-- .padder -->
	</div><!-- #content -->
<?php endif; ?>

<?php if ( bp_is_my_profile() ) : ?>        
    <?php get_sidebar( 'buddypress' ); ?>
<?php endif; ?>        
        
<?php get_footer( 'buddypress' ); ?>
