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_logo_url Will contain the URL to the logo image $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: "/themes/fp6_clean"

File

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