|
|
|
@ -27,9 +27,7 @@ if (api_get_setting('allow_message_tool')!='true'){ |
|
|
|
|
//jquery thickbox already called from main/inc/header.inc.php |
|
|
|
|
|
|
|
|
|
$htmlHeadXtra[]='<script language="javascript"> |
|
|
|
|
<!-- |
|
|
|
|
function enviar(miforma) |
|
|
|
|
{ |
|
|
|
|
function enviar(miforma) { |
|
|
|
|
if(confirm("'.get_lang('SureYouWantToDeleteSelectedMessages', '').'")) |
|
|
|
|
miforma.submit(); |
|
|
|
|
} |
|
|
|
@ -55,7 +53,7 @@ function deselect_all(formita) |
|
|
|
|
/* |
|
|
|
|
MAIN CODE |
|
|
|
|
*/ |
|
|
|
|
if ($_GET['f']=='social') { |
|
|
|
|
if (isset($_GET['f']) && $_GET['f']=='social') { |
|
|
|
|
$this_section = SECTION_SOCIAL; |
|
|
|
|
$interbreadcrumb[]= array ('url' => api_get_path(WEB_PATH).'main/social/home.php','name' => get_lang('Social')); |
|
|
|
|
$interbreadcrumb[]= array ('url' => '#','name' => get_lang('Outbox')); |
|
|
|
@ -65,23 +63,20 @@ if ($_GET['f']=='social') { |
|
|
|
|
$interbreadcrumb[]= array ('url' => '#','name' => get_lang('Outbox')); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($_GET['f']=='social') { |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
if (api_get_setting('extended_profile') == 'true') { |
|
|
|
|
|
|
|
|
|
if (api_get_setting('allow_social_tool') == 'true' && api_get_setting('allow_message_tool') == 'true') { |
|
|
|
|
$actions .= '<a href="'.api_get_path(WEB_PATH).'main/social/profile.php">'.Display::return_icon('shared_profile.png', get_lang('ViewSharedProfile')).'</a>'; |
|
|
|
|
} |
|
|
|
|
if (api_get_setting('allow_message_tool') == 'true') { |
|
|
|
|
//echo '<a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php">'.Display::return_icon('inbox.png').' '.get_lang('Messages').'</a>'; |
|
|
|
|
$actions .= '<a href="'.api_get_path(WEB_PATH).'main/messages/new_message.php">'.Display::return_icon('message_new.png',get_lang('ComposeMessage')).'</a>'; |
|
|
|
|
$actions .= '<a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php">'.Display::return_icon('inbox.png',get_lang('Inbox')).'</a>'; |
|
|
|
|
$actions .= '<a href="'.api_get_path(WEB_PATH).'main/messages/outbox.php">'.Display::return_icon('outbox.png',get_lang('Outbox')).'</a>'; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$actions = ''; |
|
|
|
|
if (api_get_setting('extended_profile') == 'true') { |
|
|
|
|
if (api_get_setting('allow_social_tool') == 'true' && api_get_setting('allow_message_tool') == 'true') { |
|
|
|
|
$actions .= '<a href="'.api_get_path(WEB_PATH).'main/social/profile.php">'.Display::return_icon('shared_profile.png', get_lang('ViewSharedProfile')).'</a>'; |
|
|
|
|
} |
|
|
|
|
if (api_get_setting('allow_message_tool') == 'true') { |
|
|
|
|
//echo '<a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php">'.Display::return_icon('inbox.png').' '.get_lang('Messages').'</a>'; |
|
|
|
|
$actions .= '<a href="'.api_get_path(WEB_PATH).'main/messages/new_message.php">'.Display::return_icon('message_new.png',get_lang('ComposeMessage')).'</a>'; |
|
|
|
|
$actions .= '<a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php">'.Display::return_icon('inbox.png',get_lang('Inbox')).'</a>'; |
|
|
|
|
$actions .= '<a href="'.api_get_path(WEB_PATH).'main/messages/outbox.php">'.Display::return_icon('outbox.png',get_lang('Outbox')).'</a>'; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$info_delete_outbox =array(); |
|
|
|
|
$info_delete_outbox = isset($_GET['form_delete_outbox']) ? explode(',',$_GET['form_delete_outbox']) : ''; |
|
|
|
|
$count_delete_outbox = count($info_delete_outbox) - 1; |
|
|
|
@ -151,7 +146,7 @@ if (api_get_setting('allow_social_tool') == 'true') { |
|
|
|
|
} else { |
|
|
|
|
$content = $social_right_content; |
|
|
|
|
$tpl->assign('actions', $actions); |
|
|
|
|
$tpl->assign('message', $show_message); |
|
|
|
|
//$tpl->assign('message', $show_message); |
|
|
|
|
$tpl->assign('content', $content); |
|
|
|
|
$tpl->display_one_col_template(); |
|
|
|
|
} |
|
|
|
|