| @@ 276-294 (lines=19) @@ | ||
| 273 | $social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/messages/new_message.php?group_id='.$group_id.'">'. |
|
| 274 | Display::return_icon('message_new.png',api_xml_http_response_encode(get_lang('ComposeMessage'))).'</a>'; |
|
| 275 | $social_right_content .= '</div>'; |
|
| 276 | } else { |
|
| 277 | if ($socialToolIsActive) { |
|
| 278 | } else { |
|
| 279 | $social_right_content .= '<div class=actions>'; |
|
| 280 | if (api_get_setting('allow_social_tool') == 'true' && api_get_setting('allow_message_tool') == 'true') { |
|
| 281 | $social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/social/profile.php">'. |
|
| 282 | Display::return_icon('shared_profile.png', get_lang('ViewSharedProfile')).'</a>'; |
|
| 283 | } |
|
| 284 | if (api_get_setting('allow_message_tool') == 'true') { |
|
| 285 | $social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/messages/new_message.php">'. |
|
| 286 | Display::return_icon('message_new.png',get_lang('ComposeMessage')).'</a>'; |
|
| 287 | $social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php">'. |
|
| 288 | Display::return_icon('inbox.png',get_lang('Inbox')).'</a>'; |
|
| 289 | $social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/messages/outbox.php">'. |
|
| 290 | Display::return_icon('outbox.png',get_lang('Outbox')).'</a>'; |
|
| 291 | } |
|
| 292 | $social_right_content .= '</div>'; |
|
| 293 | } |
|
| 294 | } |
|
| 295 | ||
| 296 | // LEFT COLUMN |
|
| 297 | $social_left_content = null; |
|
| @@ 26-44 (lines=19) @@ | ||
| 23 | ||
| 24 | if (isset($_GET['f']) && $_GET['f']=='social') { |
|
| 25 | $social_parameter = '?f=social'; |
|
| 26 | } else { |
|
| 27 | if (api_get_setting('extended_profile') == 'true') { |
|
| 28 | $social_right_content .= '<div class="actions">'; |
|
| 29 | ||
| 30 | if (api_get_setting('allow_social_tool') == 'true' && api_get_setting('allow_message_tool') == 'true') { |
|
| 31 | $social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/social/profile.php">'. |
|
| 32 | Display::return_icon('shared_profile.png', get_lang('ViewSharedProfile')).'</a>'; |
|
| 33 | } |
|
| 34 | if (api_get_setting('allow_message_tool') == 'true') { |
|
| 35 | $social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/messages/new_message.php">'. |
|
| 36 | Display::return_icon('message_new.png',get_lang('ComposeMessage')).'</a>'; |
|
| 37 | $social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php">'. |
|
| 38 | Display::return_icon('inbox.png',get_lang('Inbox')).'</a>'; |
|
| 39 | $social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/messages/outbox.php">'. |
|
| 40 | Display::return_icon('outbox.png',get_lang('Outbox')).'</a>'; |
|
| 41 | } |
|
| 42 | $social_right_content .= '</div>'; |
|
| 43 | } |
|
| 44 | } |
|
| 45 | ||
| 46 | if (empty($_GET['id'])) { |
|
| 47 | $id_message = $_GET['id_send']; |
|