Just the header and footer
Non OU ICE sites
Non OU ICE sites can still make use of the standard OU header and footer without calling the entire framework.
In this case, call the ou-header.css and ou-header.js files in the site <head>
- <link rel="stylesheet" type="text/css" href="/includes/headers-footers/ou-header.css" />
- <script type="text/javascript" src="/includes/headers-footers/ou-header.js"></script>
and the ou-header.html server-side include after the <body> (opening tag):
PHP
- <?php include $_SERVER['DOCUMENT_ROOT'] . '/includes/headers-footers/ou-header.html'; ?>
ASP
- <!--#include virtual="/includes/headers-footers/ou-header.html" -->
and the ou-footer.html server side include file before the site </body> (closing tag):
PHP
- <?php include $_SERVER['DOCUMENT_ROOT'] . '/includes/headers-footers/ou-footer.html'; ?>
ASP
- <!--#include virtual="/includes/headers-footers/ou-footer.html" -->
Core Header/Footer template for non-OU ICE sites (HTML version)
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <title>{page title} - {site title} - Open University</title>
- <link rel="stylesheet" type="text/css" href="/includes/headers-footers/ou-header.css" />
- <script type="text/javascript" src="/includes/headers-footers/ou-header.js"></script>
- <!-- site specific head components -->
- </head>
- <body>
- <!--#include virtual="/includes/headers-footers/ou-header.html" -->
- <!-- site specific body stuff here -->
- <!--#include virtual="/includes/headers-footers/ou-footer.html" -->
- <script type="text/javascript">ou_init();</script>
- <!-- site specific scripts -->
- </body>
- </html>
This page was last updated on Friday November 22, 2024