footer.inc.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?php
  2. /* For licensing terms, see /dokeos_license.txt */
  3. /**
  4. ==============================================================================
  5. * This script displays the footer that is below (almost)
  6. * every Dokeos web page.
  7. *
  8. * @package dokeos.include
  9. ==============================================================================
  10. */
  11. /**** display of tool_navigation_menu according to admin setting *****/
  12. require_once (api_get_path(LIBRARY_PATH).'course.lib.php');
  13. if (api_get_setting('show_navigation_menu') != 'false') {
  14. $course_id = api_get_course_id();
  15. if (!empty($course_id) && ($course_id != -1)) {
  16. if ( api_get_setting('show_navigation_menu') != 'icons') {
  17. echo '</div> <!-- end #center -->';
  18. echo '</div> <!-- end #centerwrap -->';
  19. }
  20. require_once api_get_path(INCLUDE_PATH).'tool_navigation_menu.inc.php';
  21. show_navigation_menu();
  22. }
  23. }
  24. /***********************************************************************/
  25. ?>
  26. <div class="clear">&nbsp;</div> <!-- 'clearing' div to make sure that footer stays below the main and right column sections -->
  27. </div> <!-- end of #main" started at the end of banner.inc.php -->
  28. <div class="push"></div>
  29. </div> <!-- end of #wrapper section -->
  30. <div id="footer"> <!-- start of #footer section -->
  31. <div id="bottom_corner"></div>
  32. <div class="copyright">
  33. <?php
  34. global $_configuration;
  35. echo get_lang("Platform"), ' <a href="http://www.dokeos.com" target="_blank">Dokeos ', $_configuration['dokeos_version'], '</a> &copy; ', date('Y');
  36. // Server mode indicator.
  37. if (api_is_platform_admin()) {
  38. if (api_get_setting('server_type') == 'test') {
  39. echo ' <a href="'.api_get_path(WEB_CODE_PATH).'admin/settings.php?category=Platform#server_type">';
  40. echo '<span style="background-color: white; color: red; border: 1px solid red;">&nbsp;Test&nbsp;server&nbsp;mode&nbsp;</span></a>';
  41. }
  42. }
  43. ?>
  44. </div>
  45. <?php
  46. /*
  47. -----------------------------------------------------------------------------
  48. Plugins for footer section
  49. -----------------------------------------------------------------------------
  50. */
  51. api_plugin('footer');
  52. if (api_get_setting('show_administrator_data')=='true') {
  53. // Platform manager
  54. echo '<span id="platformmanager">', get_lang('Manager'), ' : ', Display::encrypted_mailto_link(api_get_setting('emailAdministrator'), api_get_person_name(api_get_setting('administratorName'), api_get_setting('administratorSurname')));
  55. }
  56. if (api_get_setting('show_tutor_data')=='true'){
  57. // course manager
  58. $id_course=api_get_course_id();
  59. $id_session=api_get_session_id();
  60. if (isset($id_course) && $id_course!=-1) {
  61. echo '<span id="coursemanager">';
  62. if ($id_session!=0){
  63. $mail=CourseManager::get_email_of_tutor_to_session($id_session);
  64. echo '&nbsp;'.get_lang('Tutor')." : ";
  65. foreach ($mail as $v=>$k) {
  66. echo Display::encrypted_mailto_link($v,$k);
  67. }
  68. }
  69. echo '</span>';
  70. }
  71. }
  72. if (api_get_setting('show_teacher_data')=='true') {
  73. // course manager
  74. $id_course=api_get_course_id();
  75. if (isset($id_course) && $id_course!=-1) {
  76. echo '<span id="coursemanager">';
  77. $mail=CourseManager::get_emails_of_tutors_to_course($id_course);
  78. if (!empty($mail)) {
  79. if (count($mail)>1){
  80. $bar='&nbsp;|&nbsp;';
  81. echo '&nbsp;'.get_lang('Teachers').' : ';
  82. } else {
  83. $bar='';
  84. echo '&nbsp;'.get_lang('Teacher').' : ';
  85. }
  86. foreach ($mail as $value=>$key) {
  87. foreach ($key as $email=>$name){
  88. echo Display::encrypted_mailto_link($email,$name).$bar;
  89. }
  90. }
  91. }
  92. echo '</span>';
  93. }
  94. }
  95. ?>&nbsp;
  96. </div> <!-- end of #footer -->
  97. </body>
  98. </html>