diff --git a/app/Resources/public/css/base.css b/app/Resources/public/css/base.css
index e82f8dc50f..aabeca355f 100644
--- a/app/Resources/public/css/base.css
+++ b/app/Resources/public/css/base.css
@@ -931,7 +931,10 @@ a.personal_agenda:hover, a.personal_agenda:hover {
.message-attach {
float:left;
}
-
+#sn-extra-information .list-group-item{
+ padding: 5px 10px;
+ border: none;
+}
/** BUTTONS **/
diff --git a/main/social/profile.php b/main/social/profile.php
index f709932fa8..784a090483 100755
--- a/main/social/profile.php
+++ b/main/social/profile.php
@@ -324,7 +324,7 @@ if ($show_full_profile) {
$extra_information = '';
if (is_array($extra_user_data) && count($extra_user_data)>0 ) {
- $extra_information_value = '';
+ $extra_information_value = '
';
$extraField = new ExtraField('user');
foreach ($extra_user_data as $key => $data) {
// Avoiding parameters
@@ -350,8 +350,8 @@ if ($show_full_profile) {
}
if (is_array($data)) {
- $extra_information_value .= '- '.ucfirst($extraFieldInfo['display_text']).'
'
- .'- '.implode(',', $data).'
';
+ $extra_information_value .= '- '.ucfirst($extraFieldInfo['display_text']).' '
+ .' '.implode(',', $data).'
';
} else {
switch ($extraFieldInfo['field_type']) {
case ExtraField::FIELD_TYPE_DOUBLE_SELECT:
@@ -364,8 +364,8 @@ if ($show_full_profile) {
$row_options = Database::fetch_row($res_options);
$value_options[] = $row_options[0];
}
- $extra_information_value .= '- '.ucfirst($extraFieldInfo['display_text']).':
'
- .'- '.implode(' ', $value_options).'
';
+ $extra_information_value .= '- '.ucfirst($extraFieldInfo['display_text']).': '
+ .' '.implode(' ', $value_options).'
';
break;
case ExtraField::FIELD_TYPE_TAG:
$user_tags = UserManager::get_user_tags($user_id, $extraFieldInfo['id']);
@@ -378,8 +378,8 @@ if ($show_full_profile) {
.'';
}
if (is_array($user_tags) && count($user_tags)>0) {
- $extra_information_value .= '- '.ucfirst($extraFieldInfo['display_text']).':
'
- .'- '.implode('', $tag_tmp).'
';
+ $extra_information_value .= '- '.ucfirst($extraFieldInfo['display_text']).': '
+ .' '.implode('', $tag_tmp).'
';
}
break;
case ExtraField::FIELD_TYPE_SOCIAL_PROFILE:
@@ -395,7 +395,7 @@ if ($show_full_profile) {
.' style="margin-right:0.5em;margin-bottom:'.$bottom.'em;" />'
.$extraFieldInfo['display_text']
.'';
- $extra_information_value .= '- '.$data.'
';
+ $extra_information_value .= '- '.$data.'
';
break;
default:
if (!empty($data)) {
@@ -403,19 +403,23 @@ if ($show_full_profile) {
if ($extra_field_title == 'Skype') {
$data = '' . get_lang('Chat') . '';
}
- $extra_information_value .= '- ' . ucfirst($extraFieldInfo['display_text']) . ':
- ' . $data . '
';
+ $extra_information_value .= '- '.ucfirst($extraFieldInfo['display_text']).': '.$data.'
';
}
break;
}
}
}
+ $extra_information_value .= '
';
// if there are information to show
if (!empty($extra_information_value)) {
- $extra_information .= Display::panel(
- $extra_information_value,
- get_lang('ExtraInformation')
- );
+ $extra_information .= Display::panelCollapse(
+ get_lang('ExtraInformation'),
+ $extra_information_value,
+ 'sn-extra-information',
+ null, 'sn-extra-accordion',
+ 'sn-extra-collapse'
+ );
}
}