git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@156 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6
79 lines
2.4 KiB
PHP
79 lines
2.4 KiB
PHP
<?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 wp_enqueue_script('comment-home', get_template_directory_uri() . '/lib/scripts/comment-home.min.js'); ?>
|
|
<?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"> </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' ); ?>
|