2 /****************************************************************/
4 /****************************************************************/
5 /* Copyright (c) 2002-2008 by Greg Gay & Joel Kronenberg */
6 /* Adaptive Technology Resource Centre / University of Toronto */
9 /* This program is free software. You can redistribute it and/or*/
10 /* modify it under the terms of the GNU General Public License */
11 /* as published by the Free Software Foundation. */
12 /****************************************************************/
14 define('AT_INCLUDE_PATH', '../include/');
15 require(AT_INCLUDE_PATH.'vitals.inc.php');
16 $_section[0][0] = _AT('tools');
17 $_section[0][1] = 'tools/';
18 $_section[1][0] = _AT('style_editor');
20 $filename = AT_CONTENT_DIR . $_SESSION['course_id'].'/stylesheet.css';
22 require(AT_INCLUDE_PATH.'header.inc.php');
25 if ($_SESSION['prefs'][PREF_CONTENT_ICONS] != 2) {
26 echo '<a href="tools/" class="hide"><img src="images/icons/default/square-large-tools.gif" class="menuimageh2" border="0" vspace="2" width="42" height="40" alt="" /></a>';
28 if ($_SESSION['prefs'][PREF_CONTENT_ICONS] != 1) {
29 echo ' <a href="tools/" class="hide">'._AT('tools').'</a>';
34 if ($_SESSION['prefs'][PREF_CONTENT_ICONS] != 2) {
35 echo ' <img src="images/icons/default/css-editor-large.gif" class="menuimageh3" width="42" height="38" alt="" /> ';
37 if ($_SESSION['prefs'][PREF_CONTENT_ICONS] != 1) {
38 echo _AT('style_editor');
42 $msg->addInfo('CSS_DEPRECATED');
43 if (file_exists('../' . $filename)) {
44 $info = array('CSS_DEPRECATED_DL', AT_BASE_HREF . $filename);
50 require(AT_INCLUDE_PATH.'footer.inc.php');