diff --git a/main/messages/inbox.php b/main/messages/inbox.php index fd4cb5db2c..be7cb1d725 100755 --- a/main/messages/inbox.php +++ b/main/messages/inbox.php @@ -129,7 +129,8 @@ if (isset($_GET['f']) && $_GET['f'] == 'social' || api_get_setting('allow_social //LEFT CONTENT if (api_get_setting('allow_social_tool') == 'true') { - $social_left_content = SocialManager::show_social_menu('messages'); + $social_avatar_block = SocialManager::show_social_avatar_block('messages'); + $social_menu_block = SocialManager::show_social_menu('messages'); } //Right content @@ -165,7 +166,8 @@ if (api_get_setting('allow_social_tool') == 'true') { $tpl = new Template(null); if (api_get_setting('allow_social_tool') == 'true') { - $tpl->assign('social_left_content', $social_left_content); + $tpl->assign('social_avatar_block', $social_avatar_block); + $tpl->assign('social_menu_block', $social_menu_block); $tpl->assign('social_right_content', $social_right_content); $social_layout = $tpl->get_template('layout/social_layout.tpl'); $tpl->display($social_layout); diff --git a/main/messages/new_message.php b/main/messages/new_message.php index 0b6b017529..1de5fd1202 100755 --- a/main/messages/new_message.php +++ b/main/messages/new_message.php @@ -305,7 +305,8 @@ if ($group_id != 0) { // LEFT COLUMN $social_left_content = null; if (api_get_setting('allow_social_tool') == 'true') { - $social_left_content = SocialManager::show_social_menu('messages'); + $social_avatar_block = SocialManager::show_social_avatar_block('messages'); + $social_menu_block = SocialManager::show_social_menu('messages'); $social_right_content .= '
'; $social_right_content .= '
'; $social_right_content .= ''.Display::return_icon('back.png', get_lang('Back'), array(), 32).''; @@ -362,7 +363,8 @@ if (api_get_setting('allow_social_tool') == 'true') { $tpl = new Template(get_lang('ComposeMessage')); if (api_get_setting('allow_social_tool') == 'true') { - $tpl->assign('social_left_content', $social_left_content); + $tpl->assign('social_avatar_block', $social_avatar_block); + $tpl->assign('social_menu_block', $social_menu_block); $tpl->assign('social_right_content', $social_right_content); $social_layout = $tpl->get_template('layout/social_layout.tpl'); $tpl->display($social_layout); diff --git a/main/messages/outbox.php b/main/messages/outbox.php index 62215419c3..52145d0f35 100755 --- a/main/messages/outbox.php +++ b/main/messages/outbox.php @@ -108,7 +108,8 @@ if (isset($_REQUEST['action'])) { $social_right_content = ''; if (api_get_setting('allow_social_tool') == 'true') { - $social_left_content = SocialManager::show_social_menu('messages'); + $social_avatar_block = SocialManager::show_social_avatar_block('messages'); + $social_menu_block = SocialManager::show_social_menu('messages'); $social_right_content .= '
'; $social_right_content .= '
'; $social_right_content .= ''.Display::return_icon('back.png', get_lang('Back'), array(), 32).''; @@ -147,7 +148,8 @@ if (api_get_setting('allow_social_tool') == 'true') { $tpl = new Template(get_lang('ComposeMessage')); if (api_get_setting('allow_social_tool') == 'true') { - $tpl->assign('social_left_content', $social_left_content); + $tpl->assign('social_avatar_block', $social_avatar_block); + $tpl->assign('social_menu_block', $social_menu_block); $tpl->assign('social_right_content', $social_right_content); $social_layout = $tpl->get_template('layout/social_layout.tpl'); $tpl->display($social_layout); diff --git a/main/messages/view_message.php b/main/messages/view_message.php index 5a9ec00c6d..f85da17e35 100755 --- a/main/messages/view_message.php +++ b/main/messages/view_message.php @@ -54,7 +54,8 @@ $message = ''; //LEFT COLUMN if (api_get_setting('allow_social_tool') == 'true') { - $social_left_content = SocialManager::show_social_menu($show_menu); + $social_avatar_block = SocialManager::show_social_avatar_block($show_menu); + $social_menu_block = SocialManager::show_social_menu($show_menu); $message .='
'; } //MAIN CONTENT @@ -71,7 +72,8 @@ if (!empty($message)) { } $tpl = new Template(get_lang('View')); if (api_get_setting('allow_social_tool') == 'true') { - $tpl->assign('social_left_content', $social_left_content); + $tpl->assign('social_avatar_block', $social_avatar_block); + $tpl->assign('social_menu_block', $social_menu_block); $tpl->assign('social_right_content', $social_right_content); $social_layout = $tpl->get_template('layout/social_layout.tpl'); $tpl->display($social_layout);