moved code up one level to eliminate the docs subdirectory
[acontent.git] / include / footer.inc.php
1 <?php
2 /************************************************************************/
3 /* AContent                                                             */
4 /************************************************************************/
5 /* Copyright (c) 2010                                                   */
6 /* Inclusive Design Institute                                           */
7 /*                                                                      */
8 /* This program is free software. You can redistribute it and/or        */
9 /* modify it under the terms of the GNU General Public License          */
10 /* as published by the Free Software Foundation.                        */
11 /************************************************************************/
12
13 global $savant;
14 global $_base_path, $_course_id;
15 global $framed, $popup;
16
17 if (!defined('TR_INCLUDE_PATH')) { exit; }
18
19 // get course copyright
20 if ($_course_id > 0)
21 {
22         require_once(TR_INCLUDE_PATH.'classes/DAO/CoursesDAO.class.php');
23         $coursesDAO = new CoursesDAO();
24         $course_row = $coursesDAO->get($_course_id);
25         if ($course_row['copyright'] <> '') $savant->assign('course_copyright', $course_row['copyright']);
26 }
27
28 $savant->assign('course_id', $_course_id);
29 $savant->assign('base_path', $_base_path);
30 $savant->assign('theme', $_SESSION['prefs']['PREF_THEME']);
31
32 if ($framed || $popup) {
33         $savant->display('include/fm_footer.tmpl.php');
34 }
35 else {
36         $savant->display('include/footer.tmpl.php');
37 }
38 ?>