Tarea #1036 -> Poner 12 amigos en la lista del perfil. Y un "see more" que manda a la página de amigos.

git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@130 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6
This commit is contained in:
David Arranz 2012-08-27 16:07:09 +00:00
parent 825b2be8e7
commit 70cc000991
2 changed files with 27 additions and 4 deletions

View File

@ -49,7 +49,7 @@ if ( !function_exists( 'bp_core_install' ) ) {
. 'My Friends'
. $after_title; ?>
<?php if ( bp_has_members( 'type=newest&max=8&user_id=' . bp_loggedin_user_id() ) & is_user_logged_in() ) : ?>
<?php if ( bp_has_members( 'type=newest&max=12&user_id=' . bp_loggedin_user_id() ) & is_user_logged_in() ) : ?>
<div class="avatar-block">
<?php while ( bp_members() ) : bp_the_member(); ?>
<div class="item-avatar">
@ -66,6 +66,9 @@ if ( !function_exists( 'bp_core_install' ) ) {
<?php endif; ?>
<?php echo $after_widget; ?>
<?php
}
@ -88,7 +91,7 @@ if ( !function_exists( 'bp_core_install' ) ) {
. 'My Friends'
. $after_title; ?>
<?php if ( bp_has_members( 'type=newest&max=4&user_id=' . bp_loggedin_user_id() ) & is_user_logged_in() ) : ?>
<?php if ( bp_has_members( 'type=newest&max=12&user_id=' . bp_loggedin_user_id() ) & is_user_logged_in() ) : ?>
<div class="avatar-block">
<?php while ( bp_members() ) : bp_the_member(); ?>
@ -96,6 +99,9 @@ if ( !function_exists( 'bp_core_install' ) ) {
<?php endwhile; ?>
</div>
<?php if (bp_get_total_friend_count(bp_loggedin_user_id()) > 12) : ?>
<a title="<?php _e( 'See more friends', 'gp_lang' ); ?>" class="button" href="<?php echo bp_get_members_directory_permalink(); ?>"><span><?php _e( 'See more', 'gp_lang' ); ?></span></a>
<?php endif; ?>
<?php else: ?>
<div class="widget-error">

View File

@ -915,12 +915,13 @@ p.srp-widget-excerpt {
#sidebar #my-friends-big-avatars.widget .avatar-block,
#sidebar #my-friends-big-avatars.widget .avatar-link {
width: 100%;
text-align: left;
text-align: center;
}
#sidebar #my-friends-big-avatars.widget .avatar-block a {
display: inline-block;
width: 32%;
width: 60px;
height: 65px;
}
#sidebar #my-friends-big-avatars.widget .avatar-link {
@ -942,6 +943,22 @@ p.srp-widget-excerpt {
height: 50px;
}
#sidebar #my-friends-big-avatars.widget a.button {
background: none repeat scroll 0 0 #CCE6F5;
border: 1px solid #2C85C7;
color: #325670 !important;
display: inline-block;
padding: 6px 0;
text-align: center;
text-transform: none;
width: 100%;
font-size: 14px;
font-weight: bold;
margin-top: 10px;
border-radius: 0;
line-height: 14px;
}
/*************************** Page Navigation ***************************/