page--login.tpl.php

  1. 7.x themes/fp_clean/page--login.tpl.php
  2. 7.x themes/how_to_customize/custom_fp_clean/page--login.tpl.php
  3. 6.x themes/fp6_clean/page--login.tpl.php
  4. 6.x themes/how_to_customize/custom_fp6_clean/page--login.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 HTML title of the browser window. $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.

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

File

themes/how_to_customize/custom_fp_clean/page--login.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 HTML title of the browser window.
  15. * $page_has_search Either TRUE or FALSE. Is a boolean, not a string. If set to
  16. * TRUE, the page will have a search bar at the top.
  17. * $page_scroll_top If set, the page will automatically scroll to this position (and
  18. * the one below it) on load.
  19. * $page_hide_report_error if set to TRUE, the page will not display the link to report
  20. * an error.
  21. * $page_banner_is_link true or false. If true, the banner at the top will load FP in a
  22. * new window.
  23. * $page_extra_js_settings These are variable definitions set by other modules, using the fp_add_js() command.
  24. * $page_extra_css_files These are extra CSS files which other modules wish to include, using fp_add_css().
  25. * $page_extra_js_files Similar to extra_css files, but for extra javascript files.
  26. * $page_body_classes A string containing the CSS classes (space-separated) which should go on the body element.
  27. *
  28. * $page_header This is the "header content" for the page. Basically, the logo? TODO: do I need this to be a variable?
  29. * $page_sidebar_left_content This is the HTML contents that should appear in the left sidebar, if any.
  30. *
  31. * $theme_location This contains the URL to the selected theme's location. Ex: "/custom/themes/custom_fp_clean"
  32. *
  33. */
  34. ?>
  35. <script>
  36. $(document).ready(function() {
  37. loginPageResizeColumns();
  38. $(window).resize(function() {
  39. loginPageResizeColumns();
  40. });
  41. });
  42. function loginPageResizeColumns() {
  43. var h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
  44. $("#page-login-user-form").css('height', h + 'px');
  45. $("#page-login-page__wallpaper").css('height', h + 'px');
  46. }
  47. </script>
  48. <body class='<?php print $page_body_classes; ?>'>
  49. <div class='page-login-wrapper'>
  50. <div id='page-login-user-form'>
  51. <div class='top-banner'>
  52. <a href='<?php print fp_url("login"); ?>'>
  53. <img src='<?php print $page_logo_url; ?>' border='0' alt='<?php print htmlentities(variable_get('system_name', 'FlightPath'), ENT_QUOTES); ?>'>
  54. </a>
  55. </div>
  56. <?php print "<h2 class='login-welcome'>" . t("Welcome to @FlightPath", array("@FlightPath" => variable_get('system_name', 'FlightPath'))) . "</h2>"; ?>
  57. <?php print $page_content; ?>
  58. </div>
  59. <div id='page-login-page__wallpaper'>
  60. &nbsp;
  61. </div>
  62. </div>
  63. </body>
  64. </html>