@@ -95,10 +95,10 @@ function hide_icon_edit(element_html) {
9595 for ($ i =1 ;$ i <=$ count_delete ;$ i ++) {
9696 MessageManager::delete_message_by_user_receiver (api_get_user_id (), $ info_delete [$ i ]);
9797 }
98- $ message_box =get_lang ('SelectedMessagesDeleted ' );
99- Display::display_normal_message (api_xml_http_response_encode ($ message_box ),false );
100- inbox_display ();
101- exit ;
98+ $ message_box =get_lang ('SelectedMessagesDeleted ' );
99+ Display::display_normal_message (api_xml_http_response_encode ($ message_box ),false );
100+ inbox_display ();
101+ exit ;
102102 }
103103}
104104
@@ -115,7 +115,7 @@ function hide_icon_edit(element_html) {
115115} else {
116116 $ this_section = SECTION_MYPROFILE ;
117117 $ interbreadcrumb []= array ('url ' => api_get_path (WEB_PATH ).'main/auth/profile.php ' ,'name ' => get_lang ('Profile ' ));
118- $ interbreadcrumb []= array ('url ' => 'outbox.php ' ,'name ' => get_lang ('Inbox ' ));
118+ $ interbreadcrumb []= array ('url ' => '# ' ,'name ' => get_lang ('Inbox ' ));
119119}
120120
121121Display::display_header ('' );
@@ -130,27 +130,24 @@ function hide_icon_edit(element_html) {
130130 if (api_get_setting ('allow_social_tool ' ) == 'true ' && api_get_setting ('allow_message_tool ' ) == 'true ' ) {
131131 echo '<a href=" ' .api_get_path (WEB_PATH ).'main/social/profile.php"> ' .Display::return_icon ('shared_profile.png ' , get_lang ('ViewSharedProfile ' )).' ' .get_lang ('ViewSharedProfile ' ).'</a> ' ;
132132 }
133+
133134 if (api_get_setting ('allow_message_tool ' ) == 'true ' ) {
134- echo '<a href=" ' .api_get_path (WEB_PATH ).'main/messages/inbox.php"> ' .Display::return_icon ('inbox.png ' ).' ' .get_lang ('Messages ' ).'</a> ' ;
135+ //echo '<a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php">'.Display::return_icon('inbox.png').' '.get_lang('Messages').'</a>';
136+ echo '<a href=" ' .api_get_path (WEB_PATH ).'main/messages/new_message.php"> ' .Display::return_icon ('message_new.png ' ,get_lang ('ComposeMessage ' )).get_lang ('ComposeMessage ' ).'</a> ' ;
137+ echo '<a href=" ' .api_get_path (WEB_PATH ).'main/messages/inbox.php"> ' .Display::return_icon ('inbox.png ' ,get_lang ('Inbox ' )).get_lang ('Inbox ' ).'</a> ' ;
138+ echo '<a href=" ' .api_get_path (WEB_PATH ).'main/messages/outbox.php"> ' .Display::return_icon ('outbox.png ' ,get_lang ('Outbox ' )).get_lang ('Outbox ' ).'</a> ' ;
139+
140+
135141 }
136- echo '<a href=" ' .api_get_path (WEB_PATH ).'main/auth/profile.php?type=reduced"> ' .Display::return_icon ('edit.gif ' , get_lang ('EditNormalProfile ' )).' ' .get_lang ('EditNormalProfile ' ).'</a> ' ;
142+ // echo '<a href="'.api_get_path(WEB_PATH).'main/auth/profile.php?type=reduced">'.Display::return_icon('edit.gif', get_lang('EditNormalProfile')).' '.get_lang('EditNormalProfile').'</a>';
137143 echo '</div> ' ;
138-
139-
140144}
141145
142146echo '<div id="social-content"> ' ;
143147 $ id_content_right = '' ;
144148 //LEFT CONTENT
145149 if (api_get_setting ('allow_social_tool ' ) != 'true ' ) {
146- $ id_content_right = 'inbox ' ;
147- echo '<div id="inbox-menu" class="actions"> ' ;
148- echo '<ul> ' ;
149- echo '<li><a href=" ' .api_get_path (WEB_PATH ).'main/messages/new_message.php"> ' .Display::return_icon ('message_new.png ' ,get_lang ('ComposeMessage ' )).get_lang ('ComposeMessage ' ).'</a> ' .'</li> ' ;
150- echo '<li><a href=" ' .api_get_path (WEB_PATH ).'main/messages/inbox.php"> ' .Display::return_icon ('inbox.png ' ,get_lang ('Inbox ' )).get_lang ('Inbox ' ).'</a> ' .'</li> ' ;
151- echo '<li><a href=" ' .api_get_path (WEB_PATH ).'main/messages/outbox.php"> ' .Display::return_icon ('outbox.png ' ,get_lang ('Outbox ' )).get_lang ('Outbox ' ).'</a> ' .'</li> ' ;
152- echo '</ul> ' ;
153- echo '</div> ' ;
150+ $ id_content_right = 'inbox ' ;
154151 } else {
155152 require_once api_get_path (LIBRARY_PATH ).'social.lib.php ' ;
156153 $ id_content_right = 'social-content-right ' ;
@@ -160,10 +157,8 @@ function hide_icon_edit(element_html) {
160157 echo '</div> ' ;
161158 }
162159
163- echo '<div id=" ' .$ id_content_right .'"> ' ;
164-
165- if (api_get_setting ('allow_social_tool ' ) == 'true ' ) {
166-
160+ echo '<div id=" ' .$ id_content_right .'"> ' ;
161+ if (api_get_setting ('allow_social_tool ' ) == 'true ' ) {
167162 echo '<div class="social-box-container2"> ' ;
168163 echo '<div class="actions"> ' ;
169164 echo '<a href=" ' .api_get_path (WEB_PATH ).'main/messages/new_message.php?f=social"> ' .Display::return_icon ('compose_message.png ' , get_lang ('ComposeMessage ' ), array (), 32 ).'</a> ' ;
0 commit comments