page.tpl.php

  1. 6.x themes/fp6_clean/page.tpl.php
  2. 6.x themes/how_to_customize/custom_fp6_clean/page.tpl.php

This file is responsible for outputting our content to the web browser.

Available variables (supplied by AdvisingScreen::output_to_browser() method.

$page_content The primary content of the page. $page_on_load If the page performs any javascript onLoad, it goes here. $page_tabs Contains the HTML to draw the correct tabs at the top of the page. $page_is_popup Set to either TRUE or FALSE. If TRUE, do not display the header, and possibly have different layout parameters. These are booleans and not strings. $page_title The title of the page, set in the <head> $page_display_title The title we should display for the page. Blank if none. $page_has_search Either TRUE or FALSE. Is a boolean, not a string. If set to TRUE, the page will have a search bar at the top. $page_scroll_top If set, the page will automatically scroll to this position (and the one below it) on load. $page_hide_report_error if set to TRUE, the page will not display the link to report an error. $page_banner_is_link true or false. If true, the banner at the top will load FP in a new window. $page_extra_js_settings These are variable definitions set by other modules, using the fp_add_js() command. $page_extra_css_files These are extra CSS files which other modules wish to include, using fp_add_css(). $page_extra_js_files Similar to extra_css files, but for extra javascript files. $page_body_classes A string containing the CSS classes (space-separated) which should go on the body element.

$page_header This is the "header content" for the page. Basically, the logo? TODO: do I need this to be a variable? $page_sidebar_left_content This is the HTML contents that should appear in the left sidebar, if any. $page_top_nav_content This is HTML for the top navigation content.

$theme_location This contains the URL to the selected theme's location. Ex: "/custom/themes/custom_fp6_clean"

File

themes/how_to_customize/custom_fp6_clean/page.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * This file is responsible for outputting our content to the web browser.
  5. *
  6. * Available variables (supplied by AdvisingScreen::output_to_browser() method.
  7. *
  8. * $page_content The primary content of the page.
  9. * $page_on_load If the page performs any javascript onLoad, it goes here.
  10. * $page_tabs Contains the HTML to draw the correct tabs at the top of the page.
  11. * $page_is_popup Set to either TRUE or FALSE. If TRUE, do not display the header,
  12. * and possibly have different layout parameters. These are booleans
  13. * and not strings.
  14. * $page_title The title of the page, set in the <head>
  15. * $page_display_title The title we should display for the page. Blank if none.
  16. * $page_has_search Either TRUE or FALSE. Is a boolean, not a string. If set to
  17. * TRUE, the page will have a search bar at the top.
  18. * $page_scroll_top If set, the page will automatically scroll to this position (and
  19. * the one below it) on load.
  20. * $page_hide_report_error if set to TRUE, the page will not display the link to report
  21. * an error.
  22. * $page_banner_is_link true or false. If true, the banner at the top will load FP in a
  23. * new window.
  24. * $page_extra_js_settings These are variable definitions set by other modules, using the fp_add_js() command.
  25. * $page_extra_css_files These are extra CSS files which other modules wish to include, using fp_add_css().
  26. * $page_extra_js_files Similar to extra_css files, but for extra javascript files.
  27. * $page_body_classes A string containing the CSS classes (space-separated) which should go on the body element.
  28. *
  29. * $page_header This is the "header content" for the page. Basically, the logo? TODO: do I need this to be a variable?
  30. * $page_sidebar_left_content This is the HTML contents that should appear in the left sidebar, if any.
  31. * $page_top_nav_content This is HTML for the top navigation content.
  32. *
  33. * $theme_location This contains the URL to the selected theme's location. Ex: "/custom/themes/custom_fp6_clean"
  34. *
  35. */
  36. ?>
  37. <body class='<?php print $page_body_classes; ?>'>
  38. <?php if (!$page_is_popup) : ?>
  39. <div id='header'>
  40. <div id='top-nav'>
  41. <?php print $page_top_nav_content; ?>
  42. </div>
  43. <div class='top-banner'>
  44. <a href='<?php print fp_url("<front>"); ?>'>
  45. <img src='<?php print $page_logo_url; ?>' border='0' alt='<?php print htmlentities(variable_get('system_name', 'FlightPath'), ENT_QUOTES); ?>'>
  46. </a>
  47. </div>
  48. </div>
  49. <?php endif; ?>
  50. <div id='main-contant-wrapper'>
  51. <?php if ($page_sidebar_left_content) : ?>
  52. <div id='sidebar-left'>
  53. <?php print $page_sidebar_left_content; ?>
  54. </div>
  55. <?php endif; ?>
  56. <div id='page-content'>
  57. <?php if ($page_breadcrumbs): ?>
  58. <div id='breadcrumbs-wrapper'><?php print $page_breadcrumbs;?></div>
  59. <div class='clear'></div>
  60. <?php endif; ?>
  61. <?php if ($page_display_title): ?>
  62. <h2 class='title'><?php print $page_display_title; ?></h2>
  63. <?php endif; ?>
  64. <?php if ($page_tabs): ?>
  65. <div id='page-print-options'><a href='javascript:print();' title='Print'><i class='fa fa-print'></i></a></div>
  66. <div class='page-tabs-wrapper'><?php print $page_tabs; ?></div>
  67. <?php endif; ?>
  68. <?php if (isset($page_student_profile_header) && $page_student_profile_header != ""): ?>
  69. <div id='page-student-mini-profile-wrapper'><?php print $page_student_profile_header; ?></div>
  70. <div class='clear'></div>
  71. <?php endif; ?>
  72. <div class='inner-page-content-wrapper'>
  73. <?php print $page_content; ?>
  74. </div>
  75. </div>
  76. </div>
  77. <?php if (!$page_is_popup) : ?>
  78. <div class='fp-bottom-message'>
  79. <span class='popup-contact'>
  80. <?php
  81. if ($page_hide_report_error != TRUE && trim(variable_get('contact_email_address', ''))) {
  82. $contact_title = t("Contact the @FlightPath Production Team", array("@FlightPath" => variable_get("system_name", "FlightPath")));
  83. $contact_title = str_replace("'", "", $contact_title);
  84. $contact_title = str_replace('"', "", $contact_title);
  85. print "<a class='nounderline' href='javascript:fpOpenLargeIframeDialog(\"" . fp_url("popup-report-contact") . "\",\"" . $contact_title . "\")'>" . $contact_title . "</a>";
  86. }
  87. ?>
  88. </span>
  89. <span class='powered-by-fpa'><?php print t("Powered by ") . "&nbsp; <a href='https://flightpathacademics.com' target='_blank'><i class='fa fa-send'></i> FlightPath Academics</a>"; ?></span>
  90. <!-- Optional copyright message could go here.
  91. <span>&copy; Date, Institution, etc.</span> -->
  92. </div>
  93. <?php endif; ?>
  94. </body>
  95. </html>