$social_right_content .= '<div class="row">'; $social_right_content .= '<div class="col-md-12">'; $social_right_content .= '<div class="actions">'; $social_right_content .= '<a href="' . api_get_path(WEB_PATH) . 'main/messages/inbox.php?f=social">' . Display::return_icon('back.png', get_lang('Back'), array(), 32) . '</a>'; $social_right_content .= '</div>'; $social_right_content .= '</div>'; $social_right_content .= '<div class="col-md-12">'; } // MAIN CONTENT if (!isset($_POST['compose'])) { if (isset($_GET['re_id'])) { $social_right_content .= show_compose_reply_to_message($_GET['re_id'], api_get_user_id()); } elseif (isset($_GET['send_to_user'])) { $social_right_content .= show_compose_to_user($_GET['send_to_user']); } else { $social_right_content .= show_compose_to_any(api_get_user_id()); } } else { $restrict = false; if (isset($_POST['users'])) { $restrict = true; } elseif (isset($_POST['group_id'])) { $restrict = true; } elseif (isset($_POST['hidden_user'])) { $restrict = true; } $default['title'] = $_POST['title']; $default['content'] = $_POST['content']; // comes from a reply button if (isset($_GET['re_id'])) { $social_right_content .= manage_form($default);
$social_left_content = SocialManager::show_social_menu('messages'); $social_right_content = '<div class="span9">'; $social_right_content .= '<div class="actions">'; $social_right_content .= '<a href="' . api_get_path(WEB_PATH) . 'main/messages/inbox.php?f=social">' . Display::return_icon('back.png', get_lang('Back'), array(), 32) . '</a>'; $social_right_content .= '</div>'; $social_right_content .= '</div>'; $social_right_content .= '<div class="span9">'; } //MAIN CONTENT if (!isset($_POST['compose'])) { if (isset($_GET['re_id'])) { $social_right_content .= show_compose_reply_to_message($_GET['re_id'], api_get_user_id()); } elseif (isset($_GET['send_to_user'])) { $social_right_content .= show_compose_to_user($_GET['send_to_user']); } else { $social_right_content .= show_compose_to_any($_user['user_id']); } } else { $restrict = false; if (isset($_POST['users'])) { $restrict = true; } elseif (isset($_POST['group_id'])) { $restrict = true; } elseif (isset($_POST['hidden_user'])) { $restrict = true; } $default['title'] = $_POST['title']; $default['content'] = $_POST['content']; // comes from a reply button if (isset($_GET['re_id'])) { $social_right_content .= manage_form($default);