chat_footer.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. require ('../inc/global.inc.php');
  3. define('FRAME','footer');
  4. echo '<html><head><style>';
  5. /*
  6. * Choose CSS style (platform's, user's, or course's)
  7. */
  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. {
  12. $useri = api_get_user_info();
  13. $user_theme = $useri['theme'];
  14. if(!empty($user_theme) && $user_theme != $my_style)
  15. {
  16. $my_style = $user_theme; // user's css
  17. }
  18. }
  19. $mycourseid = api_get_course_id();
  20. if (!empty($mycourseid) && $mycourseid != -1)
  21. {
  22. if (api_get_setting('allow_course_theme') == 'true')
  23. {
  24. $mycoursetheme=api_get_course_setting('course_theme');
  25. if (!empty($mycoursetheme) && $mycoursetheme!=-1)
  26. {
  27. if(!empty($mycoursetheme) && $mycoursetheme != $my_style)
  28. {
  29. $my_style = $mycoursetheme; // course's css
  30. }
  31. }
  32. }
  33. }
  34. echo '@import "'.api_get_path(WEB_CODE_PATH).'css/'.$my_style.'/default.css'.'";';
  35. echo '</style></head><body><br>';
  36. /*
  37. ==============================================================================
  38. FOOTER
  39. ==============================================================================
  40. */
  41. Display::display_footer();
  42. ?>