head.tpl.php

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

This file is meant to contain all of the common items which should appear in the <head></head> section of the page.

The same variables are available as those found in the page.tpl.php file.

File

themes/how_to_customize/custom_fp6_clean/head.tpl.php
View source
  1. <!DOCTYPE HTML>
  2. <html lang="en">
  3. <?php
  4. /**
  5. * @file
  6. * This file is meant to contain all of the common items which should appear in
  7. * the <head></head> section of the page.
  8. *
  9. * The same variables are available as those found in the page.tpl.php file.
  10. *
  11. */
  12. // So that we can "inherit" the base CSS from fp6_clean, let's set an $original_theme_location
  13. $fp6_clean_original = base_path() . "/themes/fp6_clean";
  14. ?>
  15. <head>
  16. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  17. <meta name="viewport" content="width=device-width" />
  18. <meta http-equiv="content-language" content="en" />
  19. <link rel="shortcut icon" type="image/x-icon" href="<?php print base_path() ?>/themes/fp6_clean/images/favicon.ico"/>
  20. <?php // Bring in jQuery and jQuery UI, as well as jQuery UI's css. ?>
  21. <script src="<?php print base_path() ?>/libraries/jquery-3.5.1.min.js" type="text/javascript"></script>
  22. <script src="<?php print base_path() ?>/libraries/jquery-ui-1.12.1.custom/jquery-ui.min.js" type="text/javascript"></script>
  23. <script src="<?php print base_path() ?>/libraries/modal-alert/js/daypilot-modal-2.9.js" type="text/javascript"></script>
  24. <script type='text/javascript'>
  25. <?php print $page_extra_js_settings; ?>
  26. // perform any requested actions on page load...
  27. $(document).ready(function() { <?php print $page_on_load; ?>; });
  28. </script>
  29. <link rel='stylesheet' type='text/css' href='<?php print base_path() ?>/libraries/jquery-ui-1.12.1.custom/jquery-ui.min.css' />
  30. <?php
  31. // Add extra JS files.
  32. print $page_extra_js_files;
  33. // Load the origninal fp6_clean theme's CSS file(s)
  34. print "<link rel='stylesheet' type='text/css' href='$fp6_clean_original/style.css?$page_css_js_query_string' /> \n";
  35. print "<link rel='stylesheet' type='text/css' href='$fp6_clean_original/media.css?$page_css_js_query_string' /> \n";
  36. // Load any extra CSS files which addon modules might have added.
  37. print $page_extra_css_files;
  38. // Load the custom.css file for THIS theme...
  39. print "<link rel='stylesheet' type='text/css' href='$theme_location/custom.css?$page_css_js_query_string' /> \n";
  40. ?>
  41. <link rel="stylesheet" href="<?php print $theme_location ?>/font-awesome-4.7.0/css/font-awesome.min.css">
  42. <title><?php print $page_title; ?> | <?php print $system_name; ?></title>
  43. </head>