| @@ 241-246 (lines=6) @@ | ||
| 238 | Display::return_icon('blog.png', get_lang('Home'), '', ICON_SIZE_MEDIUM), |
|
| 239 | api_get_self().'?blog_id='.$blog_id.'&'.api_get_cidreq() |
|
| 240 | ); |
|
| 241 | if (api_is_allowed('BLOG_'.$blog_id, 'article_add')) { |
|
| 242 | $actionsLeft .= Display::url( |
|
| 243 | Display::return_icon('new_article.png', get_lang('NewPost'), '', ICON_SIZE_MEDIUM), |
|
| 244 | api_get_self().'?action=new_post&blog_id='.$blog_id.'&'.api_get_cidreq() |
|
| 245 | ); |
|
| 246 | } |
|
| 247 | if (api_is_allowed('BLOG_'.$blog_id, 'task_management')) { |
|
| 248 | $actionsLeft .= Display::url( |
|
| 249 | Display::return_icon('blog_tasks.png', get_lang('TaskManager'), '', ICON_SIZE_MEDIUM), |
|
| @@ 247-252 (lines=6) @@ | ||
| 244 | api_get_self().'?action=new_post&blog_id='.$blog_id.'&'.api_get_cidreq() |
|
| 245 | ); |
|
| 246 | } |
|
| 247 | if (api_is_allowed('BLOG_'.$blog_id, 'task_management')) { |
|
| 248 | $actionsLeft .= Display::url( |
|
| 249 | Display::return_icon('blog_tasks.png', get_lang('TaskManager'), '', ICON_SIZE_MEDIUM), |
|
| 250 | api_get_self().'?action=manage_tasks&blog_id='.$blog_id.'&'.api_get_cidreq() |
|
| 251 | ); |
|
| 252 | } |
|
| 253 | if (api_is_allowed('BLOG_'.$blog_id, 'member_management')) { |
|
| 254 | $actionsLeft .= Display::url( |
|
| 255 | Display::return_icon('blog_admin_users.png', get_lang('MemberManager'), '', ICON_SIZE_MEDIUM), |
|
| @@ 253-258 (lines=6) @@ | ||
| 250 | api_get_self().'?action=manage_tasks&blog_id='.$blog_id.'&'.api_get_cidreq() |
|
| 251 | ); |
|
| 252 | } |
|
| 253 | if (api_is_allowed('BLOG_'.$blog_id, 'member_management')) { |
|
| 254 | $actionsLeft .= Display::url( |
|
| 255 | Display::return_icon('blog_admin_users.png', get_lang('MemberManager'), '', ICON_SIZE_MEDIUM), |
|
| 256 | api_get_self().'?action=manage_members&blog_id='.$blog_id.'&'.api_get_cidreq() |
|
| 257 | ); |
|
| 258 | } |
|
| 259 | ||
| 260 | $titleBlog = Blog::getBlogTitle($blog_id); |
|
| 261 | $descriptionBlog = Blog::getBlogSubtitle($blog_id); |
|
| @@ 97-109 (lines=13) @@ | ||
| 94 | get_lang('URLNotConfiguredPleaseChangedTo').': '.api_get_path(WEB_PATH), |
|
| 95 | 'warning' |
|
| 96 | ); |
|
| 97 | } elseif (api_is_platform_admin()) { |
|
| 98 | $quant = UrlManager::relation_url_user_exist( |
|
| 99 | api_get_user_id(), |
|
| 100 | $current_access_url_id |
|
| 101 | ); |
|
| 102 | if ($quant == 0) { |
|
| 103 | echo Display::return_message( |
|
| 104 | '<a href="'.api_get_self().'?action=register&sec_token='.$parameters['sec_token'].'">'.get_lang('ClickToRegisterAdmin').'</a>', |
|
| 105 | 'warning', |
|
| 106 | false |
|
| 107 | ); |
|
| 108 | } |
|
| 109 | } |
|
| 110 | ||
| 111 | // action menu |
|
| 112 | echo '<div class="actions">'; |
|
| @@ 1620-1625 (lines=6) @@ | ||
| 1617 | $actionsLeft .= '</a>'; |
|
| 1618 | } |
|
| 1619 | ||
| 1620 | if ($is_certificate_mode && $curdirpath != '/certificates') { |
|
| 1621 | $actionsLeft .= Display::url( |
|
| 1622 | Display::return_icon('folder_up.png', get_lang('Up'), '', ICON_SIZE_MEDIUM), |
|
| 1623 | api_get_self().'?'.api_get_cidreq().'&curdirpath='.$curdirpath |
|
| 1624 | ); |
|
| 1625 | } |
|
| 1626 | ||
| 1627 | $column_show = array(); |
|
| 1628 | ||
| @@ 411-416 (lines=6) @@ | ||
| 408 | $html .= Display::return_icon('attachment.gif', get_lang('Attachment')); |
|
| 409 | $html .= '<a href="'.$full_file_name.' "> '.$user_filename.' </a>'; |
|
| 410 | $html .= ' - <span class="forum_attach_comment" >'.$attachment_list['comment'].'</span>'; |
|
| 411 | if (api_is_allowed_to_edit(false, true)) { |
|
| 412 | $html .= Display::url( |
|
| 413 | Display::return_icon('delete.png', get_lang('Delete'), '', 16), |
|
| 414 | api_get_self()."?".api_get_cidreq()."&action=delete_attachment&id_attach=".$attachment_list['id']."&sec_token=".$stok |
|
| 415 | ); |
|
| 416 | } |
|
| 417 | $html .= '</td></tr>'; |
|
| 418 | } |
|
| 419 | $html .= "</table>"; |
|
| @@ 889-894 (lines=6) @@ | ||
| 886 | .Display::return_icon('new-message.png', get_lang('Compose')) |
|
| 887 | .get_lang('Compose').' </a></li>'; |
|
| 888 | ||
| 889 | if (api_get_setting('allow_social_tool') == 'true') { |
|
| 890 | $total_invitations = Display::badge($total_invitations); |
|
| 891 | $profile_content .= '<li class="invitations-social"><a href="'.api_get_path(WEB_PATH).'main/social/invitations.php">' |
|
| 892 | .Display::return_icon('invitations.png', get_lang('PendingInvitations')) |
|
| 893 | .get_lang('PendingInvitations').$total_invitations.'</a></li>'; |
|
| 894 | } |
|
| 895 | ||
| 896 | if (isset($_configuration['allow_my_files_link_in_homepage']) && $_configuration['allow_my_files_link_in_homepage']) { |
|
| 897 | $myFiles = '<li class="myfiles-social"><a href="'.api_get_path(WEB_PATH).'main/social/myfiles.php">' |
|