Tarea #1037 -> Cuando veo el perfil de otro usuario, que salga sólo el avatar y las opciones que salen en la págiona de amigos (dedicar una canción, cancelar amistad)
git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@135 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6
This commit is contained in:
parent
df2a1060a7
commit
dba525e556
@ -8,6 +8,7 @@
|
||||
|
||||
<?php get_header( 'buddypress' ); ?>
|
||||
|
||||
<?php if ( bp_is_my_profile() ) : ?>
|
||||
<?php if ( !bp_is_current_action( 'new-dedication' ) ) : ?>
|
||||
<?php require(ghostpool_scripts . 'comment-home.php'); ?>
|
||||
<?php locate_template( array( 'video-slider.php' ), true ); ?>
|
||||
@ -55,6 +56,22 @@
|
||||
|
||||
</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_sidebar( 'buddypress' ); ?>
|
||||
<?php get_footer( 'buddypress' ); ?>
|
||||
|
||||
@ -81,7 +81,7 @@
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( is_user_logged_in() ) : ?>
|
||||
<?php if ( $bp->current_component == BP_DEDICATION_SLUG ) : ?>
|
||||
<?php if (( $bp->current_component == BP_DEDICATION_SLUG ) && (bp_is_my_profile())) : ?>
|
||||
<div id="header-profile">
|
||||
<?php locate_template( array( 'members/single/small-member-header.php' ), true ); ?>
|
||||
</div>
|
||||
|
||||
@ -411,12 +411,14 @@ if (!function_exists('bp_dtheme_enqueue_scripts')) {
|
||||
if (bp_is_active('friends'))
|
||||
add_action('bp_member_header_actions', 'bp_add_friend_button');
|
||||
|
||||
if (bp_is_active('activity'))
|
||||
add_action('bp_member_header_actions', 'bp_send_public_message_button');
|
||||
/*if (bp_is_active('activity'))
|
||||
add_action('bp_member_header_actions', 'bp_send_public_message_button');*/
|
||||
|
||||
if (bp_is_active('messages'))
|
||||
add_action('bp_member_header_actions', 'bp_send_private_message_button');
|
||||
/*if (bp_is_active('messages'))
|
||||
add_action('bp_member_header_actions', 'bp_send_private_message_button');*/
|
||||
|
||||
if (bp_is_active('dedications'))
|
||||
add_action('bp_member_header_actions', 'bp_member_add_dedicate_a_song_button');
|
||||
|
||||
// Group Buttons
|
||||
if (bp_is_active('groups')) {
|
||||
@ -431,8 +433,6 @@ if (bp_is_active('blogs'))
|
||||
add_action('bp_directory_blogs_actions', 'bp_blogs_visit_blog_button');
|
||||
|
||||
|
||||
|
||||
|
||||
add_filter('bp_get_the_profile_field_value', 'gp_bp_get_the_profile_field_value', 3);
|
||||
|
||||
function gp_bp_get_the_profile_field_value($value, $type = '', $id = '') {
|
||||
|
||||
@ -26,23 +26,10 @@
|
||||
<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 (0) /* 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' ); ?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user