banner.inc.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. /* This page is now unused check the template.lib.php and main/template/ files */
  3. exit;
  4. require_once api_get_path(LIBRARY_PATH).'banner.lib.php';
  5. global $my_session_id;
  6. $session_id = api_get_session_id();
  7. $session_name = api_get_session_name($my_session_id);
  8. echo '<div id="wrapper">';
  9. echo '<ul id="navigation">';
  10. if (api_get_setting('enable_help_link') == 'true') {
  11. if (!empty($help)) {
  12. $help = Security::remove_XSS($help);
  13. ?>
  14. <li class="help">
  15. <a href="<?php echo api_get_path(WEB_CODE_PATH); ?>help/help.php?open=<?php echo $help; ?>&height=400&width=600" class="thickbox" title="<?php echo get_lang('Help'); ?>">
  16. <img src="<?php echo api_get_path(WEB_IMG_PATH);?>help.large.png" alt="<?php echo get_lang('Help');?>" title="<?php echo get_lang('Help');?>" />
  17. </a>
  18. </li>
  19. <?php }
  20. }
  21. if (api_get_setting('show_link_bug_notification') == 'true') {
  22. ?>
  23. <li class="report">
  24. <a href="http://support.chamilo.org/projects/chamilo-18/wiki/How_to_report_bugs" target="_blank">
  25. <img src="<?php echo api_get_path(WEB_IMG_PATH) ?>bug.large.png" style="vertical-align: middle;" alt="<?php echo get_lang('ReportABug') ?>" title="<?php echo get_lang('ReportABug');?>"/></a>
  26. </li>
  27. <?php
  28. }
  29. echo'</ul>';
  30. echo '<div id="header">';
  31. show_header_1($language_file, $nameTools);
  32. show_header_2();
  33. echo '<div id="header3">';
  34. echo '<div id="subnav">';
  35. echo show_header_3();
  36. echo '</div>';
  37. echo '</div>';
  38. echo '</div>'; // <!-- end of the whole #header section -->
  39. if (api_get_setting('show_toolshortcuts') == 'true') {
  40. require_once api_get_path(INCLUDE_PATH).'tool_navigation_menu.inc.php';
  41. show_navigation_tool_shortcuts();
  42. }
  43. echo '<div id="main">';
  44. echo show_header_4($interbreadcrumb, $language_file, $nameTools);
  45. echo '<div id="submain">';
  46. /* "call for chat" module section */
  47. $chat = strpos(api_get_self(), 'chat_banner.php');
  48. if (!$chat) {
  49. include_once api_get_path(LIBRARY_PATH).'online.inc.php';
  50. //echo $accept;
  51. $chatcall = chatcall();
  52. if ($chatcall) {
  53. Display :: display_normal_message($chatcall);
  54. }
  55. }
  56. /* Navigation menu section */
  57. if (api_get_setting('show_navigation_menu') != 'false' && api_get_setting('show_navigation_menu') != 'icons') {
  58. Display::show_course_navigation_menu($_GET['isHidden']);
  59. $course_id = api_get_course_id();
  60. if (!empty($course_id) && ($course_id != -1)) {
  61. echo '<div id="menuButton">';
  62. echo $output_string_menu;
  63. echo '</div>';
  64. if (isset($_SESSION['hideMenu'])) {
  65. if ($_SESSION['hideMenu'] == 'shown') {
  66. if (isset($_cid)) {
  67. echo '<div id="centerwrap">'; // <!-- start of #centerwrap -->
  68. echo '<div id="center">'; // <!-- start of #center -->
  69. }
  70. }
  71. } else {
  72. if (isset($_cid)) {
  73. echo '<div id="centerwrap">'; // <!-- start of #centerwrap -->
  74. echo '<div id="center">'; //<!-- start of #center -->
  75. }
  76. }
  77. }
  78. }