'. Display::return_icon('edit.png', get_lang('EditSystemAnnouncement'), array(), 32).''; } if (api_is_anonymous()) { $visibility = SystemAnnouncementManager::VISIBLE_GUEST; } else { $visibility = api_is_allowed_to_create_course() ? SystemAnnouncementManager::VISIBLE_TEACHER : SystemAnnouncementManager::VISIBLE_STUDENT; } if (!isset($_GET['id']) || empty($_GET['id'])) { $content = SystemAnnouncementManager::display_announcements_slider($visibility, $_GET['id']); } else { $content = SystemAnnouncementManager::displayAnnouncement($_GET['id'], $visibility); } $tpl = new Template($tool_name); $tpl->assign('actions', $actions); //$tpl->assign('message', $message); $tpl->assign('content', $content); $tpl->display_one_col_template();