fp_template.php

  1. 4.x themes/classic/fp_template.php
  2. 5.x themes/basic/fp_template.php
  3. 5.x themes/fp5_clean/fp_template.php
  4. 5.x themes/classic/fp_template.php

File

themes/classic/fp_template.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * This is the primary page template for FlightPath.
  5. *
  6. * Certain variables are set by the AdvisingScreen class, in its output_to_browser() method, which
  7. * are available here:
  8. *
  9. *
  10. * $page_content The actual content of the page which appears in the
  11. * center.
  12. * $page_on_load If the page performs any javascript onLoad, it goes here.
  13. * $page_tabs Contains the HTML to draw the correct tabs at the top of the page.
  14. * $page_is_popup Set to either TRUE or FALSE. If TRUE, do not display the header,
  15. * and possibly have different layout parameters. These are booleans
  16. * and not strings.
  17. * $page_title The HTML title of the browser window.
  18. * $page_has_search Either TRUE or FALSE. Is a boolean, not a string. If set to
  19. * TRUE, the page will have a search bar at the top.
  20. * $page_scroll_top If set, the page will automatically scroll to this position (and
  21. * the one below it) on load.
  22. * $page_hide_report_error if set to TRUE, the page will not display the link to report
  23. * an error.
  24. * $page_banner_is_link true or false. If true, the banner at the top will load FP in a
  25. * new window.
  26. * $page_extra_js_settings These are variable definitions set by other modules, using the fp_add_js() command.
  27. * $page_extra_css_files These are extra CSS files which other modules wish to include, using fp_add_css().
  28. * $page_extra_js_files Similar to extra_css files, but for extra javascript files.
  29. * $page_body_classes A string containing the CSS classes (space-separated) which should go on the body element.
  30. *
  31. **/
  32. $theme_location = fp_theme_location();
  33. // If this page is a popup, let's add that information to the body_classes.
  34. if ($page_is_popup) {
  35. $page_body_classes .= " page-is-popup ";
  36. }
  37. ?>
  38. <html>
  39. <head>
  40. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  41. <script src="<?php print base_path() ?>/inc/jquery-1.8.3.min.js" type="text/javascript"></script>
  42. <script src="<?php print base_path() ?>/inc/jquery-ui-1.9.2.custom.min.js" type="text/javascript"></script>
  43. <link rel='stylesheet' type='text/css' href='<?php print base_path() ?>/inc/jqueryui-css/ui-lightness/jquery-ui-1.9.2.custom.min.css' />
  44. <script type='text/javascript'>
  45. <?php print $page_extra_js_settings; ?>
  46. // perform any requested actions on page load...
  47. $(document).ready(function() { <?php print $page_on_load; ?> });
  48. </script>
  49. <?php
  50. // Add extra JS files.
  51. print $page_extra_js_files;
  52. // Load this theme's CSS file(s)
  53. print "<link rel='stylesheet' type='text/css' href='$theme_location/style.css?$page_css_js_query_string' /> \n";
  54. print "<link rel='stylesheet' type='text/css' href='$theme_location/layout.css?$page_css_js_query_string' /> \n";
  55. // Load any extra CSS files which addon modules might have added.
  56. print @$page_extra_css_files;
  57. // Load the custom.css file for this theme...
  58. print "<link rel='stylesheet' type='text/css' href='$theme_location/custom.css?$page_css_js_query_string' /> \n";
  59. ?>
  60. <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
  61. <title><?php print $page_title; ?></title>
  62. </head>
  63. <body class='<?php print $page_body_classes; ?>'>
  64. <table class='top-banner fp-layout-table'>
  65. <tr>
  66. <td class='corner-top-left'></td>
  67. <td class='layout-table-top'></td>
  68. <td class='corner-top-right'></td>
  69. </tr>
  70. <tr>
  71. <td class='layout-table-left'></td>
  72. <td class='layout-table-content'>
  73. <?php
  74. // ***************** Header Content *****************
  75. // ***************** *****************
  76. if (isset($page_banner_is_link) && $page_banner_is_link == TRUE) {
  77. print "<a href='{$GLOBALS["fp_system_settings"]["self_url"]}' target='_blank'>";
  78. }
  79. ?><img src='<?php print "$theme_location/images/"; ?>fp_banner_default.png' border='0'><?php
  80. if (isset($page_banner_is_link) && $page_banner_is_link == TRUE) {
  81. print "</a>";
  82. }
  83. ?>
  84. </td>
  85. <td class='layout-table-right'></td>
  86. </tr>
  87. <tr>
  88. <td class='corner-bottom-left'>
  89. <div class='layout-table-spacer_33_36'></div>
  90. </td>
  91. <td class='layout-table-bottom'></td>
  92. <td class='corner-bottom-right'>
  93. <div class='layout-table-spacer_33_36'></div>
  94. </td>
  95. </tr>
  96. </table>
  97. <table class='main-page-content fp-layout-table'>
  98. <tr>
  99. <td class='tabs-search-td' colspan="3">
  100. <table class='tabs-search-table'>
  101. <tr>
  102. <!-- ********** The tabs td ************-->
  103. <td class='tabs-td'>
  104. <table class='tabs-table-tabs'>
  105. <tr>
  106. <td align="left">
  107. <?php print $page_tabs; ?>
  108. </td>
  109. </tr>
  110. </table>
  111. </td>
  112. <!-- The possible search bar td -->
  113. <td class='search-td'>
  114. <?php
  115. // Insert a search bar if there is one.
  116. if ($page_has_search == TRUE && function_exists("student_search_menu")) {
  117. print student_search_render_small_search();
  118. }
  119. ?>
  120. </td>
  121. </tr>
  122. </table>
  123. </td>
  124. </tr>
  125. <tr>
  126. <td class='corner-top-left'></td>
  127. <td class='layout-table-top'></td>
  128. <td class='corner-top-right'></td>
  129. </tr>
  130. <tr>
  131. <td class='layout-table-left'></td>
  132. <td class='layout-table-content'>
  133. <div class='page-content'>
  134. <?php
  135. // ***************** Page specific content will be in here *****************
  136. print $page_content;
  137. // ***************** Page specific content was in here *****************
  138. ?>
  139. </div>
  140. </td>
  141. <td class='layout-table-right'></td>
  142. </tr>
  143. <tr>
  144. <td class='corner-bottom-left'>
  145. <div class='layout-table-spacer_33_36'></div>
  146. </td>
  147. <td class='layout-table-bottom'></td>
  148. <td class='corner-bottom-right'>
  149. <div class='layout-table-spacer_33_36'></div>
  150. </td>
  151. </tr>
  152. </table>
  153. <?php
  154. //------------------------------------------------
  155. // ------- MSG AT BOTTOM -------------------------
  156. //------------------------------------------------
  157. ?>
  158. <div class='fp-bottom-message'>
  159. <?php
  160. if ($page_hide_report_error != TRUE) {
  161. print "<a class='nounderline' href='javascript: popupreportcontact()'>" . t("Contact the @FlightPath production team", array("@FlightPath" => variable_get("system_name", "FlightPath"))) . "</a>";
  162. }
  163. ?>
  164. <!-- Optional copyright message could go here.
  165. <span>&copy; Date, Institution, etc.</span> -->
  166. </div>
  167. </body>
  168. </html>