12345678910111213141516171819202122232425 |
- <?php
- /* For licensing terms, see /license.txt */
- // name of the language file that needs to be included
- $language_file = array ('admin','courses', 'index');
- // including necessary files
- require_once 'main/inc/global.inc.php';
- require_once api_get_path(LIBRARY_PATH).'system_announcements.lib.php';
- $tool_name = get_lang('SystemAnnouncements');
- $actions = '';
- if (api_is_platform_admin()) {
- $actions .= '<a href="'.api_get_path(WEB_PATH).'main/admin/system_announcements.php">'.Display::return_icon('edit.png', get_lang('EditSystemAnnouncement'), array(), 32).'</a>';
- }
- $visibility = api_is_allowed_to_create_course() ? VISIBLE_TEACHER : VISIBLE_STUDENT;
- $content = SystemAnnouncementManager ::display_announcements_slider($visibility, $_GET['id']);
- $tpl = new Template($tool_name);
- $tpl->assign('actions', $actions);
- //$tpl->assign('message', $message);
- $tpl->assign('content', $content);
- $tpl->display_one_col_template();
|