';
-$social_post_wall_block .= '
Mis publicaciones
';
-$social_post_wall_block .='
';
-if(empty($post_wall)){
- $social_post_wall_block .= '
'.get_lang("NoPosts").'
';
-}else{
- $social_post_wall_block .= $post_wall;
-}
-$social_post_wall_block .= '
';
+$posts = SocialManager::getWallMessagesByUser($my_user_id, $friendId) ;
+
+$posts = empty($posts) ? '';
- $extra_information .= '
'.get_lang('ExtraInformation').'
';
- $extra_information .='
';
$extra_information_value = '';
$extraField = new ExtraField('user');
foreach ($extra_user_data as $key => $data) {
@@ -375,19 +368,21 @@ if ($show_full_profile) {
break;
}
}
-
}
+
// if there are information to show
if (!empty($extra_information_value)) {
- $extra_information .= $extra_information_value;
+ $extra_information .= Display::panel(
+ $extra_information_value,
+ get_lang('ExtraInformation')
+ );
}
- $extra_information .= '
'; //social-profile-info
}
// If there are information to show Block Extra Information
if (!empty($extra_information_value)) {
- $social_extra_info_block = $extra_information;
+ $social_extra_info_block = $extra_information;
}
// MY GROUPS
@@ -398,12 +393,14 @@ if ($show_full_profile) {
if (is_array($results) && count($results) > 0) {
$i = 1;
foreach ($results as $result) {
- if ($i > $max_numbers_of_group) break;
+ if ($i > $max_numbers_of_group) {
+ break;
+ }
$id = $result['id'];
$url_open = '';
$my_groups .= '
'.get_lang('MyGroups').' ('.$count_groups.')
';
@@ -512,7 +514,9 @@ if ($show_full_profile) {
}
$count_pending_invitations = 0;
- if (!isset($_GET['u']) || (isset($_GET['u']) && $_GET['u']==api_get_user_id())) {
+ if (!isset($_GET['u']) ||
+ (isset($_GET['u']) && $_GET['u']==api_get_user_id())
+ ) {
$pending_invitations = SocialManager::get_list_invitation_of_friends_by_user_id(api_get_user_id());
$list_get_path_web = SocialManager::get_list_web_path_user_invitation_by_user_id(api_get_user_id());
$count_pending_invitations = count($pending_invitations);
@@ -560,7 +564,7 @@ if ($show_full_profile) {
}
}
- //--Productions
+ // Productions
$production_list = UserManager::build_production_list($user_id);
$product_content = '';
diff --git a/main/template/default/layout/page_body.tpl b/main/template/default/layout/page_body.tpl
index ce5a28f3ca..2fdb4230c2 100755
--- a/main/template/default/layout/page_body.tpl
+++ b/main/template/default/layout/page_body.tpl
@@ -6,6 +6,7 @@
{% endif %}
{{ flash_messages }}
+
{# Page header #}
{% if header != '' %}