footerpage.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * @package chamilo.document
  5. * TODO: There is no indication that this file us used for something.
  6. */
  7. require_once '../inc/global.inc.php';
  8. $platform_theme = api_get_setting('stylesheets'); // plataform's css
  9. $my_style = $platform_theme;
  10. if (api_get_setting('user_selected_theme') == 'true') {
  11. $useri = api_get_user_info();
  12. $user_theme = $useri['theme'];
  13. if (!empty($user_theme) && $user_theme != $my_style) {
  14. $my_style = $user_theme; // user's css
  15. }
  16. }
  17. $mycourseid = api_get_course_id();
  18. if (!empty($mycourseid) && $mycourseid != -1) {
  19. if (api_get_setting('allow_course_theme') == 'true') {
  20. $mycoursetheme=api_get_course_setting('course_theme');
  21. if (!empty($mycoursetheme) && $mycoursetheme != -1) {
  22. if (!empty($mycoursetheme) && $mycoursetheme != $my_style) {
  23. $my_style = $mycoursetheme; // course's css
  24. }
  25. }
  26. $mycourselptheme = api_get_course_setting('allow_learning_path_theme');
  27. if (!empty($mycourselptheme) && $mycourselptheme != -1 && $mycourselptheme == 1) {
  28. global $lp_theme_css; // it comes from the lp_controller.php
  29. global $lp_theme_config; // it comes from the lp_controller.php
  30. if (!$lp_theme_config) {
  31. if ($lp_theme_css != '') {
  32. $theme = $lp_theme_css;
  33. if (!empty($theme) && $theme != $my_style) {
  34. $my_style = $theme; // LP's css
  35. }
  36. }
  37. }
  38. }
  39. }
  40. }
  41. ?><!DOCTYPE html
  42. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  43. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  44. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo api_get_language_isocode(); ?>" lang="<?php echo api_get_language_isocode(); ?>">
  45. <head>
  46. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo api_get_system_encoding(); ?>" />
  47. <link rel="stylesheet" href="<?php echo api_get_path(WEB_CSS_PATH).$my_style; ?>/default.css" type="text/css">
  48. </head>
  49. <body dir="<?php echo api_get_text_direction(); ?>">
  50. <?php
  51. Display::display_footer();